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

Revision 8030, 3.4 KB checked in by tomop, 10 years ago (diff)

clearsilver-0.10.5-8

Line 
1%define name clearsilver
2%define version 0.10.5
3%define release 8%{_dist_release}
4
5Summary: A fast, powerful, and language-neutral HTML template system.
6Summary(ja): 高速、パワフルで言語中立なHTMLテンプレートシステム
7Name: %{name}
8Version: %{version}
9Release: %{release}
10Source0: http://clearsilver.net/downloads/%{name}-%{version}.tar.gz
11Patch0: clearsilver-0.10.5-conf.patch
12Patch1: clearsilver-0.10.5-regression.patch
13Patch2: clearsilver-0.10.5-CVE-2011-4357.patch
14Patch3: clearsilver-ruby-1.9.patch
15License: Neotonic ClearSilver Software License
16Group: Applications/Documentation
17URL: http://clearsilver.net/
18
19BuildRequires: perl
20BuildRequires: ruby, ruby-devel >= 1.9.3
21BuildRequires: python-devel, zlib-devel
22Provides: ruby(clearsilver)
23BuildRoot: %{_tmppath}/%{name}-%{version}-root
24
25Vendor: Project Vine
26Distribution: Vine Linux
27
28%description
29ClearSilver is a fast, powerful, and language-neutral template system.
30It is designed to make it easy to create template driven static or
31dynamic websites.
32
33%description -l ja
34Clearsilver は高速、強力で言語中立なテンプレートシステムです。
35テンプレート駆動の静的あるいは動的な Web サイトの構築を
36容易にすることを目指して設計されています。
37
38%prep
39%setup -q
40%patch0 -p1 -b .conf
41%patch1 -p1
42%patch2 -p1
43%patch3 -p1
44touch configure
45perl -pi -e 's/python_versions="2\.5/python_versions="2.7 2.6 2.5/' configure
46sed -i 's|/neo/opt/bin/python|%{__python}|' python/examples/*/*.py
47sed -i 's|PYTHON_SITE = @PYTHON_SITE@|PYTHON_SITE = %{python_sitearch}|' rules.mk.in
48find python/examples -type f | xargs chmod -x
49
50
51%build
52%configure --disable-csharp
53
54%ifarch x86_64
55perl -pi -e 's/^(TARGETS =.+) test/$1/' cs/Makefile
56%endif
57
58%__make %{_smp_mflags}
59
60%install
61rm -rf $RPM_BUILD_ROOT
62cd ruby
63%ruby install.rb config --rb-dir=${RPM_BUILD_ROOT}%{ruby_vendorlibdir} --so-dir=${RPM_BUILD_ROOT}%{ruby_vendorarchdir}
64cd ..
65make DESTDIR=${RPM_BUILD_ROOT} install
66
67%clean
68rm -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
Note: See TracBrowser for help on using the repository browser.