50a71fa70b
and includes assorted other minor fixes. - Delete 0001-Assemble-allow-load_devices-to-change-the-st-which-i.patch - Delete 0001-DDF-mark-missing-on-assembly-device-properly.patch - Delete 0001-mdmon-.service-Change-type-of-process-start-up-to-fo.patch - Delete 0001-systemd-various-fixes-for-boot-with-container-arrays.patch - Delete 0002-Assemble-re-arrange-freeing-of-tst-in-load_devices.patch - Delete 0002-DDF-guard-against-pdnum-being-negative.patch - Delete 0003-Assemble-change-load_devices-to-return-most_recent-s.patch - Delete 0003-DDF-fix-possible-mdmon-crash-when-updating-metadata.patch - Delete 0003-Work-around-architectures-having-statfs.f_type-defin.patch - Delete 0004-DDF-Don-t-fail-compare_super_ddf-due-to-re-configure.patch - Delete 0004-DDF-report-seq-counter-as-events.patch - Delete 0005-DDF-when-first-activating-an-array-record-any-missin.patch - Delete Assembe-fix-bug-in-force_array-it-wasn-t-forcing-pro.patch - Delete Assemble-Incremental-don-t-hold-O_EXCL-on-mddev-afte.patch - Delete Assemble-avoid-infinite-loop-when-auto-assembling-pa.patch - Delete DDF-add_to_super_ddf-be-careful-with-workspace_lba.patch - Delete DDF-allow-for-possibility-that-there-is-no-secondary.patch - Delete DDF-brief_examine_subarrays_ddf-print-array-name.patch - Delete DDF-compare_super_ddf-fix-sequence-number-check.patch - Delete DDF-factor-out-array-name-generation.patch - Delete DDF-fix-detection-of-failed-devices-during-assembly.patch - Delete DDF-handle-fake-RAIDs-with-changing-subarray-UUIDs.patch - Delete DDF-really-ignore-DDF-metadata-on-partitions.patch - Delete Grow-fix-problems-with-prematurely-aborting-of-resha.patch - Delete IMSM-don-t-crash-when-creating-an-array-with-missing.patch - Delete Incremental-add-export-handling.patch - Delete Incremental-improve-support-for-DEVICE-based-restric.patch - Delete Make-IRs-and-run-work-properly-for-containers.patch OBS-URL: https://build.opensuse.org/package/show/Base:System/mdadm?expand=0&rev=108
125 lines
4.0 KiB
RPMSpec
125 lines
4.0 KiB
RPMSpec
#
|
|
# spec file for package mdadm
|
|
#
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: mdadm
|
|
Version: 3.3.1
|
|
Release: 0
|
|
BuildRequires: binutils-devel
|
|
BuildRequires: groff
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: sgmltool
|
|
BuildRequires: pkgconfig(libudev)
|
|
BuildRequires: pkgconfig(systemd)
|
|
PreReq: %fillup_prereq %insserv_prereq /sbin/mkinitrd
|
|
Recommends: cron
|
|
Recommends: smtp_daemon
|
|
Obsoletes: raidtools
|
|
Url: http://www.kernel.org/pub/linux/utils/raid/mdadm/
|
|
Summary: Utility for Configuring MD Setup
|
|
License: GPL-2.0
|
|
Group: System/Base
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Source: https://www.kernel.org/pub/linux/utils/raid/mdadm/%{name}-%{version}.tar.xz
|
|
Source1: Software-RAID.HOWTO.tar.bz2
|
|
Source2: sysconfig.mdadm
|
|
Source5: mkinitrd-setup.sh
|
|
Source6: mkinitrd-boot.sh
|
|
Source7: mdadm.cron
|
|
|
|
%define _udevdir %(pkg-config --variable=udevdir udev)
|
|
%define _systemdshutdowndir %{_unitdir}/../system-shutdown
|
|
|
|
%description
|
|
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
|
|
programs but with a very different interface.
|
|
|
|
%prep
|
|
%setup -q -a1
|
|
|
|
%build
|
|
make %{?_smp_mflags} CC="%__cc" CXFLAGS="$RPM_OPT_FLAGS -Wno-error" SUSE=yes
|
|
cd Software-RAID.HOWTO
|
|
sgml2html Software-RAID.HOWTO.sgml
|
|
sgml2txt Software-RAID.HOWTO.sgml
|
|
|
|
%install
|
|
make install install-systemd install-udev DESTDIR=%{buildroot} SYSTEMD_DIR=%{_unitdir} UDEVDIR=%{_udevdir} SUSE=yes
|
|
rm -rf %{buildroot}/lib/udev
|
|
install -d %{buildroot}%{_var}/adm/fillup-templates
|
|
install -d %{buildroot}{%{_sbindir}
|
|
install -d %{buildroot}/lib/mkinitrd/scripts
|
|
install -m 755 %{S:5} %{buildroot}/lib/mkinitrd/scripts/setup-md.sh
|
|
install -m 755 %{S:6} %{buildroot}/lib/mkinitrd/scripts/boot-md.sh
|
|
install -d %{buildroot}/etc/cron.daily
|
|
install -m 755 %{S:7} %{buildroot}/etc/cron.daily/mdadm
|
|
install -m 644 %{S:2} %{buildroot}%{_var}/adm/fillup-templates/
|
|
install -d %{buildroot}%{_systemdshutdowndir}
|
|
|
|
%post
|
|
[ -x /sbin/mkinitrd_setup ] && mkinitrd_setup
|
|
if [ -e /var/lib/no_initrd_recreation_by_suspend ]; then
|
|
echo "Skipping recreation of existing initial ramdisks, due"
|
|
echo "to presence of /var/lib/no_initrd_recreation_by_suspend"
|
|
elif [ -x /sbin/mkinitrd ]; then
|
|
/sbin/mkinitrd
|
|
fi
|
|
|
|
%fillup_only
|
|
|
|
%postun
|
|
[ -x /sbin/mkinitrd_setup ] && mkinitrd_setup
|
|
if [ -e /var/lib/no_initrd_recreation_by_suspend ]; then
|
|
echo "Skipping recreation of existing initial ramdisks, due"
|
|
echo "to presence of /var/lib/no_initrd_recreation_by_suspend"
|
|
elif [ -x /sbin/mkinitrd ]; then
|
|
/sbin/mkinitrd
|
|
fi
|
|
|
|
%{insserv_cleanup}
|
|
|
|
%preun
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc COPYING ChangeLog README.initramfs TODO mdadm.conf-example mkinitramfs
|
|
%doc Software-RAID.HOWTO/Software-RAID.HOWTO*{.txt,.html}
|
|
%doc %{_mandir}/man?/*
|
|
/sbin/*
|
|
%{_var}/adm/fillup-templates/sysconfig.mdadm
|
|
%dir /lib/mkinitrd
|
|
%dir /lib/mkinitrd/scripts
|
|
/lib/mkinitrd/scripts/setup-md.sh
|
|
/lib/mkinitrd/scripts/boot-md.sh
|
|
%{_udevdir}/rules.d/63-md-raid-arrays.rules
|
|
%{_udevdir}/rules.d/64-md-raid-assembly.rules
|
|
%dir /etc/cron.daily
|
|
/etc/cron.daily/mdadm
|
|
%{_systemdshutdowndir}/mdadm.shutdown
|
|
%{_unitdir}/mdmon@.service
|
|
%{_unitdir}/mdmonitor.service
|
|
%{_unitdir}/mdadm-last-resort@.timer
|
|
%{_unitdir}/mdadm-last-resort@.service
|
|
%dir %{_unitdir}/../scripts
|
|
%{_unitdir}/../scripts/mdadm_env.sh
|
|
|
|
%changelog
|