[hivex] Create a hivex-static subpackage.

Richard W.M. Jones rjones at fedoraproject.org
Wed Aug 25 10:36:43 UTC 2010


commit 2a4972144f0c1eeadedd45aa919441c2bb144dde
Author: Richard Jones <rjones at redhat.com>
Date:   Wed Aug 25 11:33:41 2010 +0100

    Create a hivex-static subpackage.

 hivex.spec |   24 ++++++++++++++++++++++--
 1 files changed, 22 insertions(+), 2 deletions(-)
---
diff --git a/hivex.spec b/hivex.spec
index 6211737..88d9b97 100644
--- a/hivex.spec
+++ b/hivex.spec
@@ -1,6 +1,6 @@
 Name:           hivex
 Version:        1.2.2
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Read and write Windows Registry binary hive files
 
 Group:          Development/Libraries
@@ -65,6 +65,17 @@ Requires:       pkgconfig
 for %{name}.
 
 
+%package static
+Summary:        Statically linked library for %{name}
+Group:          Development/Libraries
+Requires:       %{name} = %{version}-%{release}
+
+
+%description static
+%{name}-static contains the statically linked library
+for %{name}.
+
+
 %package -n ocaml-%{name}
 Summary:       OCaml bindings for %{name}
 Group:         Development/Libraries
@@ -105,7 +116,7 @@ perl-%{name} contains Perl bindings for %{name}.
 
 
 %build
-%configure --disable-static
+%configure
 make %{?_smp_mflags}
 
 
@@ -156,6 +167,12 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/pkgconfig/hivex.pc
 
 
+%files static
+%defattr(-,root,root,-)
+%doc LICENSE
+%{_libdir}/libhivex.a
+
+
 %files -n ocaml-%{name}
 %defattr(-,root,root,-)
 %doc README
@@ -184,6 +201,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Wed Aug 25 2010 Richard W.M. Jones <rjones at redhat.com> - 1.2.2-3
+- Create a hivex-static subpackage.
+
 * Thu Apr 29 2010 Marcela Maslanova <mmaslano at redhat.com> - 1.2.2-2
 - Mass rebuild with perl-5.12.0
 


More information about the scm-commits mailing list