source: projects/specs/trunk/p/php-ext-clearsilver/php-ext-clearsilver-vl.spec @ 9787

Revision 9787, 4.8 KB checked in by tomop, 7 years ago (diff)

php-ext-clearsilver-0.4-8

  • Property svn:executable set to *
Line 
1%bcond_without php5
2%bcond_with php70
3
4%define modname clearsilver
5
6Summary: ClearSilver extension for PHP
7Summary(ja): PHP用ClearSilverモジュール
8Name: php-ext-%{modname}
9Version: 0.4
10Release: 8%{_dist_release}
11URL: http://www.geodata.soton.ac.uk/software/php_clearsilver/
12Source: php-%{modname}-%{version}.tar.gz
13Patch0: php-clearsilver-0.4-php5.5.0.patch
14Patch1: php-clearsilver-0.4-cgifunctions.patch
15Patch2: php-clearsilver-0.4-php7.0.0.patch
16License: The PHP License
17Group: Development/Languages
18BuildRequires: clearsilver, zlib-devel
19BuildRoot: %{_tmppath}/%{name}-%{version}-root
20
21%if %{with php5}
22BuildRequires: php5-devel
23%endif
24
25%if %{with php70}
26BuildRequires: php70-devel
27%endif
28
29Vendor: Project Vine
30Distribution: Vine Linux
31Packager: tomop
32
33%description
34This module adds ClearSilver functions to PHP.
35
36%description -l ja
37このモジュールはPHPにClearSilverテンプレート機能を追加します。
38
39%if %{with php5}
40%package -n php5-ext-%{modname}
41Summary: ClearSilver extension for PHP-5.6.x
42Summary(ja): PHP-5.6.x用ClearSilverモジュール
43Group: Development/Languages
44%if "%{?req_php5_api}" != ""
45Requires: %{req_php5_api}
46%endif
47Obsoletes: php-ext-clearsilver < 0.4-7
48
49%description -n php5-ext-%{modname}
50This module adds ClearSilver functions to PHP.
51
52%description -n php5-ext-%{modname} -l ja
53このモジュールはPHPにClearSilverテンプレート機能を追加します。
54
55%endif
56
57%if %{with php70}
58%package -n php70-ext-%{modname}
59Summary: ClearSilver extension for PHP-7.0.x
60Summary(ja): PHP-7.0.x用ClearSilverモジュール
61Group: Development/Languages
62%if "%{?req_php70_api}" != ""
63Requires: %{req_php70_api}
64%endif
65
66%description -n php70-ext-%{modname}
67This module adds ClearSilver functions to PHP.
68
69%description -n php70-ext-%{modname} -l ja
70このモジュールはPHPにClearSilverテンプレート機能を追加します。
71
72%endif
73
74%prep
75%setup -q -c -n php-%{modname}-%{version}
76
77cp -a php-%{modname}-%{version}/{CREDITS,INSTALL,LICENSE,README,doc} ./
78
79%if %{with php5}
80cp -a php-clearsilver-%{version} php-clearsilver-%{version}-php5
81pushd php-clearsilver-%{version}-php5
82%patch0 -p1 -b .php55
83%patch1 -p1 -b .cgifunctions
84popd
85%endif
86
87%if %{with php70}
88cp -a php-clearsilver-%{version} php-clearsilver-%{version}-php70
89pushd php-clearsilver-%{version}-php70
90%patch0 -p1 -b .php55
91%patch1 -p1 -b .cgifunctions
92%patch2 -p1 -b .php70
93popd
94%endif
95
96%build
97%if %{with php5}
98pushd php-clearsilver-%{version}-php5
99aclocal
100autoconf
101phpize5
102libtoolize --copy --force
103%configure --with-php-config=/usr/bin/php-config5
104%__make %{_smp_mflags}
105popd
106%endif
107
108%if %{with php70}
109pushd php-clearsilver-%{version}-php70
110aclocal
111autoconf
112phpize70
113libtoolize --copy --force
114%configure --with-php-config=/usr/bin/php-config70
115%__make %{_smp_mflags}
116popd
117%endif
118
119%install
120rm -rf %{buildroot}
121%if %{with php5}
122pushd php-clearsilver-%{version}-php5
123mkdir -p %{buildroot}%{_libdir}/php5/
124mkdir -p %{buildroot}%{_sysconfdir}/php5/php.d
125
126install -m644 modules/%{modname}.so %{buildroot}%{_libdir}/php5/
127
128cat > %{buildroot}%{_sysconfdir}/php5/php.d/%{modname}.ini <<EOF
129; Enable %{modname} extension module
130extension=%{modname}.so
131EOF
132popd
133%endif
134
135%if %{with php70}
136pushd php-clearsilver-%{version}-php70
137mkdir -p %{buildroot}%{_libdir}/php70/
138mkdir -p %{buildroot}%{_sysconfdir}/php70/php.d
139
140install -m644 modules/%{modname}.so %{buildroot}%{_libdir}/php70/
141
142cat > %{buildroot}%{_sysconfdir}/php70/php.d/%{modname}.ini <<EOF
143; Enable %{modname} extension module
144extension=%{modname}.so
145EOF
146popd
147%endif
148
149%clean
150rm -rf %{buildroot}
151
152%if %{with php5}
153%files -n php5-ext-%{modname}
154%defattr(-,root,root)
155%doc CREDITS INSTALL LICENSE README doc
156%{_libdir}/php5/*
157%{_sysconfdir}/php5/php.d/*
158%endif
159
160%if %{with php70}
161%files -n php70-ext-%{modname}
162%defattr(-,root,root)
163%doc CREDITS INSTALL LICENSE README doc
164%{_libdir}/php70/*
165%{_sysconfdir}/php70/php.d/*
166%endif
167
168%changelog
169* Thu Nov  5 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4-8
170- fixed summary.
171- fixed php70 stuff.
172
173* Thu Nov  5 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4-7
174- added CGI functions.
175- added support for php70.
176
177* Fri Apr 10 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4-6
178- rebuilt with php5-5.6.7.
179
180* Thu Jan 09 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4-5
181- rebuilt with current environment.
182
183* Tue Jun 25 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4-4
184- added a patch for PHP 5.5.0.
185
186* Sun Apr 29 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4-3
187- converted encoding to UTF-8.
188
189* Sat Apr 28 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4-2
190- added an API version macro to "Requires:".
191
192* Sat Dec 12 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4-1
193- new upstream release.
194 
195* Fri Jul 10 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.1-2
196- fixed for php-5.3.0.
197
198* Mon Apr 28 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 0.1-1
199- initial build.
200
Note: See TracBrowser for help on using the repository browser.