SHA256
1
0
forked from pool/dmraid
OBS User unknown 2008-09-15 11:48:32 +00:00 committed by Git OBS Bridge
parent d0a5438da5
commit dcc9d4d7b2
3 changed files with 66 additions and 4 deletions

View File

@ -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

View File

@ -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

11
libdmraid-events.dif Normal file
View File

@ -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) \