1 | %define name clearsilver |
---|
2 | %define version 0.10.5 |
---|
3 | %define release 10%{_dist_release} |
---|
4 | |
---|
5 | Summary: A fast, powerful, and language-neutral HTML template system. |
---|
6 | Summary(ja): 高速、パワフルで言語中立なHTMLテンプレートシステム |
---|
7 | Name: %{name} |
---|
8 | Version: %{version} |
---|
9 | Release: %{release} |
---|
10 | |
---|
11 | License: Neotonic ClearSilver Software License |
---|
12 | Group: Applications/Text |
---|
13 | URL: http://clearsilver.net/ |
---|
14 | |
---|
15 | Source0: http://clearsilver.net/downloads/%{name}-%{version}.tar.gz |
---|
16 | Patch0: clearsilver-0.10.5-conf.patch |
---|
17 | Patch1: clearsilver-0.10.5-regression.patch |
---|
18 | Patch2: clearsilver-0.10.5-CVE-2011-4357.patch |
---|
19 | Patch3: clearsilver-ruby-1.9.patch |
---|
20 | Patch4: clearsilver-ruby-2.2.patch |
---|
21 | |
---|
22 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
23 | BuildRequires: perl |
---|
24 | BuildRequires: python-devel |
---|
25 | BuildRequires: ruby |
---|
26 | BuildRequires: ruby-devel >= 1.9.3 |
---|
27 | BuildRequires: zlib-devel |
---|
28 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
29 | Provides: ruby(clearsilver) |
---|
30 | |
---|
31 | Vendor: Project Vine |
---|
32 | Distribution: Vine Linux |
---|
33 | |
---|
34 | %description |
---|
35 | ClearSilver is a fast, powerful, and language-neutral template system. |
---|
36 | It is designed to make it easy to create template driven static or |
---|
37 | dynamic websites. |
---|
38 | |
---|
39 | %description -l ja |
---|
40 | Clearsilver は高速、強力で言語中立なテンプレートシステムです。 |
---|
41 | テンプレート駆動の静的あるいは動的な Web サイトの構築を |
---|
42 | 容易にすることを目指して設計されています。 |
---|
43 | |
---|
44 | %prep |
---|
45 | %setup -q |
---|
46 | %patch0 -p1 -b .conf |
---|
47 | %patch1 -p1 |
---|
48 | %patch2 -p1 |
---|
49 | %patch3 -p1 |
---|
50 | %patch4 -p1 |
---|
51 | touch configure |
---|
52 | perl -pi -e 's/python_versions="2\.5/python_versions="2.7 2.6 2.5/' configure |
---|
53 | sed -i 's|/neo/opt/bin/python|%{__python}|' python/examples/*/*.py |
---|
54 | sed -i 's|PYTHON_SITE = @PYTHON_SITE@|PYTHON_SITE = %{python_sitearch}|' rules.mk.in |
---|
55 | find python/examples -type f | xargs chmod -x |
---|
56 | |
---|
57 | |
---|
58 | %build |
---|
59 | %configure --disable-csharp |
---|
60 | |
---|
61 | %ifarch x86_64 |
---|
62 | perl -pi -e 's/^(TARGETS =.+) test/$1/' cs/Makefile |
---|
63 | %endif |
---|
64 | |
---|
65 | %__make %{_smp_mflags} |
---|
66 | |
---|
67 | %install |
---|
68 | rm -rf $RPM_BUILD_ROOT |
---|
69 | cd ruby |
---|
70 | %ruby install.rb config --rb-dir=${RPM_BUILD_ROOT}%{ruby_vendorlibdir} --so-dir=${RPM_BUILD_ROOT}%{ruby_vendorarchdir} |
---|
71 | cd .. |
---|
72 | make DESTDIR=${RPM_BUILD_ROOT} install |
---|
73 | |
---|
74 | find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; |
---|
75 | find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; |
---|
76 | find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; |
---|
77 | |
---|
78 | %clean |
---|
79 | rm -rf $RPM_BUILD_ROOT |
---|
80 | |
---|
81 | %files |
---|
82 | %defattr(-,root,root) |
---|
83 | %doc CS_LICENSE INSTALL LICENSE README README.python |
---|
84 | %{_bindir}/* |
---|
85 | %{_includedir}/ClearSilver/ |
---|
86 | %{perl_sitearch}/*.pm |
---|
87 | %{perl_sitearch}/auto/ClearSilver/ |
---|
88 | %{ruby_vendorarchdir}/*.so |
---|
89 | %{ruby_vendorlibdir}/*.rb |
---|
90 | %{python_sitearch}/*.so |
---|
91 | %{_libdir}/*.a |
---|
92 | %{_mandir}/man*/*.gz |
---|
93 | |
---|
94 | %changelog |
---|
95 | * Sat Sep 12 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.10.5-10 |
---|
96 | - rebuild with ruby-2.2.3 |
---|
97 | - add Patch4 (clearsilver-ruby-2.2.patch) from fedora |
---|
98 | |
---|
99 | * Wed Dec 17 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.10.5-9 |
---|
100 | - rebuilt with perl 5.16.3 and ruby 2.1.5 |
---|
101 | |
---|
102 | * Sun Dec 08 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.10.5-8 |
---|
103 | - rebuilt with ruby-2.0.0.353. |
---|
104 | |
---|
105 | * Thu Oct 25 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.10.5-7 |
---|
106 | - rebuild with ruby-1.9.3 |
---|
107 | - add patch3 to build with ruby-1.9 |
---|
108 | - add patch2 for CVE-2011-4357 |
---|
109 | |
---|
110 | * Sat Feb 25 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.10.5-6 |
---|
111 | - rebuilt with python-2.7. |
---|
112 | |
---|
113 | * Sun May 15 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.10.5-5 |
---|
114 | - rebuilt with perl-5.12.3 and python-2.6. |
---|
115 | |
---|
116 | * Mon Jun 22 2009 Shu KONNO <owa@bg.wakwak.com> 0.10.5-4 |
---|
117 | - applied new versioning policy, spec in utf-8 |
---|
118 | |
---|
119 | * Mon Jul 21 2008 Shu KONNO <owa@bg.wakwak.com> 0.10.5-3 |
---|
120 | - rebuilt with python-2.5.2 |
---|
121 | - added clearsilver-0.10.5-conf.patch |
---|
122 | |
---|
123 | * Tue Apr 29 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 0.10.5-2 |
---|
124 | - rebuilt with perl-5.10.0. |
---|
125 | |
---|
126 | * Mon Apr 28 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 0.10.5-1 |
---|
127 | - x86_64: make to skip testing. |
---|
128 | |
---|
129 | * Fri Nov 09 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.10.5-0vl4 |
---|
130 | - add --disable-csharp for configure script |
---|
131 | |
---|
132 | * Tue Aug 28 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 0.10.5-0vl2 |
---|
133 | - initial build for Vine Linux |
---|