[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[lvm-devel] lvm2 fedora devel spec file changes for liblvm2app



The patch adds a lib and devel sub-package to lvm2.
Index: lvm2.spec
===================================================================
RCS file: /cvs/pkgs/rpms/lvm2/devel/lvm2.spec,v
retrieving revision 1.162
diff -u -r1.162 lvm2.spec
--- lvm2.spec	15 Jul 2009 16:29:49 -0000	1.162
+++ lvm2.spec	26 Jul 2009 20:18:55 -0000
@@ -244,7 +244,7 @@
 %defattr(-,root,root,-)
 %attr(755,root,root) /%{_lib}/libdevmapper.so
 %{_includedir}/libdevmapper.h
-/usr%{_libdir}/pkgconfig/*.pc
+/usr%{_libdir}/pkgconfig/devmapper*.pc
 
 %package -n device-mapper-libs
 Summary: Device-mapper shared library
@@ -264,8 +264,49 @@
 %files -n device-mapper-libs
 %attr(755,root,root) /%{_lib}/libdevmapper.so.*
 
+##############################################################################
+# libs and devel subpackages
+##############################################################################
+%package devel
+Summary: Development libraries and headers for lvm2 libraries.
+Group: Development/Libraries
+Requires(post): chkconfig
+Requires(preun): chkconfig
+Requires: %{name}-libs = %{version}-%{release}
+Requires: pkgconfig
+
+%description devel
+This package contains files needed to develop applications that use
+the lvm2app libraries.
+
+%files devel
+%defattr(-,root,root,-)
+%attr(755,root,root) /%{_lib}/liblvm2app.so
+%{_includedir}/lvm.h
+/usr%{_libdir}/pkgconfig/liblvm2app*.pc
+
+%package libs
+Summary: lvm2 libraries
+Group: System Environment/Libraries
+Requires(post): chkconfig
+Requires(preun): chkconfig
+
+%description libs
+This package contains the lvm2app shared libraries.
+
+%post libs -p /sbin/ldconfig
+
+%postun libs -p /sbin/ldconfig
+
+%files libs
+%defattr(-,root,root,-)
+%attr(755,root,root) /%{_lib}/liblvm2app.so.*
+
 
 %changelog
+* Thu Jul 23 2009 Thomas Woerner <twoerner redhat com> - 
+- add devel and lib subpackages for liblvm2app
+
 * Wed Jul 15 2009 Alasdair Kergon <agk redhat com> - 2.02.49-1
 - Exclude VG_GLOBAL from vg_write_lock_held so scans open devs read-only again.
 - Fix dev name mismatch in vgcreate man page example.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]