forked from pool/log4cpp
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
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
log4cpp-1.1.1.tar.gz
Normal file
3
log4cpp-1.1.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:35abf332630a6809c969276b1d60b90c81a95daf24c86cfd7866ffef72f9bed0
|
||||||
|
size 548124
|
51
log4cpp.changes
Normal file
51
log4cpp.changes
Normal file
@@ -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.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
107
log4cpp.spec
Normal file
107
log4cpp.spec
Normal file
@@ -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
|
21
log4cpp_inclusion_fixes.patch
Normal file
21
log4cpp_inclusion_fixes.patch
Normal file
@@ -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 <log4cpp/BasicLayout.hh>
|
||||||
|
#include <log4cpp/Priority.hh>
|
||||||
|
#include <log4cpp/FactoryParams.hh>
|
||||||
|
+#include <memory>
|
||||||
|
+
|
||||||
|
#ifdef LOG4CPP_HAVE_SSTREAM
|
||||||
|
#include <sstream>
|
||||||
|
#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 <log4cpp/TimeStamp.hh>
|
||||||
|
#include <log4cpp/FactoryParams.hh>
|
||||||
|
#include <memory>
|
||||||
|
+#include <cstdlib>
|
||||||
|
|
||||||
|
#ifdef LOG4CPP_HAVE_SSTREAM
|
||||||
|
#include <sstream>
|
Reference in New Issue
Block a user