diff --git a/log4cxx.changes b/log4cxx.changes new file mode 100644 index 0000000..65d53da --- /dev/null +++ b/log4cxx.changes @@ -0,0 +1,15 @@ +------------------------------------------------------------------- +Fri Jan 20 13:13:40 UTC 2012 - toddrme2178@gmail.com + +- Fixed building on openSUSE:Factory +- Cleaned up spec file formatting +- Moved to .changes file +- Added pkg-config buildrequires (fix for RMPLINT warning) +- Changed license naming to conform to SPDX convention (fix for RMPLINT warning) +- Fixed group (fix for RMPLINT warning) + +------------------------------------------------------------------- +Wed Apr 22 00:00:00 UTC 2009 - bitshuffler #suse@irc.freenode.org + +- Fixed broken builds + diff --git a/log4cxx.spec b/log4cxx.spec index 4050558..0735ac6 100644 --- a/log4cxx.spec +++ b/log4cxx.spec @@ -1,27 +1,45 @@ -# norootforbuild +# +# spec file for package log4cxx +# +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. -%define soname 10 - -%define jobs $(( `/usr/bin/getconf _NPROCESSORS_ONLN` + 1 )) +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Name: log4cxx Version: 0.10.0.svn20080724 -Release: 1.0 -License: Apache License v2.0 -Group: Development/Libraries/C++ -Url: http://logging.apache.org/log4cxx/index.html -Source: apache-log4cxx-%{version}.tar.bz2 -Patch0: %{name}-fix_duplicate_entries.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: doxygen gcc-c++ graphviz libapr1-devel libapr-util1-devel unixODBC-devel - -%if 0%{?suse_version} > 1030 -BuildRequires: libesmtp-devel -%else -BuildRequires: openldap2-devel -%endif - +%define soname 10 +Release: 1.0 +License: Apache License v2.0 Summary: Log4j like C++ Logging Library +Url: http://logging.apache.org/log4cxx/index.html +Group: Development/Libraries/C and C++ +Source: apache-log4cxx-%{version}.tar.bz2 +# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines +Patch0: %{name}-fix_duplicate_entries.patch +BuildRequires: doxygen +BuildRequires: gcc-c++ +BuildRequires: graphviz +BuildRequires: libapr1-devel +BuildRequires: libapr-util1-devel +BuildRequires: libtool +BuildRequires: pkg-config +BuildRequires: unixODBC-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%if 0%{?sles_version} > 10 +BuildRequires: libesmtp-devel +%else +BuildRequires: openldap2-devel +%endif %description Log4cxx is a port to C++ of the log4j logging library. @@ -67,24 +85,18 @@ BasicConfigurator, DOMConfigurator, PropertyConfigurator * Java like objects with dynamic cast and instanciation. Custom objects can be configured through the DOMConfigurator and PropertyConfigurator classes -Supported OS: -* Linux (tested on Linux Mandrake 10.0, Debian GNU/Linux 3.1) -* FreeBSD -* Windows (MSVC 6.0, MSVC 7.1 or Cygwin) -* Other POSIX OS should be supported but were not tested - %package -n liblog4cxx%{soname} -Group: System/Libraries -PreReq: glibc -Summary: Log4j like C++ Logging Library +Summary: Log4j like C++ Logging Library +Group: System/Libraries +Requires(pre): glibc %description -n liblog4cxx%{soname} Log4cxx is a port to C++ of the log4j logging library. %package -n liblog4cxx-devel -Group: Development/Libraries/C++ -Requires: liblog4cxx%{soname} = %{version} Summary: Log4j like C++ Logging Library +Group: Development/Libraries/C and C++ +Requires: liblog4cxx%{soname} = %{version} %description -n liblog4cxx-devel Log4cxx is a port to C++ of the log4j logging library. @@ -103,25 +115,24 @@ Log4cxx is a port to C++ of the log4j logging library. --enable-wchar_t \ --enable-html-docs \ --enable-dot \ -%if 0%{?suse_version} > 1030 +%if 0%{?sles_version} > 10 --with-SMTP=libesmtp \ %endif --enable-doxygen -%__make %{?jobs:-j%jobs} +make %{?_smp_mflags} %install %makeinstall find %{buildroot}%{_libdir} -name *.la -exec rm {} \; -%__mkdir_p %{buildroot}%{_docdir}/liblog4cxx -%__mv %{buildroot}%{_datadir}/log4cxx %{buildroot}%{_docdir}/liblog4cxx - -%post -n liblog4cxx%{soname} -p /sbin/ldconfig +mkdir -p %{buildroot}%{_docdir}/liblog4cxx +mv %{buildroot}%{_datadir}/log4cxx %{buildroot}%{_docdir}/liblog4cxx +%post -n liblog4cxx%{soname} -p /sbin/ldconfig %postun -n liblog4cxx%{soname} -p /sbin/ldconfig %clean -test "%{buildroot}" != "/" && %__rm -rf %{buildroot} +test %{buildroot} != "/" && rm -rf %{buildroot} %files -n liblog4cxx%{soname} %defattr(-,root,root) @@ -135,5 +146,4 @@ test "%{buildroot}" != "/" && %__rm -rf %{buildroot} %{_docdir}/liblog4cxx %changelog -* Wed Apr 22 2009 bitshuffler #suse@irc.freenode.org -- Fixed broken builds +