86 lines
2.5 KiB
RPMSpec
86 lines
2.5 KiB
RPMSpec
Name: log4cpp
|
|
Version: 1.1.3
|
|
Release: 2
|
|
Summary: C++ logging library
|
|
License: LGPLv2+
|
|
URL: http://sourceforge.net/projects/log4cpp/
|
|
Source0: http://downloads.sourceforge.net/log4cpp/%{name}-%{version}.tar.gz
|
|
Patch0: log4cpp-1.0-gcc43.patch
|
|
Patch1: log4cpp-1.0-remove-pc-cflags.patch
|
|
Patch2: log4cpp-1.0-fix-doc-dest.patch
|
|
Patch3: log4cpp-1.0-no-snprintf.patch
|
|
Patch4: log4cpp-version-1.1.3.patch
|
|
BuildRequires: gcc-c++ doxygen automake, autoconf, libtool
|
|
|
|
%description
|
|
A library of C++ classes for flexible logging to files, 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: Header files, libraries and development man pages %{name}
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
Requires: pkgconfig
|
|
%description devel
|
|
|
|
This package contains the header files, static libraries and development
|
|
man pages for %{name}. If you like to develop programs using %{name},
|
|
you will need to install %{name}-devel.
|
|
|
|
%package help
|
|
Summary: Development documentation for %{name}
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
%description help
|
|
This package contains the development documentation for %{name}.
|
|
If you like to documentation to develop programs using %{name},
|
|
you will need to install %{name}-devel.
|
|
|
|
%prep
|
|
%setup -q -n log4cpp
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
%patch3 -p1 -b .no-snprintf
|
|
%patch4 -p1
|
|
rm -rf src/snprintf.c
|
|
iconv -f iso8859-1 -t utf-8 ChangeLog > ChangeLog.conv && mv -f ChangeLog.conv ChangeLog
|
|
|
|
%build
|
|
aclocal -I m4
|
|
autoconf
|
|
autoheader
|
|
libtoolize --copy --force
|
|
automake --add-missing --copy
|
|
chmod +x configure
|
|
%configure
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make install DESTDIR=%{buildroot}
|
|
mv %{buildroot}/usr/share/doc/log4cpp-%{version} rpmdocs
|
|
rm -f %{buildroot}%{_libdir}/*.a
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
|
%ldconfig_scriptlets
|
|
|
|
%files
|
|
%{_libdir}/liblog4cpp.so.5*
|
|
%doc ChangeLog COPYING
|
|
|
|
%files devel
|
|
%{_bindir}/log4cpp-config
|
|
%{_includedir}/log4cpp/
|
|
%{_libdir}/liblog4cpp.so
|
|
%{_libdir}/pkgconfig/log4cpp.pc
|
|
%{_datadir}/aclocal/log4cpp.m4
|
|
%{_mandir}/man3/log4cpp*
|
|
|
|
%files help
|
|
%doc rpmdocs/*
|
|
|
|
%changelog
|
|
* Wed Mar 2 2022 wulei <wulei80@huawei.com> - 1.1.3-2
|
|
- Fix cannot find required auxiliary file
|
|
|
|
* Sat Jan 9 2021 chengzihan <chengzihan2@huawei.com> - 1.1.3-1
|
|
- Package init
|