From f6a8f825bddc9e5e87dcc9bea9b51e9c7ec0ba48 Mon Sep 17 00:00:00 2001 From: Doug Ledford Date: Fri, 7 Jul 2006 23:33:14 +0000 Subject: [PATCH] Split up into sysfsutils, libsysfs, and libsysfs-devel for multilib reasons. --- sysfsutils.spec | 37 +++++++++++++++++++++++++------------ 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/sysfsutils.spec b/sysfsutils.spec index ff99009..bf6260c 100644 --- a/sysfsutils.spec +++ b/sysfsutils.spec @@ -1,10 +1,10 @@ Summary: sysfsutils, library interface to sysfs. Name: sysfsutils Version: 2.0.0 -Release: 2 +Release: 3 Source0: http://prdownloads.sourceforge.net/linux-diag/%{name}-%{version}.tar.gz Patch0: %{name}-%{version}-redhatify.patch -License: GPL/LGPL +License: GPL Group: Development/Tools Buildroot: %{_tmppath}/%{name}-root @@ -12,16 +12,21 @@ Buildroot: %{_tmppath}/%{name}-root This package's purpose is to provide a set of utilities for interfacing with sysfs. -The library is distributed under LGPL and utilities that come with it are -under GPL. +%package -n libsysfs +Summary: Shared library for interfacing with sysfs +Group: System Environment/Libraries +License: LGPL -%package devel -Summary: Static library and headers for sysfsutils +%description -n libsysfs +Library used in handling linux kernel sysfs mounts and their various files. + +%package -n libsysfs-devel +Summary: Static library and headers for libsysfs Group: Development/Libraries -Requires: sysfsutils = %{version} +Requires: libsysfs = %{version} -%description devel -sysfsutils-devel provides the header files and static libraries required +%description -n libsysfs-devel +libsysfs-devel provides the header files and static libraries required to build programs using the libsysfs API. %prep @@ -51,12 +56,16 @@ rm -rf $RPM_BUILD_ROOT %defattr(-,root,root) %{_bindir}/systool %{_bindir}/get_module +%{_mandir}/man1/systool.1.gz +%doc COPYING AUTHORS README NEWS CREDITS ChangeLog docs/libsysfs.txt cmd/GPL + +%files -n libsysfs +%defattr(-,root,root) %{_libdir}/libsysfs.so.2 %{_libdir}/libsysfs.so.2.0.0 -%{_mandir}/man1/systool.1.gz -%doc COPYING AUTHORS README NEWS CREDITS ChangeLog docs/libsysfs.txt cmd/GPL lib/LGPL +%doc COPYING AUTHORS README NEWS CREDITS ChangeLog docs/libsysfs.txt lib/LGPL -%files devel +%files -n libsysfs-devel %defattr(-,root,root) %dir %{_includedir}/sysfs %{_includedir}/sysfs/libsysfs.h @@ -66,6 +75,10 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Fri Jul 7 2006 Doug Ledford - 2.0.0-3 +- Split the library and devel files out to libsysfs and leave the utils + in sysfsutils. This is for multilib arch requirements. + * Thu May 25 2006 Neil Horman - 2.0.0-2 - Fixed devel rpm to own sysfs include dir - Fixed a typo in changelog