From 8b9a96d5e6153e28a4bae696a3b2712e2677b7b7 Mon Sep 17 00:00:00 2001 From: happy_orange Date: Thu, 28 Jul 2022 23:16:02 -0400 Subject: [PATCH] daa static package --- log4cpp.spec | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/log4cpp.spec b/log4cpp.spec index 21ab45e..3788f06 100644 --- a/log4cpp.spec +++ b/log4cpp.spec @@ -1,6 +1,8 @@ +%define anolis_release .0.1 + Name: log4cpp Version: 1.1.3 -Release: 1%{?dist} +Release: 1%{anolis_release}%{?dist} Summary: C++ logging library License: LGPLv2+ @@ -38,6 +40,13 @@ 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 static +Summary: Static files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description static +Static files for %{name} + %package doc Summary: Development documentation for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} @@ -47,6 +56,7 @@ 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 @@ -72,8 +82,6 @@ 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 @@ -89,10 +97,17 @@ rm -f %{buildroot}%{_libdir}/*.la %{_datadir}/aclocal/log4cpp.m4 %{_mandir}/man3/log4cpp* +%files static +%{_libdir}/*.a +%{_libdir}/*.la + %files doc %doc rpmdocs/* %changelog +* Fri Jul 29 2022 happy_orange - 1.1.3-1.0.1 +- Add static package + * Wed Nov 20 2019 Orion Poplawski - 1.1.3-1 - Update to 1.1.3 -- Gitee