packages: php-pecl-dbx/php-pecl-dbx.spec - unify

glen glen at pld-linux.org
Thu Jun 3 20:23:12 CEST 2010


Author: glen                         Date: Thu Jun  3 18:23:12 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- unify

---- Files affected:
packages/php-pecl-dbx:
   php-pecl-dbx.spec (1.17 -> 1.18) 

---- Diffs:

================================================================
Index: packages/php-pecl-dbx/php-pecl-dbx.spec
diff -u packages/php-pecl-dbx/php-pecl-dbx.spec:1.17 packages/php-pecl-dbx/php-pecl-dbx.spec:1.18
--- packages/php-pecl-dbx/php-pecl-dbx.spec:1.17	Wed Jun  2 17:52:43 2010
+++ packages/php-pecl-dbx/php-pecl-dbx.spec	Thu Jun  3 20:23:07 2010
@@ -1,14 +1,14 @@
 # $Revision$, $Date$
-%define		_modname	dbx
-%define		_status		stable
-Summary:	%{_modname} - database abstraction functions
-Summary(pl.UTF-8):	%{_modname} - funkcje abstrakcji baz danych
-Name:		php-pecl-%{_modname}
+%define		modname	dbx
+%define		status		stable
+Summary:	%{modname} - database abstraction functions
+Summary(pl.UTF-8):	%{modname} - funkcje abstrakcji baz danych
+Name:		php-pecl-%{modname}
 Version:	1.1.0
 Release:	9
 License:	PHP 2.02
 Group:		Development/Languages/PHP
-Source0:	http://pecl.php.net/get/%{_modname}-%{version}.tgz
+Source0:	http://pecl.php.net/get/%{modname}-%{version}.tgz
 # Source0-md5:	82d1091c75e047c4a8f9aea7b279e13b
 URL:		http://pecl.php.net/package/dbx/
 BuildRequires:	php-devel >= 3:5.0.0
@@ -28,7 +28,7 @@
 The currently supported databases are MySQL, ODBC, Oracle (oci8), MS
 SQL Server, PostgreSQL, FrontBase, Sybase-CT and SQLite.
 
-In PECL status of this extension is: %{_status}.
+In PECL status of this extension is: %{status}.
 
 %description -l pl.UTF-8
 Moduł dbx to warstwa abstrakcji baz danych. Funkcje dbx pozwalają na
@@ -39,13 +39,13 @@
 Aktualnie wspierane bazy danych to MySQL, ODBC, Oracle (oci8), MS SQL
 Server, PostgreSQL, FrontBase, Sybase-CT oraz SQLite.
 
-To rozszerzenie ma w PECL status: %{_status}.
+To rozszerzenie ma w PECL status: %{status}.
 
 %prep
-%setup -q -c
+%setup -qc
+mv %{modname}-%{version}/* .
 
 %build
-cd %{_modname}-%{version}
 phpize
 %configure
 %{__make}
@@ -53,11 +53,10 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
-
-install %{_modname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
-cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
-; Enable %{_modname} extension module
-extension=%{_modname}.so
+install -p modules/%{modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
+cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
+; Enable %{modname} extension module
+extension=%{modname}.so
 EOF
 
 %clean
@@ -73,9 +72,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
@@ -83,6 +82,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.18  2010/06/03 18:23:07  glen
+- unify
+
 Revision 1.17  2010/06/02 15:52:43  glen
 - release 9
 
================================================================

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



More information about the pld-cvs-commit mailing list