[6099] | 1 | Summary: ClearSilver extension for PHP |
---|
| 2 | Summary(ja): PHP用ClearSilverモジュール |
---|
| 3 | Name: php-ext-clearsilver |
---|
| 4 | Version: 0.4 |
---|
| 5 | Release: 3%{_dist_release} |
---|
| 6 | URL: http://www.geodata.soton.ac.uk/software/php_clearsilver/ |
---|
| 7 | Source: php-clearsilver-%{version}.tar.gz |
---|
| 8 | License: The PHP License |
---|
| 9 | Group: Development/Languages |
---|
| 10 | BuildRequires: clearsilver, php5-devel |
---|
| 11 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 12 | Provides: php5-ext-clearsilver |
---|
| 13 | Requires: %{req_php_api} |
---|
| 14 | |
---|
| 15 | %description |
---|
| 16 | This module adds ClearSilver functions to PHP. |
---|
| 17 | |
---|
| 18 | %description -l ja |
---|
| 19 | このモジュールはPHPにClearSilverテンプレート機能を追加します。 |
---|
| 20 | |
---|
| 21 | %prep |
---|
| 22 | %setup -q -n php-clearsilver-%{version} |
---|
| 23 | ##perl -pi -e 's/refcount/refcount__gc/s' clearsilver.c |
---|
| 24 | |
---|
| 25 | %build |
---|
| 26 | aclocal |
---|
| 27 | autoconf |
---|
| 28 | phpize |
---|
| 29 | libtoolize --copy --force |
---|
| 30 | %configure |
---|
| 31 | %__make %{_smp_mflags} |
---|
| 32 | |
---|
| 33 | %install |
---|
| 34 | rm -rf %{buildroot} |
---|
| 35 | mkdir -p %{buildroot}%{_libdir}/php5/ |
---|
| 36 | mkdir -p %{buildroot}%{_sysconfdir}/php5/php.d |
---|
| 37 | |
---|
| 38 | install -m644 modules/clearsilver.so %{buildroot}%{_libdir}/php5/ |
---|
| 39 | |
---|
| 40 | cat > %{buildroot}%{_sysconfdir}/php5/php.d/clearsilver.ini <<EOF |
---|
| 41 | ; Enable clearsilver extension module |
---|
| 42 | extension=clearsilver.so |
---|
| 43 | EOF |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | %clean |
---|
| 47 | rm -rf %{buildroot} |
---|
| 48 | |
---|
| 49 | %files |
---|
| 50 | %defattr(-,root,root) |
---|
| 51 | %doc CREDITS INSTALL LICENSE README doc |
---|
| 52 | %{_libdir}/php5/* |
---|
| 53 | %{_sysconfdir}/php5/php.d/* |
---|
| 54 | |
---|
| 55 | %changelog |
---|
| 56 | * Sun Apr 29 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4-3 |
---|
| 57 | - converted encoding to UTF-8. |
---|
| 58 | |
---|
| 59 | * Sat Apr 28 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4-2 |
---|
| 60 | - added an API version macro to "Requires:". |
---|
| 61 | |
---|
| 62 | * Sat Dec 12 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4-1 |
---|
| 63 | - new upstream release. |
---|
| 64 | |
---|
| 65 | * Fri Jul 10 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.1-2 |
---|
| 66 | - fixed for php-5.3.0. |
---|
| 67 | |
---|
| 68 | * Mon Apr 28 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 0.1-1 |
---|
| 69 | - initial build. |
---|
| 70 | |
---|