diff --git a/log4cpp-1.1.3.tar.gz b/log4cpp-1.1.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..920e9da72e06e85c0569ac7c8447f98962454c82 Binary files /dev/null and b/log4cpp-1.1.3.tar.gz differ diff --git a/log4cpp.spec b/log4cpp.spec new file mode 100644 index 0000000000000000000000000000000000000000..6da9b4818dd0468322d6e0327df64e206e74cd01 --- /dev/null +++ b/log4cpp.spec @@ -0,0 +1,68 @@ +%global debug_package %{nil} + +Name: log4cpp +Version: 1.1.3 +Release: 1 +Summary: Log library for C++ +License: LGPLv2+ +URL: https://sourceforge.net/projects/log4cpp/ +Source0: https://sourceforge.net/projects/log4cpp/files/%{name}-%{version}.tar.gz + +BuildRequires: gcc automake autoconf + +%description +A library of C++ classes for flexible logging to files (rolling), syslog, IDSA and other destinations. It is modeled after the Log for Java library (http://www.log4j.org), staying as close to their API as is reasonable. + +%package devel +Summary: devel pacakge for log4cpp +Requires: %{name} = %{version}-%{release} +%description devel +A library of C++ classes for flexible logging to files (rolling), syslog, IDSA and other destinations. It is modeled after the Log for Java library (http://www.log4j.org), staying as close to their API as is reasonable. + + +%prep +%setup -q -n %{name}/ +#rm -rf src/snprintf.c + +%build +./autogen.sh +#./configure --disable-DOC +./configure --prefix=/usr --libdir=/usr/lib64 --disable-DOC +%make_build + +%install +#%make_install DESTDIR=%{buildroot} +%make_install -C src/ DESTDIR=%{buildroot} +%make_install -C include/ DESTDIR=%{buildroot} +%make_install -C doc/ prefix=%{buildroot}/%{_prefix} +rm -rf %{buildroot}%{_libdir}/*.a +rm -rf %{buildroot}%{_libdir}/*.la + +install -d %{buildroot}/%{_docdir}/%{name} +cp -r %{buildroot}/usr/doc/%{name}-1.1/* %{buildroot}/%{_docdir}/%{name} +rm -rf %{buildroot}/usr/doc/%{name}-1.1/ + +%ldconfig_scriptlets + +%pre +%preun +%post +%postun + +%check + +%files +%doc ChangeLog COPYING +%{_libdir}/liblog4cpp.so.* +%{_mandir}/* + +%files devel +%{_includedir}/* +%{_libdir}/liblog4cpp.so +%{_docdir}/* + + +%changelog +* Sun Mar 29 2020 Wei Xiong +- Package init +