]> git.pld-linux.org Git - packages/mdadm.git/commitdiff
- new version of mdctl tool (now named mdadm); update of BOOT patch required
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 10 May 2002 06:54:43 +0000 (06:54 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    mdadm.spec -> 1.1

mdadm.spec [new file with mode: 0644]

diff --git a/mdadm.spec b/mdadm.spec
new file mode 100644 (file)
index 0000000..809de3b
--- /dev/null
@@ -0,0 +1,86 @@
+# conditional build
+#  --without initrd -- don't build initrd version
+Summary:       Tool for creating and maintaining software RAID devices
+Summary(pl):   Narzêdzie do tworzenia i obs³ugi programowych macierzy RAID
+Name:          mdadm
+Version:       1.0.0
+Release:       1
+License:       GPL
+Group:         Base
+Source0:       http://www.cse.unsw.edu.au/~neilb/source/mdadm/%{name}-%{version}.tgz
+Patch0:                %{name}-BOOT.patch
+%{!?_without_initrd:BuildRequires:     dietlibc-static}
+BuildRequires: groff
+Obsoletes:     mdctl
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _sbindir                /sbin
+
+%description
+This package includes tool you need to set up and maintain a software
+RAID device under Linux. It's thought as an alternative to raidtools
+package.
+
+%description -l pl
+Pakiet ten zawiera narzêdzie potrzebne do tworzenia i obs³ugi
+programowych macierzy RAID. Program ten jest pomy¶lany jako
+alternatywa dla pakietu raidtools.
+
+%package initrd
+Summary:       Tool for maintaining software RAID devices - initrd version
+Summary(pl):   Narzêdziê obs³ugi programowych macierzy RAID, wersja dla initrd
+Group:         Base
+
+%description initrd
+Tool for maintaining software RAID devices - staticaly linked for
+initrd.
+
+%description initrd -l pl
+Narzêdzie do zarz±dzania programowymi macierzami RAID - statycznie
+zlinkowane na potrzeby initrd.
+
+%prep
+%setup -q
+#%patch0 -p1
+
+%build
+%{!?_without_initrd:%{__make} CC="%{_arch}-dietlibc-gcc" CFLAGS="%{rpmcflags}" LDFLAGS="%{rpmldflags}" static}
+%{!?_without_initrd:mv mdadm initrd-mdadm}
+%{!?_without_initrd:%{__make} clean}
+
+%{__make} \
+       CC="%{__cc}" \
+       CFLAGS="%{rpmcflags} -D_GNU_SOURCE" \
+       LDFLAGS="%{rpmldflags}" \
+       SYSCONFDIR="%{_sysconfdir}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man{5,8},%{_sysconfdir}}
+
+%{!?_without_initrd:install initrd-mdadm $RPM_BUILD_ROOT%{_sbindir}}
+install mdadm $RPM_BUILD_ROOT%{_sbindir}
+
+install *.5 $RPM_BUILD_ROOT%{_mandir}/man5
+install *.8 $RPM_BUILD_ROOT%{_mandir}/man8
+
+install mdadm.conf-example $RPM_BUILD_ROOT%{_sysconfdir}/mdadm.conf
+
+ln -s mdadm $RPM_BUILD_ROOT%{_sbindir}/mdctl
+%{!?_without_initrd:ln -s initrd-mdadm $RPM_BUILD_ROOT%{_sbindir}/initrd-mdctl}
+
+gzip -9nf ANNOUNCE TODO
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_sbindir}/*
+%attr(640,root,root) %config(noreplace,missingok) %verify(not md5 size mtime) %{_sysconfdir}/mdadm.conf
+%{_mandir}/man?/*
+
+%if %{?_without_initrd:0}%{!?_without_initrd:1}
+%files initrd
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_sbindir}/initrd-mdadm
+%endif
This page took 0.116964 seconds and 4 git commands to generate.