add devel package

This commit is contained in:
dou33 2020-08-11 09:54:58 +08:00
parent 0d12b0bb16
commit b86625669f

View File

@ -1,6 +1,6 @@
Name: log4cplus Name: log4cplus
Version: 2.0.5 Version: 2.0.5
Release: 1 Release: 2
Summary: simple logging API by using C++ Summary: simple logging API by using C++
License: BSD License: BSD
URL: https://sourceforge.net/projects/log4cplus URL: https://sourceforge.net/projects/log4cplus
@ -10,30 +10,45 @@ BuildRequires: cmake
%description %description
log4cplus is a simple to use C++ logging API providing thread-safe, flexible, and arbitrarily granular control over log management and configuration. It is modelled after the Java log4j API. log4cplus is a simple to use C++ logging API providing thread-safe, flexible, and arbitrarily granular control over log management and configuration. It is modelled after the Java log4j API.
%package devel
Summary: log4cplus headers, static libraries
Requires: %name = %version
%description devel
log4cplus is a simple to use C++ logging API providing thread-safe,
flexible, and arbitrarily granular control over log management and
configuration. It is modeled after the Java log4j API.
%prep %prep
%setup -q -n %{name}-%{version}/ %setup -q -n %{name}-%{version}/
%build %build
%cmake export CFLAGS=$RPM_OPT_FLAGS
export CXXFLAGS="$RPM_OPT_FLAGS -std=c++11"
%configure
make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT
%make_install %make_install
%pre %clean
%preun rm -rf $RPM_BUILD_ROOT
%post
%postun
%check
%files %files
%license LICENSE %license LICENSE
%{_bindir}/* %_libdir/lib*.so*
%_libdir/*.la
%files devel
%{_includedir}/* %{_includedir}/*
%{_libdir}/* %{_libdir}/pkgconfig/log4cplus.pc
%{_libdir}/lib*.so
%changelog %changelog
* Tue Aug 11 2020 douyan <douyan@kylinos.cn> - 2.0.5-2
- add devel package
* Sun Mar 29 2020 Wei Xiong <myeuler@163.com> * Sun Mar 29 2020 Wei Xiong <myeuler@163.com>
- Package init - Package init