Add generation of package with static libraries to spec file
This commit is contained in:
parent
0f97a7418d
commit
0b56214f9f
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: log4cplus
|
Name: log4cplus
|
||||||
Version: 2.0.8
|
Version: 2.0.8
|
||||||
Release: 1%{?prever:.%{prever}}%{?dist}
|
Release: 2%{?prever:.%{prever}}%{?dist}
|
||||||
Summary: Logging Framework for C++
|
Summary: Logging Framework for C++
|
||||||
|
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
@ -27,6 +27,14 @@ BuildRequires: gnupg2
|
|||||||
This package contains headers and libraries needed to develop applications
|
This package contains headers and libraries needed to develop applications
|
||||||
using log4cplus logging framework.
|
using log4cplus logging framework.
|
||||||
|
|
||||||
|
%package static
|
||||||
|
Summary: Static development files for log4cplus C++ logging framework
|
||||||
|
Requires: %{name}-devel = %{version}-%{release}
|
||||||
|
|
||||||
|
%description static
|
||||||
|
This package contains static libraries needed to develop applications
|
||||||
|
using log4cplus logging framework.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%if 0%{?fedora}
|
%if 0%{?fedora}
|
||||||
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
||||||
@ -34,14 +42,14 @@ using log4cplus logging framework.
|
|||||||
%setup -q %{?prever:-n %{name}-%{version}-%{prever}}
|
%setup -q %{?prever:-n %{name}-%{version}-%{prever}}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure --enable-static
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
|
|
||||||
rm -f $RPM_BUILD_ROOT/%{_libdir}/liblog4cplus*.{a,la}
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/liblog4cplus*.{la}
|
||||||
|
|
||||||
%ldconfig_scriptlets
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
@ -69,7 +77,14 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/liblog4cplus*.{a,la}
|
|||||||
%{_includedir}/log4cplus/thread/impl/*.h*
|
%{_includedir}/log4cplus/thread/impl/*.h*
|
||||||
%{_libdir}/pkgconfig/log4cplus.pc
|
%{_libdir}/pkgconfig/log4cplus.pc
|
||||||
|
|
||||||
|
%files static
|
||||||
|
%{_libdir}/lib*.a
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Sep 23 2022 Federico Pellegrin <fede@evolware.org> - 2.0.8-2
|
||||||
|
- Add generation of static package
|
||||||
|
|
||||||
* Thu Jul 21 2022 Martin Osvald <mosvald@redhat.com> - 2.0.8-1
|
* Thu Jul 21 2022 Martin Osvald <mosvald@redhat.com> - 2.0.8-1
|
||||||
- New version 2.0.8
|
- New version 2.0.8
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user