source: projects/specs/trunk/c/clearsilver/clearsilver-vl.spec @ 9748

Revision 9748, 4.0 KB checked in by Takemikaduchi, 9 years ago (diff)

rebuild with ruby-2.2.3

Line 
1%define name clearsilver
2%define version 0.10.5
3%define release 10%{_dist_release}
4
5Summary: A fast, powerful, and language-neutral HTML template system.
6Summary(ja): 高速、パワフルで言語中立なHTMLテンプレートシステム
7Name: %{name}
8Version: %{version}
9Release: %{release}
10
11License: Neotonic ClearSilver Software License
12Group: Applications/Text
13URL: http://clearsilver.net/
14
15Source0: http://clearsilver.net/downloads/%{name}-%{version}.tar.gz
16Patch0: clearsilver-0.10.5-conf.patch
17Patch1: clearsilver-0.10.5-regression.patch
18Patch2: clearsilver-0.10.5-CVE-2011-4357.patch
19Patch3: clearsilver-ruby-1.9.patch
20Patch4: clearsilver-ruby-2.2.patch
21
22BuildRoot: %{_tmppath}/%{name}-%{version}-root
23BuildRequires: perl
24BuildRequires: python-devel
25BuildRequires: ruby
26BuildRequires: ruby-devel >= 1.9.3
27BuildRequires: zlib-devel
28Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
29Provides: ruby(clearsilver)
30
31Vendor: Project Vine
32Distribution: Vine Linux
33
34%description
35ClearSilver is a fast, powerful, and language-neutral template system.
36It is designed to make it easy to create template driven static or
37dynamic websites.
38
39%description -l ja
40Clearsilver は高速、強力で言語中立なテンプレートシステムです。
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
51touch configure
52perl -pi -e 's/python_versions="2\.5/python_versions="2.7 2.6 2.5/' configure
53sed -i 's|/neo/opt/bin/python|%{__python}|' python/examples/*/*.py
54sed -i 's|PYTHON_SITE = @PYTHON_SITE@|PYTHON_SITE = %{python_sitearch}|' rules.mk.in
55find python/examples -type f | xargs chmod -x
56
57
58%build
59%configure --disable-csharp
60
61%ifarch x86_64
62perl -pi -e 's/^(TARGETS =.+) test/$1/' cs/Makefile
63%endif
64
65%__make %{_smp_mflags}
66
67%install
68rm -rf $RPM_BUILD_ROOT
69cd ruby
70%ruby install.rb config --rb-dir=${RPM_BUILD_ROOT}%{ruby_vendorlibdir} --so-dir=${RPM_BUILD_ROOT}%{ruby_vendorarchdir}
71cd ..
72make DESTDIR=${RPM_BUILD_ROOT} install
73
74find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
75find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
76find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
77
78%clean
79rm -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
Note: See TracBrowser for help on using the repository browser.