rpms/eventlog/devel eventlog.spec,1.5,1.6
Jose Pedro Oliveira (jpo)
fedora-extras-commits at redhat.com
Fri Mar 9 17:09:36 UTC 2007
Author: jpo
Update of /cvs/extras/rpms/eventlog/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv31382
Modified Files:
eventlog.spec
Log Message:
Don't create the -static subpackage by default
Index: eventlog.spec
===================================================================
RCS file: /cvs/extras/rpms/eventlog/devel/eventlog.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- eventlog.spec 25 Feb 2007 01:13:07 -0000 1.5
+++ eventlog.spec 9 Mar 2007 17:09:03 -0000 1.6
@@ -1,8 +1,19 @@
+#
+# Rebuild option:
+#
+# --with static creates the -static subpckage
+#
+
+%define static 0
+
+%{?_with_static:%define static 1}
+
+
%define libdir /%{_lib}
Name: eventlog
Version: 0.2.5
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Syslog-ng v2 support library
Group: System Environment/Libraries
@@ -40,6 +51,7 @@
This package contains the development files.
+%if %{static}
%package static
Summary: Eventlog static library
Group: Development/Libraries
@@ -47,6 +59,7 @@
%description static
The eventlog-static package includes the eventlog static library.
+%endif
%prep
@@ -70,6 +83,11 @@
rm -f $RPM_BUILD_ROOT%{_libdir}/libevtlog.la
+%if ! %{static}
+rm -f $RPM_BUILD_ROOT%{_libdir}/libevtlog.a
+%endif
+
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -92,12 +110,17 @@
%{_libdir}/pkgconfig/eventlog.pc
%{_includedir}/%{name}/
+%if %{static}
%files static
%defattr(-,root,root,-)
%{_libdir}/libevtlog.a
+%endif
%changelog
+* Fri Mar 9 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.2.5-5
+- Optional build the -static subpackage.
+
* Sun Feb 25 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.2.5-4
- Install the dynamic library in /lib.
More information about the scm-commits
mailing list