SPECS: php-mnogosearch.spec (NEW), php.spec - created mnogosearch ...

glen glen at pld-linux.org
Sun Dec 25 21:19:11 CET 2005


Author: glen                         Date: Sun Dec 25 20:19:11 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- created mnogosearch ext as separate spec

---- Files affected:
SPECS:
   php-mnogosearch.spec (NONE -> 1.1)  (NEW), php.spec (1.528 -> 1.529) 

---- Diffs:

================================================================
Index: SPECS/php-mnogosearch.spec
diff -u /dev/null SPECS/php-mnogosearch.spec:1.1
--- /dev/null	Sun Dec 25 21:19:11 2005
+++ SPECS/php-mnogosearch.spec	Sun Dec 25 21:19:06 2005
@@ -0,0 +1,80 @@
+# $Revision$, $Date$
+%define		_modname	mnogosearch
+%define		_sysconfdir	/etc/php
+%define		extensionsdir	%(php-config --extension-dir 2>/dev/null)
+Summary:	mnoGoSearch extension module for PHP
+Summary(pl):	Moduł mnoGoSearch dla PHP
+Name:		php-%{_modname}
+Version:	1.96
+Release:	1
+Epoch:		5
+Group:		Libraries
+License:	PHP
+Source0:	http://www.mnogosearch.org/Download/php/mnogosearch-php-extension-%{version}.tar.gz
+# Source0-md5:	01fed9f462257b644a66a72d1b5376d8
+URL:		http://www.mnogosearch.org/
+BuildRequires:	mnogosearch-devel >= 3.2.29
+BuildRequires:	php-devel >= 3:5.0.0
+BuildRequires:	rpmbuild(macros) >= 1.254
+%{?requires_php_extension}
+Requires:	%{_sysconfdir}/conf.d
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is a dynamic shared object (DSO) for PHP that will allow you to
+access mnoGoSearch free search engine.
+
+%description -l pl
+Moduł PHP dodający pozwalający na dostęp do wolnodostępnego silnika
+wyszukiwarki mnoGoSearch.
+
+%prep
+%setup -q -n %{version}
+
+%build
+phpize
+%configure \
+	--with-mnogosearch=shared,/usr
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/conf.d
+
+make install \
+	INSTALL_ROOT=$RPM_BUILD_ROOT \
+	EXTENSION_DIR=%{extensionsdir}
+
+cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/%{_modname}.ini
+; Enable %{_modname} extension module
+extension=%{_modname}.so
+EOF
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+[ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
+[ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart
+
+%postun
+if [ "$1" = 0 ]; then
+	[ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
+	[ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc CREDITS README
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/%{_modname}.ini
+%attr(755,root,root) %{extensionsdir}/%{_modname}.so
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2005/12/25 20:19:06  glen
+- created mnogosearch ext as separate spec
+

================================================================
Index: SPECS/php.spec
diff -u SPECS/php.spec:1.528 SPECS/php.spec:1.529
--- SPECS/php.spec:1.528	Sat Dec 24 18:52:09 2005
+++ SPECS/php.spec	Sun Dec 25 21:19:06 2005
@@ -10,7 +10,7 @@
 #   (existing only in php4):
 #   db, hyperwave, java, mcal, overload, qtdom
 #   and removed from php 5.1:
-#   cpdf, dio, dbx, fam, mnogosearch, yp, oracle
+#   cpdf, dio, dbx, fam, yp, oracle
 # - mime_magic can't handle new "string/*" entries in magic.mime
 # - make additional headers added by mail patch configurable
 # - apply -hardened patch by default ?
@@ -3036,6 +3036,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.529  2005/12/25 20:19:06  glen
+- created mnogosearch ext as separate spec
+
 Revision 1.528  2005/12/24 17:52:09  qboosh
 - reenabled interbase module
 - oracle module is gone; there is pdo_oci, not pdo_oracle
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/php.spec?r1=1.528&r2=1.529&f=u



More information about the pld-cvs-commit mailing list