forked from pool/dmraid
Accepting request 265795 from Base:System
1 OBS-URL: https://build.opensuse.org/request/show/265795 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dmraid?expand=0&rev=53
This commit is contained in:
commit
fc06ae802b
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Dec 12 14:10:53 UTC 2014 - kkaempf@suse.com
|
||||||
|
|
||||||
|
- Split off dmraid-devel subpackage
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Nov 10 10:39:45 UTC 2014 - dimstar@opensuse.org
|
Mon Nov 10 10:39:45 UTC 2014 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
23
dmraid.spec
23
dmraid.spec
@ -76,6 +76,19 @@ Authors:
|
|||||||
--------
|
--------
|
||||||
Heinz Mauelshagen
|
Heinz Mauelshagen
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for dmraid
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Requires: %{name} = %{version}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
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.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -n dmraid/%{version}
|
%setup -n dmraid/%{version}
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
@ -102,15 +115,15 @@ make
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
rm -rf $RPM_BUILD_ROOT/usr/include/dmraid
|
|
||||||
rm $RPM_BUILD_ROOT/%_lib/libdmraid.a
|
rm $RPM_BUILD_ROOT/%_lib/libdmraid.a
|
||||||
rm $RPM_BUILD_ROOT/%_lib/libdmraid.so
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates
|
mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates
|
||||||
install -m644 %{SOURCE1} $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.dmraid
|
install -m644 %{SOURCE1} $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.dmraid
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/init.d
|
mkdir -p $RPM_BUILD_ROOT/etc/init.d
|
||||||
install -D -m 0644 %{S:6} %{buildroot}%{_unitdir}/dmraid-activation.service
|
install -D -m 0644 %{S:6} %{buildroot}%{_unitdir}/dmraid-activation.service
|
||||||
install -d %{buildroot}%{_tmpfilesdir}
|
install -d %{buildroot}%{_tmpfilesdir}
|
||||||
echo 'd /run/lock/dmraid 0700 root root -' > %{buildroot}%{_tmpfilesdir}/dmraid.conf
|
echo 'd /run/lock/dmraid 0700 root root -' > %{buildroot}%{_tmpfilesdir}/dmraid.conf
|
||||||
|
# E: spurious-executable-perm (Badness: 50) /usr/include/dmraid/locking.h
|
||||||
|
chmod -x %{buildroot}%{_prefix}/include/dmraid/*h
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
%service_add_pre dmraid-activation.service
|
%service_add_pre dmraid-activation.service
|
||||||
@ -147,4 +160,10 @@ echo 'd /run/lock/dmraid 0700 root root -' > %{buildroot}%{_tmpfilesdir}/dmraid.
|
|||||||
%{_tmpfilesdir}/dmraid.conf
|
%{_tmpfilesdir}/dmraid.conf
|
||||||
%{_unitdir}/dmraid-activation.service
|
%{_unitdir}/dmraid-activation.service
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%defattr(-, root, root)
|
||||||
|
%dir %{_prefix}/include/dmraid
|
||||||
|
%{_prefix}/include/dmraid
|
||||||
|
/%{_lib}/libdmraid.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user