packages: php-pecl-mnogosearch/php-pecl-mnogosearch.spec - use code from mn...

glen glen at pld-linux.org
Sun Aug 22 13:13:25 CEST 2010


Author: glen                         Date: Sun Aug 22 11:13:25 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- use code from mnogosearch-3.3.9 tarball
- builds now with php 5.3
- rel 2

---- Files affected:
packages/php-pecl-mnogosearch:
   php-pecl-mnogosearch.spec (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: packages/php-pecl-mnogosearch/php-pecl-mnogosearch.spec
diff -u packages/php-pecl-mnogosearch/php-pecl-mnogosearch.spec:1.6 packages/php-pecl-mnogosearch/php-pecl-mnogosearch.spec:1.7
--- packages/php-pecl-mnogosearch/php-pecl-mnogosearch.spec:1.6	Sun Apr 26 19:20:09 2009
+++ packages/php-pecl-mnogosearch/php-pecl-mnogosearch.spec	Sun Aug 22 13:13:20 2010
@@ -1,46 +1,44 @@
 # $Revision$, $Date$
-%define		_modname	mnogosearch
-%define		_status		alpha
-Summary:	%{_modname} - mnoGoSearch extension module for PHP
-Summary(pl.UTF-8):	%{_modname} - moduł mnoGoSearch dla PHP
-Name:		php-pecl-%{_modname}
+%define		modname	mnogosearch
+%define		status		alpha
+Summary:	%{modname} - mnoGoSearch extension module for PHP
+Summary(pl.UTF-8):	%{modname} - moduł mnoGoSearch dla PHP
+Name:		php-pecl-%{modname}
+# extension has no version yet (defiend as NO_VERSION_YET), keep it last pecl release
 Version:	1.0.0
-Release:	1
+Release:	2
 License:	PHP 3.01
 Group:		Development/Languages/PHP
-Source0:	http://pecl.php.net/get/%{_modname}-%{version}.tgz
-# Source0-md5:	07fa9afd0c6fa4a3772f84a0eb4f1965
+Source0:	http://www.mnogosearch.org/Download/mnogosearch-3.3.9.tar.gz
+# Source0-md5:	18d3e6c6cca3f816d05d04bd3943ed6a
 URL:		http://pecl.php.net/package/mnogosearch/
 BuildRequires:	mnogosearch-devel
 BuildRequires:	php-devel >= 3:5.0.0
 BuildRequires:	rpmbuild(macros) >= 1.344
 %{?requires_php_extension}
 Requires:	php-common >= 4:5.0.4
+Provides:	php-mnogosearch = %{version}-%{release}
 Obsoletes:	php-mnogosearch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Until PHP 5.1.0, this package was bundled in PHP.
-
 This extension is a complete PHP binding for the mnoGoSearch API. For
-details please see to http://www.mnogosearch.org/ or the manual.
+details please see to <http://www.mnogosearch.org/> or the manual.
 
-In PECL status of this extension is: %{_status}.
+In PECL status of this extension is: %{status}.
 
 %description -l pl.UTF-8
-Do wersji PHP 5.1.0, to rozszerzenie było częścią PHP.
-
 Rozszerzenie to jest kompletnym zestawem dowiązań PHP do API
 mnoGoSearch. Dokładne informacje dostępne są pod adresem
-http://www.mnogosearch.org/ lub w podręczniku.
+<http://www.mnogosearch.org/> lub w podręczniku.
 
-To rozszerzenie ma w PECL status: %{_status}.
+To rozszerzenie ma w PECL status: %{status}.
 
 %prep
-%setup -q -c
+%setup -qc
+mv mnogosearch-*/php/* .
 
 %build
-cd %{_modname}-%{version}
 phpize
 %configure \
 	--with-mnogosearch=shared,/usr
@@ -51,12 +49,12 @@
 install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
 
 %{__make} install \
-	-C %{_modname}-%{version} \
-	INSTALL_ROOT=$RPM_BUILD_ROOT \
-	EXTENSION_DIR=%{php_extensiondir}
-cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
-; Enable %{_modname} extension module
-extension=%{_modname}.so
+	EXTENSION_DIR=%{php_extensiondir} \
+	INSTALL_ROOT=$RPM_BUILD_ROOT
+
+cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
+; Enable %{modname} extension module
+extension=%{modname}.so
 EOF
 
 %clean
@@ -72,9 +70,9 @@
 
 %files
 %defattr(644,root,root,755)
-%doc %{_modname}-%{version}/CREDITS
-%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini
-%attr(755,root,root) %{php_extensiondir}/%{_modname}.so
+%doc CREDITS
+%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
+%attr(755,root,root) %{php_extensiondir}/%{modname}.so
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -82,6 +80,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.7  2010/08/22 11:13:20  glen
+- use code from mnogosearch-3.3.9 tarball
+- builds now with php 5.3
+- rel 2
+
 Revision 1.6  2009/04/26 17:20:09  adamg
 - license fixes Andrzej Mateja <amateja () pimpek.one.pl>
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php-pecl-mnogosearch/php-pecl-mnogosearch.spec?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list