Accepting request 140064 from home:elvigia:branches:Base:System
- Fix factory breakage on udev and systemd rules. OBS-URL: https://build.opensuse.org/request/show/140064 OBS-URL: https://build.opensuse.org/package/show/Base:System/mdadm?expand=0&rev=79
This commit is contained in:
parent
15ad866b8c
commit
3b06425b46
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Nov 4 01:43:34 UTC 2012 - crrodriguez@opensuse.org
|
||||||
|
|
||||||
|
- Fix factory breakage on udev and systemd rules.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Oct 25 23:18:19 UTC 2012 - nfbrown@suse.com
|
Thu Oct 25 23:18:19 UTC 2012 - nfbrown@suse.com
|
||||||
|
|
||||||
|
47
mdadm.spec
47
mdadm.spec
@ -20,7 +20,10 @@ Name: mdadm
|
|||||||
Version: 3.2.6
|
Version: 3.2.6
|
||||||
Release: 0
|
Release: 0
|
||||||
BuildRequires: binutils-devel
|
BuildRequires: binutils-devel
|
||||||
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: sgmltool
|
BuildRequires: sgmltool
|
||||||
|
BuildRequires: pkgconfig(libudev)
|
||||||
|
BuildRequires: pkgconfig(systemd)
|
||||||
PreReq: %fillup_prereq %insserv_prereq /sbin/mkinitrd
|
PreReq: %fillup_prereq %insserv_prereq /sbin/mkinitrd
|
||||||
Recommends: cron
|
Recommends: cron
|
||||||
Recommends: smtp_daemon
|
Recommends: smtp_daemon
|
||||||
@ -40,6 +43,9 @@ Source6: mkinitrd-boot.sh
|
|||||||
Source7: mdadm.cron
|
Source7: mdadm.cron
|
||||||
Source8: mdadm.shutdown
|
Source8: mdadm.shutdown
|
||||||
|
|
||||||
|
%define _udevrulesdir %(pkg-config --variable=udevdir udev)/rules.d
|
||||||
|
%define _systemdshutdowndir %{_unitdir}/../system-shutdown
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Mdadm is a program that can be used to control Linux md devices. It is
|
Mdadm is a program that can be used to control Linux md devices. It is
|
||||||
intended to provide all the functionality of the mdtools and raidtools
|
intended to provide all the functionality of the mdtools and raidtools
|
||||||
@ -55,21 +61,22 @@ sgml2html Software-RAID.HOWTO.sgml
|
|||||||
sgml2txt Software-RAID.HOWTO.sgml
|
sgml2txt Software-RAID.HOWTO.sgml
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=%{buildroot}
|
||||||
install -d $RPM_BUILD_ROOT%{_var}/adm/fillup-templates
|
rm -rf %{buildroot}/lib/udev
|
||||||
install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}/init.d}
|
install -d %{buildroot}%{_var}/adm/fillup-templates
|
||||||
install -m 755 %{S:4} %{S:3} $RPM_BUILD_ROOT%{_sysconfdir}/init.d/
|
install -d %{buildroot}{%{_sbindir},%{_sysconfdir}/init.d}
|
||||||
install -d $RPM_BUILD_ROOT/lib/mkinitrd/scripts
|
install -m 755 %{S:4} %{S:3} %{buildroot}%{_sysconfdir}/init.d/
|
||||||
install -m 755 %{S:5} $RPM_BUILD_ROOT/lib/mkinitrd/scripts/setup-md.sh
|
install -d %{buildroot}/lib/mkinitrd/scripts
|
||||||
install -m 755 %{S:6} $RPM_BUILD_ROOT/lib/mkinitrd/scripts/boot-md.sh
|
install -m 755 %{S:5} %{buildroot}/lib/mkinitrd/scripts/setup-md.sh
|
||||||
install -d $RPM_BUILD_ROOT/etc/cron.daily
|
install -m 755 %{S:6} %{buildroot}/lib/mkinitrd/scripts/boot-md.sh
|
||||||
install -m 755 %{S:7} $RPM_BUILD_ROOT/etc/cron.daily/mdadm
|
install -d %{buildroot}/etc/cron.daily
|
||||||
install -m 644 %{S:2} $RPM_BUILD_ROOT%{_var}/adm/fillup-templates/
|
install -m 755 %{S:7} %{buildroot}/etc/cron.daily/mdadm
|
||||||
ln -sf ../../etc/init.d/mdadmd $RPM_BUILD_ROOT/%{_sbindir}/rcmdadmd
|
install -m 644 %{S:2} %{buildroot}%{_var}/adm/fillup-templates/
|
||||||
install -d $RPM_BUILD_ROOT/lib/udev/rules.d
|
ln -sf ../../etc/init.d/mdadmd %{buildroot}/%{_sbindir}/rcmdadmd
|
||||||
install -m 644 udev-md-raid.rules $RPM_BUILD_ROOT/lib/udev/rules.d/64-md-raid.rules
|
install -d %{buildroot}%{_udevrulesdir}
|
||||||
install -d $RPM_BUILD_ROOT/lib/systemd/system-shutdown
|
install -m 644 udev-md-raid.rules %{buildroot}%{_udevrulesdir}/64-md-raid.rules
|
||||||
install -m 755 %{S:8} $RPM_BUILD_ROOT/lib/systemd/system-shutdown/mdadm.shutdown
|
install -d %{buildroot}%{_systemdshutdowndir}
|
||||||
|
install -m 755 %{S:8} %{buildroot}%{_systemdshutdowndir}/mdadm.shutdown
|
||||||
|
|
||||||
%post
|
%post
|
||||||
[ -x /sbin/mkinitrd_setup ] && mkinitrd_setup
|
[ -x /sbin/mkinitrd_setup ] && mkinitrd_setup
|
||||||
@ -98,7 +105,7 @@ fi
|
|||||||
%stop_on_removal mdadmd
|
%stop_on_removal mdadmd
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -113,14 +120,10 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%dir /lib/mkinitrd/scripts
|
%dir /lib/mkinitrd/scripts
|
||||||
/lib/mkinitrd/scripts/setup-md.sh
|
/lib/mkinitrd/scripts/setup-md.sh
|
||||||
/lib/mkinitrd/scripts/boot-md.sh
|
/lib/mkinitrd/scripts/boot-md.sh
|
||||||
%dir /lib/udev
|
%{_udevrulesdir}/64-md-raid.rules
|
||||||
%dir /lib/udev/rules.d
|
|
||||||
/lib/udev/rules.d/64-md-raid.rules
|
|
||||||
%dir /etc
|
%dir /etc
|
||||||
%dir /etc/cron.daily
|
%dir /etc/cron.daily
|
||||||
/etc/cron.daily/mdadm
|
/etc/cron.daily/mdadm
|
||||||
%dir /lib/systemd
|
%{_systemdshutdowndir}/mdadm.shutdown
|
||||||
%dir /lib/systemd/system-shutdown
|
|
||||||
/lib/systemd/system-shutdown/mdadm.shutdown
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user