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