SPECS: sphinx.spec - add initscript (NFY) and moved searchd to sbi...

glen glen at pld-linux.org
Tue May 15 15:11:02 CEST 2007


Author: glen                         Date: Tue May 15 13:11:02 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- add initscript (NFY) and moved searchd to sbindir

---- Files affected:
SPECS:
   sphinx.spec (1.9 -> 1.10) 

---- Diffs:

================================================================
Index: SPECS/sphinx.spec
diff -u SPECS/sphinx.spec:1.9 SPECS/sphinx.spec:1.10
--- SPECS/sphinx.spec:1.9	Tue Apr 17 15:59:10 2007
+++ SPECS/sphinx.spec	Tue May 15 15:10:56 2007
@@ -9,12 +9,13 @@
 Summary(pl.UTF-8):	Silnik przeszukiwania pełnotekstowego SQL open-source
 Name:		sphinx
 Version:	0.9.7
-Release:	0.2
+Release:	0.3
 License:	GPL v2
 Group:		Applications/Databases
 Source0:	http://www.sphinxsearch.com/downloads/%{name}-%{version}.tar.gz
 # Source0-md5:	32f2b7e98d8485c86108851d52c5cef4
 Patch0:		%{name}-DESTDIR.patch
+Source1:	sphinx.init
 URL:		http://www.sphinxsearch.com/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -57,12 +58,16 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_sbindir}
+install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/rc.d/init.d}
 
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/example.sql
 mv $RPM_BUILD_ROOT%{_sysconfdir}/sphinx.conf{.dist,}
+mv $RPM_BUILD_ROOT{%{_bindir},%{_sbindir}}/searchd
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -73,7 +78,8 @@
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sphinx.conf
 %attr(755,root,root) %{_bindir}/indexer
 %attr(755,root,root) %{_bindir}/search
-%attr(755,root,root) %{_bindir}/searchd
+%attr(755,root,root) %{_sbindir}/searchd
+%attr(754,root,root) /etc/rc.d/init.d/%{name}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -81,6 +87,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.10  2007/05/15 13:10:56  glen
+- add initscript (NFY) and moved searchd to sbindir
+
 Revision 1.9  2007/04/17 13:59:10  glen
 - adapter
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/sphinx.spec?r1=1.9&r2=1.10&f=u



More information about the pld-cvs-commit mailing list