commit c6468f3145403d51692db4c5e7ec108d35a1de488fa10f67158f89c57813b41c Author: Stephan Kulow Date: Fri Apr 25 09:37:10 2014 +0000 Accepting request 231224 from home:awissu needed by a package in Packman. but I would like to maintain it here OBS-URL: https://build.opensuse.org/request/show/231224 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/log4cpp?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/log4cpp-1.1.1.tar.gz b/log4cpp-1.1.1.tar.gz new file mode 100644 index 0000000..2147180 --- /dev/null +++ b/log4cpp-1.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:35abf332630a6809c969276b1d60b90c81a95daf24c86cfd7866ffef72f9bed0 +size 548124 diff --git a/log4cpp.changes b/log4cpp.changes new file mode 100644 index 0000000..aa8b119 --- /dev/null +++ b/log4cpp.changes @@ -0,0 +1,51 @@ +------------------------------------------------------------------- +Fri Dec 6 17:20:47 UTC 2013 - avvissu@yandex.ru + +- update to 1.1.1 + +------------------------------------------------------------------- +Sun Jan 13 13:13:01 UTC 2013 - sleep_walker@suse.cz + +- remove dependency on neexisting package log4cpp + +------------------------------------------------------------------- +Sun Jan 13 10:38:07 UTC 2013 - sleep_walker@suse.cz + +- update to 1.1 +- remove log4cpp_inclusion_fixes.patch which reached upstream +- rework the spec + - change manual creation of symlinks with %fdupes + - change package name to log4cpp, library is subpackage (now + liblog4cpp5) + +------------------------------------------------------------------- +Thu Jul 19 07:20:27 UTC 2012 - rob.verduijn@gmail.com + +- conflicts fixed for opensuse 12.1 + +------------------------------------------------------------------- +Wed Jul 18 13:46:25 UTC 2012 - rob.verduijn@gmail.com + +- fixed some more rpmlint badness + +------------------------------------------------------------------- +Wed Jul 18 13:18:45 UTC 2012 - rob.verduijn@gmail.com + +- fixed duplicate files + +------------------------------------------------------------------- +Wed Jul 18 12:53:42 UTC 2012 - rob.verduijn@gmail.com + +- Fixed directory not owned in specfile + +------------------------------------------------------------------- +Tue Aug 30 02:00:31 UTC 2011 - alexandre@exatati.com.br + +- Fix spec file. + +------------------------------------------------------------------- +Tue Jan 13 18:32:37 CET 2009 - bbrunner@suse.de + +- Initial package. + +------------------------------------------------------------------- diff --git a/log4cpp.spec b/log4cpp.spec new file mode 100644 index 0000000..ac3fa63 --- /dev/null +++ b/log4cpp.spec @@ -0,0 +1,107 @@ +# +# spec file for package log4cpp +# +# Copyright (c) 2011 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. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +Name: log4cpp +Version: 1.1.1 +Release: 0 +License: LGPL-2.1 +Summary: Log for C++ +Url: http://log4cpp.sourceforge.net/ +Group: Development/Languages/C and C++ +Source: %{name}-%{version}.tar.gz +BuildRequires: doxygen +BuildRequires: gcc-c++ +BuildRequires: pkg-config +%if 0%{?suse_version} +BuildRequires: fdupes +%endif +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +Log for C++ is a library of classes for flexible logging to files, syslog, +and other destinations. It is modeled after the Log for Java library and +stays as close to its API as is reasonable. + +%package -n liblog4cpp5 +Summary: Logging for C++ +Group: Development/Libraries/C and C++ + +%description -n liblog4cpp5 +Logging facilities providing library. + + +%package devel +Summary: Development tools for Log for C++ +Group: Development/Libraries/C and C++ +Requires: liblog4cpp5 = %{version} + +%description devel +The %{name}-devel package contains the static libraries and header files +needed for development with %{name}. + +%package doc +Summary: HTML formatted API documention for Log for C++ +Group: Development/Libraries/C and C++ + +%description doc +The %{name}-doc package contains HTML formatted API documention generated by +the popular doxygen documentation generation tool. + +%prep +%setup -q -n %{name} + +%build +%configure --enable-doxygen +%{__make} %{?_smp_mflags} + +%install +%makeinstall mandir=%{buildroot}/%{_mandir} docdir=%{buildroot}/%{_docdir}/%{name} +%{__rm} -rf %{buildroot}/%{_libdir}/*.la + +%if 0%{?suse_version} +%fdupes -s %{buildroot}/%{_docdir}/%{name}/api + +%endif + +%clean +%{__rm} -rf %{buildroot} + +%post -n liblog4cpp5 -p /sbin/ldconfig +%postun -n liblog4cpp5 -p /sbin/ldconfig + +%files -n liblog4cpp5 +%defattr(-,root,root) +%doc AUTHORS COPYING NEWS README THANKS ChangeLog +%{_libdir}/lib*.so.* + +%files devel +%defattr(-,root,root) +%{_includedir}/* +%{_mandir}/man*/* +%{_bindir}/log4cpp-config +%{_libdir}/lib*.so +%{_libdir}/*.*a +%{_libdir}/pkgconfig/log4cpp.pc +# WTF? +%dir %{_datadir}/aclocal +%attr(644,root,root) %{_datadir}/aclocal/*.m4 + +%files doc +%defattr(-,root,root) +%doc %{_docdir}/%{name} + +%changelog diff --git a/log4cpp_inclusion_fixes.patch b/log4cpp_inclusion_fixes.patch new file mode 100644 index 0000000..b668290 --- /dev/null +++ b/log4cpp_inclusion_fixes.patch @@ -0,0 +1,21 @@ +--- log4cpp-1.0/src/BasicLayout.cpp 2006-09-30 08:03:20.000000000 +0200 ++++ log4cpp-1.0_fixed/src/BasicLayout.cpp 2009-01-13 10:47:32.000000000 +0100 +@@ -11,6 +11,8 @@ + #include + #include + #include ++#include ++ + #ifdef LOG4CPP_HAVE_SSTREAM + #include + #endif +--- log4cpp-1.0/src/PatternLayout.cpp 2007-08-28 09:54:12.000000000 +0200 ++++ log4cpp-1.0_fixed/src/PatternLayout.cpp 2009-01-13 10:45:53.000000000 +0100 +@@ -14,6 +14,7 @@ + #include + #include + #include ++#include + + #ifdef LOG4CPP_HAVE_SSTREAM + #include