/[smecontribs]/rpms/clearsilver/contribs9/clearsilver.spec
ViewVC logotype

Contents of /rpms/clearsilver/contribs9/clearsilver.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Fri Apr 22 09:08:13 2016 UTC (8 years ago) by unnilennium
Branch: MAIN
CVS Tags: clearsilver-0_10_5-21_el6_sme, HEAD
Initial import

1 %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
2
3 Name: clearsilver
4 Version: 0.10.5
5 Release: 21%{?dist}
6 Summary: Fast and powerful HTML templating system
7 Group: Development/Libraries
8 # Technically, the license is "Neotonic ClearSilver", but it is a copy of
9 # ASL 1.1 with the trademarks as the only difference.
10 License: ASL 1.1
11 URL: http://www.clearsilver.net/
12 Source0: http://www.clearsilver.net/downloads/%{name}-%{version}.tar.gz
13 Patch0: clearsilver-0.10.5-fedora.patch
14 Patch1: clearsilver-0.10.5-regression.patch
15 Patch2: clearsilver-0.10.5-CVE-2011-4357.patch
16 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
17 BuildRequires: zlib-devel
18 BuildRequires: httpd-devel
19 BuildRequires: perl(ExtUtils::MM)
20
21 %description
22 ClearSilver is a fast, powerful, and language-neutral HTML template
23 system. In both static content sites and dynamic HTML applications,
24 it provides a separation between presentation code and application
25 logic which makes working with your project easier. The design of
26 ClearSilver began in 1999, and evolved during its use at onelist.com,
27 egroups.com, and Yahoo! Groups. Today many other projects and
28 websites are using it.
29
30 %package devel
31 Summary: ClearSilver development package
32 Group: Development/Libraries
33 Provides: %{name}-static = %{version}-%{release}
34
35 %description devel
36 This package provides needed files to develop extensions
37 to ClearSilver.
38
39 %package -n python-%{name}
40 Summary: Python interface to the ClearSilver HTML templating system
41 Group: Development/Libraries
42 BuildRequires: python-devel >= 2.1
43 Provides: %{name}-python = %{version}-%{release}
44
45 %description -n python-%{name}
46 %{summary}.
47
48 %package -n perl-%{name}
49 Summary: Perl interface to the ClearSilver HTML templating system
50 Group: Development/Libraries
51 BuildRequires: perl
52 %if 0%{?fedora} > 6
53 BuildRequires: perl-devel
54 %endif
55 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
56 Provides: %{name}-perl = %{version}-%{release}
57
58 %description -n perl-%{name}
59 %{summary}.
60
61 %package -n ruby-%{name}
62 Summary: Ruby interface to the ClearSilver HTML templating system
63 Group: Development/Libraries
64 BuildRequires: ruby
65 BuildRequires: ruby-devel
66 Provides: %{name}-ruby = %{version}-%{release}
67 %define ruby_sitearchdir %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]')
68 %define ruby_sitelibdir %(ruby -rrbconfig -e 'puts Config::CONFIG["sitelibdir"]')
69
70 %description -n ruby-%{name}
71 %{summary}.
72
73 %if 0%{?rhel} > 4
74 %package -n java-%{name}
75 Summary: Java interface to the ClearSilver HTML templating system
76 Group: Development/Libraries
77 BuildRequires: java-devel
78 Provides: %{name}-java = %{version}-%{release}
79
80 %description -n java-%{name}
81 %{summary}.
82 %endif
83
84 %prep
85 %setup -q
86 %patch0 -p1
87 %patch1 -p1
88 %patch2 -p1
89 touch configure
90 sed -i 's|/neo/opt/bin/python|%{__python}|' python/examples/*/*.py
91 sed -i 's|PYTHON_SITE = @PYTHON_SITE@|PYTHON_SITE = %{python_sitearch}|' rules.mk.in
92 find python/examples -type f | xargs chmod -x
93
94 %build
95 # java and ruby does not build on x86_64
96 %ifarch %{ix86} ppc alpha
97 %configure \
98 %if 0%{?rhel} > 4
99 --with-java=%{_libdir}/jvm/java \
100 %endif
101 --with-python=%{__python} \
102 --disable-csharp
103 %else
104 %configure \
105 --with-python=%{__python} \
106 --disable-java \
107 --disable-ruby \
108 --disable-csharp
109 %endif
110 make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
111 cd perl && %{__perl} Makefile.PL INSTALLDIRS=vendor && cd ..
112
113 %install
114 rm -rf $RPM_BUILD_ROOT
115 make install DESTDIR=$RPM_BUILD_ROOT
116 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
117 find $RPM_BUILD_ROOT -type f -name perllocal.pod -exec rm -f {} ';'
118 find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
119 find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
120 chmod -R u+w $RPM_BUILD_ROOT/*
121
122 %ifarch %{ix86} ppc
123 %if 0%{?rhel} > 4
124 install -dm 755 $RPM_BUILD_ROOT%{_libdir}/java
125 mv $RPM_BUILD_ROOT%{_libdir}{,/java}/libclearsilver-jni.so
126 mv $RPM_BUILD_ROOT%{_libdir}/clearsilver.jar \
127 $RPM_BUILD_ROOT%{_libdir}/java/clearsilver-%{version}.jar
128 chmod 644 $RPM_BUILD_ROOT%{_libdir}/java/clearsilver-%{version}.jar
129 ln -s clearsilver-%{version}.jar $RPM_BUILD_ROOT%{_libdir}/java/clearsilver.jar
130 %endif
131 %endif
132
133 %clean
134 rm -rf $RPM_BUILD_ROOT
135
136 %files
137 %defattr(-,root,root,-)
138 %doc CS_LICENSE INSTALL LICENSE README
139 %{_bindir}/cs
140 %{_bindir}/cstest
141 %{_bindir}/cs_static.cgi
142 %{_mandir}/man3/*
143
144 %files devel
145 %defattr(-, root, root, 0755)
146 %doc CS_LICENSE LICENSE
147 %{_includedir}/ClearSilver/
148 %{_libdir}/libneo_*.a
149
150 %files -n python-clearsilver
151 %doc CS_LICENSE LICENSE
152 %defattr(-,root,root,-)
153 %doc README.python python/examples/
154 %{python_sitearch}/neo_cgi.so
155
156 %files -n perl-clearsilver
157 %doc CS_LICENSE LICENSE
158 %defattr(-,root,root,-)
159 %{perl_vendorarch}/auto/ClearSilver/
160 %{perl_vendorarch}/ClearSilver.pm
161
162 %ifarch %{ix86} ppc alpha
163 %files -n ruby-clearsilver
164 %doc CS_LICENSE LICENSE
165 %defattr(-,root,root,-)
166 %{ruby_sitearchdir}/hdf.so
167 %{ruby_sitelibdir}/neo.rb
168
169 %if 0%{?rhel} > 4
170 %files -n java-clearsilver
171 %doc CS_LICENSE LICENSE
172 %defattr(-,root,root,-)
173 %{_libdir}/java/*clearsilver*
174 %endif
175 %endif
176
177 %changelog
178 * Fri Apr 22 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.10.5-21.sme
179 - change command order in build section to let the perl module share object detect the
180 - libraries and add them
181
182 * Thu Apr 21 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.10.5-20.sme
183 - build against SME [SME: 9474]
184
185 * Mon Dec 12 2011 Jon Ciesla <limburgher@gmail.com> - 0.10.5-15
186 - Patch for CVE-2011-4357, BZ 757543.
187
188 * Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.10.5-14
189 - Perl mass rebuild
190
191 * Fri Jun 10 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.10.5-13
192 - Perl 5.14 mass rebuild
193
194 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.5-12
195 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
196
197 * Mon Oct 04 2010 Jon Ciesla <limb@jcomserv.net> - 0.10.5-11
198 - Added virtual provides for -static, BZ 609601.
199
200 * Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.10.5-10
201 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
202
203 * Thu Apr 29 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.10.5-9
204 - Mass rebuild with perl-5.12.0
205
206 * Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 0.10.5-8
207 - rebuild against perl 5.10.1
208
209 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.5-7
210 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
211
212 * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.5-6
213 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
214
215 * Mon Apr 14 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.10.5-4
216 - Add patch from Kevin Kofler to fix build failures.
217
218 * Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.10.5-3
219 Rebuild for new perl
220
221 * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.10.5-2
222 - Autorebuild for GCC 4.3
223
224 * Mon Jun 4 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.10.4-5
225 - Add BR perl-devel for fedora > 6
226
227 * Fri Jun 01 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.10.4-4
228 - Minor cleanups
229
230 * Fri Jun 01 2007 Jesse Keating <jkeating@redhat.com> - 0.10.4-3.1
231 - Disable java subpackages on el4
232
233 * Thu Apr 12 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.10.4-3
234 - Remove bogus -devel provides.
235
236 * Wed Mar 28 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.10.4-2
237 - Bump release.
238
239 * Wed Mar 28 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.10.4-1
240 - Update to 0.10.4
241
242 * Sat Dec 9 2006 Joost Soeterbroek <joost.soeterbroek@gmail.com> - 0.10.3-5
243 - Rebuild for python 2.5
244
245 * Mon Aug 28 2006 Joost Soeterbroek <fedora@soeterbroek.com> - 0.10.3-4
246 - Rebuild for Fedora Extras 6
247
248 * Thu Jun 1 2006 Paul Howarth <paul@city-fan.org> - 0.10.3-4
249 - ruby subpackage fix: use ruby_sitearchdir and ruby_sitelibdir
250
251 * Fri Mar 17 2006 Joost Soeterbroek <fedora@soeterbroek.com> - 0.10.3-3
252 - fix for x86_64
253
254 * Mon Mar 13 2006 Joost Soeterbroek <fedora@soeterbroek.com> - 0.10.3-1
255 - release 0.10.3
256
257 * Mon Feb 13 2006 Joost Soeterbroek <fedora@soeterbroek.com> - 0.10.2-3
258 - Rebuild for Fedora Extras 5
259
260 * Fri Jan 6 2006 Joost Soeterbroek <fedora@soeterbroek.com> - 0.10.2-2
261 - Rebuild with disable-ruby, disable-java for any arch other than i386
262 - hardcoded version in Patch0
263 - extra line in prep-section
264 - license files in all subpackages
265
266 * Thu Dec 15 2005 Joost Soeterbroek <fedora@soeterbroek.com> - 0.10.2-1
267 - Rebuild for 0.10.2
268
269 * Tue Nov 29 2005 Joost Soeterbroek <fedora@soeterbroek.com> - 0.10.1-1
270 - Rebuild for Fedora Extras
271
272 * Sun Jul 31 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.10.1-0.1
273 - 0.10.1, PIC issues fixed upstream.
274
275 * Sun May 29 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.9.14-0.3
276 - Rebuild for FC4.
277 - Rename subpackages to $foo-clearsilver.
278
279 * Mon Apr 25 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.9.14-0.2
280 - Build as PIC, fixes Ruby and Java builds on FC4.
281 - More parallel make fixing.
282
283 * Fri Apr 8 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.9.14-0.1
284 - First build.

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed