]> git.pld-linux.org Git - packages/aspseek.git/blobdiff - aspseek.spec
cosmetics
[packages/aspseek.git] / aspseek.spec
index 06b35ba95aaec83c48413ed83aff88a37e62b49c..fb47a7dd4422a37ad9a126e9ef92024ec0e42c7c 100644 (file)
@@ -6,26 +6,30 @@ Summary:      Advanced Internet search engine
 Summary(pl):   Silnik zaawansowanej wyszukiwarki Internetowej
 Name:          aspseek
 Version:       1.2.8
-Release:       2
+Release:       4
 License:       GPL
 Group:         Networking/Utilities
 Source0:       http://www.aspseek.org/pkg/src/1.2.8/%{name}-%{version}.tar.gz
+# Source0-md5: 0660b6b0d45d37c7a53c7e1c40cae002
 Source1:       %{name}-mod_aspseek.conf
 Source2:       %{name}.init
+Patch0:                %{name}-types.patch
 URL:           http://www.aspseek.org/
 BuildRequires: apache(EAPI)-devel
-BuildRequires: openssl-devel
+BuildRequires: openssl-devel >= 0.9.7
 BuildRequires: mysql-devel
 BuildRequires: libstdc++-devel
 BuildRequires: zlib-devel
 Requires(pre): /bin/id
 Requires(pre): /usr/sbin/useradd
+Requires(postun):      /usr/sbin/userdel
 Requires(post):        fileutils
 Requires(post,preun):  /sbin/chkconfig
 Requires(post,postun): /sbin/ldconfig
-Requires(postun):      /usr/sbin/userdel
 Requires:      webserver
 Requires:      %{name}-db-%{version}
+Obsoletes:     swish++
+Obsoletes:     mnogosearch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _sysconfdir     /etc/%{name}
@@ -89,10 +93,10 @@ b
 Summary:       Apache module: ASPSeek search engine
 Summary(pl):   Modu³ Apache: Silnik wyszukiwania ASPSeek
 Group:         Networking/Daemons
-Requires(pre): aspseek
-Requires(pre): fileutils
-Requires(pre): grep
+PreReq:                aspseek
 Requires(post,preun):  %{apxs}
+Requires(post,preun):  grep
+Requires(preun):       fileutils
 Requires:      apache(EAPI)
 
 %description -n apache-mod_aspseek
@@ -103,6 +107,7 @@ Modu
 
 %prep
 %setup -q
+%patch -p1
 
 %build
 %configure2_13 \
@@ -145,15 +150,16 @@ fi
 
 %post
 /sbin/ldconfig
-/sbin/chkconfig --add httpd
-touch /var/log/aspseek.log && chown aspseek.root /var/log/aspseek.log
+/sbin/chkconfig --add %{name}
+touch /var/log/aspseek.log
+chown aspseek:root /var/log/aspseek.log
 
 %preun
 if [ "$1" = "0" ]; then
-        if [ -f /var/lock/subsys/%{name} ]; then
-                /etc/rc.d/init.d/%{name} stop 1>&2
-        fi
-        /sbin/chkconfig --del %{name}
+       if [ -f /var/lock/subsys/%{name} ]; then
+               /etc/rc.d/init.d/%{name} stop 1>&2
+       fi
+       /sbin/chkconfig --del %{name}
 fi
 
 %postun
@@ -171,21 +177,22 @@ echo "Remember to run %{_sbindir}/aspseek-mysql-postinstall."
 %post -n apache-mod_aspseek
 %{apxs} -e -a -n aspseek %{_pkglibdir}/mod_aspseek.so 1>&2
 if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*mod_aspseek.conf" /etc/httpd/httpd.conf; then
-        echo "Include /etc/httpd/mod_aspseek.conf" >> /etc/httpd/httpd.conf
+       echo "Include /etc/httpd/mod_aspseek.conf" >> /etc/httpd/httpd.conf
 fi
 if [ -f /var/lock/subsys/httpd ]; then
-        /etc/rc.d/init.d/httpd restart 1>&2
+       /etc/rc.d/init.d/httpd restart 1>&2
 fi
 
 %preun -n apache-mod_aspseek
 if [ "$1" = "0" ]; then
-        %{apxs} -e -A -n aspseek %{_pkglibdir}/mod_aspseek.so 1>&2
-        grep -v "^Include.*mod_aspseek.conf" /etc/httpd/httpd.conf > \
-                /etc/httpd/httpd.conf.tmp
-        mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
-        if [ -f /var/lock/subsys/httpd ]; then
-                /etc/rc.d/init.d/httpd restart 1>&2
-        fi
+       %{apxs} -e -A -n aspseek %{_pkglibdir}/mod_aspseek.so 1>&2
+       umask 027
+       grep -v "^Include.*mod_aspseek.conf" /etc/httpd/httpd.conf > \
+               /etc/httpd/httpd.conf.tmp
+       mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
+       if [ -f /var/lock/subsys/httpd ]; then
+               /etc/rc.d/init.d/httpd restart 1>&2
+       fi
 fi
 
 %files
@@ -205,6 +212,7 @@ fi
 %dir %{_sysconfdir}/sql
 %{_sysconfdir}/stopwords
 %{_sysconfdir}/tables
+%attr(754,root,root) /etc/rc.d/init.d/aspseek
 %attr(750,aspseek,root) %dir /var/spool/aspseek
 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*.conf
 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*.htm
This page took 0.071416 seconds and 4 git commands to generate.