From dcc9d4d7b2cdbe6c968e6ee7e027b6dbfbba0f6d14040e0eaeb0c609394a9798 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Mon, 15 Sep 2008 11:48:32 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dmraid?expand=0&rev=16 --- dmraid.changes | 7 ++++++ dmraid.spec | 52 ++++++++++++++++++++++++++++++++++++++++---- libdmraid-events.dif | 11 ++++++++++ 3 files changed, 66 insertions(+), 4 deletions(-) create mode 100644 libdmraid-events.dif diff --git a/dmraid.changes b/dmraid.changes index 45c9d00..90ac83f 100644 --- a/dmraid.changes +++ b/dmraid.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Sep 15 13:42:57 CEST 2008 - ro@suse.de + +- fix typo in libdmraid Makefile +- split off libdmraid-events0 package according to + shared library packaging policy + ------------------------------------------------------------------- Sat Sep 13 21:44:39 CEST 2008 - meissner@suse.de diff --git a/dmraid.spec b/dmraid.spec index 23d20ba..aa60799 100644 --- a/dmraid.spec +++ b/dmraid.spec @@ -27,7 +27,7 @@ Group: System/Base AutoReqProv: on Summary: A Device-Mapper Software RAID Support Tool Version: 1.0.0.rc14 -Release: 93 +Release: 94 Source: ftp://people.redhat.com/heinzm/sw/dmraid/src/dmraid-%{version}.tar.bz2 Source1: sysconfig.dmraid Source2: boot.dmraid @@ -46,6 +46,7 @@ Patch6: dmraid-1.0.0.rc13-fix_macro.patch Patch7: dmraid-pdc_max_sectors.patch Patch8: dmraid-1.0.0.rc14-ddf1_segfault.patch Patch9: dmraid-move-type-definition.diff +Patch10: libdmraid-events.dif BuildRoot: %{_tmppath}/%{name}-%{version}-build PreReq: %fillup_prereq @@ -71,6 +72,37 @@ The following ATARAID types are supported: +Authors: +-------- + Heinz Mauelshagen + +%package -n libdmraid-events0 +License: GPL v2 or later +Group: System/Base +Summary: A Device-Mapper Software RAID Support Tool + +%description -n libdmraid-events0 +This software discovers, activates, deactivates, and displays +properties of software RAID sets, such as ATARAID, and contained DOS +partitions. + +dmraid uses libdevmapper and the device-mapper kernel runtime to create +devices with respective mappings for the ATARAID sets discovered. + +The following ATARAID types are supported: + +- Highpoint HPT37X + +- Highpoint HPT45X + +- Intel Software RAID + +- Promise FastTrak + +- Silicon Image Medley + + + Authors: -------- Heinz Mauelshagen @@ -87,6 +119,9 @@ Authors: %patch7 -p1 %patch8 -p1 %patch9 -p1 +pushd libdmraid* +%patch10 +popd cp %{SOURCE3} . %build @@ -131,16 +166,18 @@ install -D -m644 reg_tool/dm_dso_reg_tool.8 $RPM_BUILD_ROOT/usr/share/man/man8/d %post [ -x /sbin/mkinitrd_setup ] && mkinitrd_setup %{fillup_only} -/sbin/ldconfig %postun [ -x /sbin/mkinitrd_setup ] && mkinitrd_setup %{insserv_cleanup} -/sbin/ldconfig %preun %stop_on_removal +%post -n libdmraid-events0 -p /sbin/ldconfig + +%postun -n libdmraid-events0 -p /sbin/ldconfig + %clean [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] \ && rm -rf $RPM_BUILD_ROOT @@ -157,11 +194,18 @@ install -D -m644 reg_tool/dm_dso_reg_tool.8 $RPM_BUILD_ROOT/usr/share/man/man8/d %dir /lib/mkinitrd/scripts /lib/mkinitrd/scripts/setup-dmraid.sh /lib/mkinitrd/scripts/boot-dmraid.sh -/%{_lib}/libdmraid-events.so.0 /%{_lib}/libdmraid-events.so /sbin/dm_dso_reg_tool +%files -n libdmraid-events0 +%defattr(-, root, root) +/%{_lib}/libdmraid-events.so.0 + %changelog +* Mon Sep 15 2008 ro@suse.de +- fix typo in libdmraid Makefile +- split off libdmraid-events0 package according to + shared library packaging policy * Sat Sep 13 2008 meissner@suse.de - symlink, not copy the .so to the .so.0 file - removed self-provides, some other .spec file fixes diff --git a/libdmraid-events.dif b/libdmraid-events.dif new file mode 100644 index 0000000..dc42954 --- /dev/null +++ b/libdmraid-events.dif @@ -0,0 +1,11 @@ +--- Makefile ++++ Makefile 2008/09/15 11:42:03 +@@ -39,7 +39,7 @@ + + + libdmraid-events: +- $(CC) $@.c -ldmraid -lm -g -fPIC -Wall -shared -Wl,-soname,@.$(LIB_SUFFIX).$(LIB_VERSION) -o $@.$(LIB_SUFFIX).$(LIB_VERSION) ++ $(CC) $@.c -ldmraid -lm -g -fPIC -Wall -shared -Wl,-soname,$@.$(LIB_SUFFIX).$(LIB_VERSION) -o $@.$(LIB_SUFFIX).$(LIB_VERSION) + + install: + $(INSTALL) -D $(OWNER) $(GROUP) -m 755 libdmraid-events.$(LIB_SUFFIX).$(LIB_VERSION) \