SPECS: runit.spec - compiles, packages
glen
glen at pld-linux.org
Thu Jan 17 00:17:30 CET 2008
Author: glen Date: Wed Jan 16 23:17:30 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- compiles, packages
---- Files affected:
SPECS:
runit.spec (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SPECS/runit.spec
diff -u SPECS/runit.spec:1.1 SPECS/runit.spec:1.2
--- SPECS/runit.spec:1.1 Wed Jan 16 22:56:56 2008
+++ SPECS/runit.spec Thu Jan 17 00:17:25 2008
@@ -8,13 +8,15 @@
URL: http://smarden.org/runit/
Source0: http://smarden.org/runit/%{name}-%{version}.tar.gz
# Source0-md5: 35448e97188544914f298c88871ab984
-#Source1: %{name}.svup
-#Source2: %{name}.svdown
-#Source3: %{name}.svdepcalc
-#Source4: %{name}.dependencies.README
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Patch0: %{name}-nostatic.patch
+Source1: http://fisheye1.cenqua.com/browse/~raw,r=1.1/smeserver/runit/S/%{name}.svup
+Source2: http://fisheye1.cenqua.com/browse/~raw,r=1.1/smeserver/runit/S/%{name}.svdown
+Source3: http://fisheye1.cenqua.com/browse/~raw,r=1.1/smeserver/runit/S/%{name}.svdepcalc
+Source4: http://fisheye1.cenqua.com/browse/~raw,r=1.1/smeserver/runit/S/%{name}.dependencies.README
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define _sbindir /sbin
+
%description
runit is a daemontools alike replacement for sysvinit and other init
schemes. runit runs on GNU/Linux, OpenBSD, FreeBSD, and can easily be
@@ -29,22 +31,24 @@
%prep
%setup -qc
mv admin/%{name}-%{version}/* .
+%patch0 -p1
+cp -a %{SOURCE4} doc/dependencies.README
+rm -f doc/debian
%build
echo '%{__cc} %{rpmldflags}' > src/conf-ld
-echo '%{__cc] %{rpmcflags} -Wall' > src/conf-cc
+echo '%{__cc} %{rpmcflags} -Wall' > src/conf-cc
./package/compile
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_bindir}
-install %{SOURCE1} command/svisup
-install %{SOURCE2} command/svisdown
-install %{SOURCE3} command/svdepcalc
-install %{SOURCE4} doc/dependencies.README
-for i in $(cat package/commands) svisup svisdown svdepcalc; do
- install command/$i $RPM_BUILD_ROOT%{_bindir}
+install -d $RPM_BUILD_ROOT%{_sbindir}
+for i in $(cat package/commands); do
+ install command/$i $RPM_BUILD_ROOT%{_sbindir}
done
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/svisup
+install %{SOURCE2} $RPM_BUILD_ROOT%{_sbindir}/svisdown
+install %{SOURCE3} $RPM_BUILD_ROOT%{_sbindir}/svdepcalc
install -d $RPM_BUILD_ROOT%{_mandir}/man8
install man/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
@@ -53,11 +57,9 @@
%files
%defattr(644,root,root,755)
-%doc admin/%{name}-%{version}/package/COPYING
-%doc admin/%{name}-%{version}/doc/*
-%attr(755,root,root) %{_bindir}/*
+%doc doc/*
+%attr(755,root,root) %{_sbindir}/*
%{_mandir}/man8/*
-#%{_mandir}/man1/*
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -65,6 +67,8 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.2 2008-01-16 23:17:25 glen
+- compiles, packages
+
Revision 1.1 2008-01-16 21:56:56 glen
- new, however there's some invisible typo in %build which breaks rpm 4.4.9
-
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/runit.spec?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list