SPECS: edna.spec - noarch, move files to _datadir

zbyniu zbyniu at pld-linux.org
Fri Dec 2 01:11:42 CET 2005


Author: zbyniu                       Date: Fri Dec  2 00:11:42 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- noarch, move files to _datadir

---- Files affected:
SPECS:
   edna.spec (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: SPECS/edna.spec
diff -u SPECS/edna.spec:1.3 SPECS/edna.spec:1.4
--- SPECS/edna.spec:1.3	Tue Nov 30 23:00:05 2004
+++ SPECS/edna.spec	Fri Dec  2 01:11:36 2005
@@ -1,7 +1,8 @@
 # $Revision$, $Date$
 #
-# TODO: 
+# TODO:
 #	- init script should be fixed
+#	- run as uid>0 !
 #
 Summary:	Edna - streaming server
 Summary(pl):	Edna - serwer strumieni
@@ -14,9 +15,12 @@
 # Source0-md5:	ec3d46b25fa582b78db7c32acf78da47
 Source1:	%{name}.init
 URL:		http://edna.sourceforge.net/
-PreReq:		rc-scripts
+BuildRequires:	rpm-pythonprov
+Requires:	rc-scripts
 Requires(post,preun):	/sbin/chkconfig
 Requires:	python
+Requires:	python-modules
+BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -40,11 +44,12 @@
 install -d $RPM_BUILD_ROOT%{_sysconfdir}/edna
 
 %{__make} install \
-	DESTDIR=$RPM_BUILD_ROOT
+	DESTDIR=$RPM_BUILD_ROOT \
+	LIBDIR=$RPM_BUILD_ROOT%{_datadir}/edna
 
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/edna
 install edna.conf $RPM_BUILD_ROOT%{_sysconfdir}/edna
-ln -sf /usr/lib/edna/templates $RPM_BUILD_ROOT%{_sysconfdir}/edna/templates
+ln -sf %{_datadir}/edna/templates $RPM_BUILD_ROOT%{_sysconfdir}/edna/templates
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -71,11 +76,9 @@
 %attr(755,root,root) %{_bindir}/edna
 %attr(754,root,root) /etc/rc.d/init.d/edna
 %dir %{_sysconfdir}/edna
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/edna/edna.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/edna/edna.conf
 %{_sysconfdir}/edna/templates
-%dir %{_libdir}/%{name}
-%attr(755,root,root) %{_libdir}/%{name}/*.py
-%{_libdir}/%{name}/templates
+%{_datadir}/%{name}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -83,6 +86,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4  2005/12/02 00:11:36  zbyniu
+- noarch, move files to _datadir
+
 Revision 1.3  2004/11/30 22:00:05  zbyniu
 - added PreReq: rc-scripts and Requires(): /sbin/chkconfig for daemon
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/edna.spec?r1=1.3&r2=1.4&f=u




More information about the pld-cvs-commit mailing list