1 | %define name clearsilver |
---|
2 | %define version 0.10.5 |
---|
3 | %define release 6%{_dist_release} |
---|
4 | %define python_sitelib %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(1)') |
---|
5 | |
---|
6 | Summary: A fast, powerful, and language-neutral HTML template system. |
---|
7 | Summary(ja): 高速、パワフルで言語中立なHTMLテンプレートシステム |
---|
8 | Name: %{name} |
---|
9 | Version: %{version} |
---|
10 | Release: %{release} |
---|
11 | Source0: http://clearsilver.net/downloads/%{name}-%{version}.tar.gz |
---|
12 | Patch0: clearsilver-0.10.5-conf.patch |
---|
13 | License: Neotonic ClearSilver Software License |
---|
14 | Group: Applications/Documentation |
---|
15 | URL: http://clearsilver.net/ |
---|
16 | |
---|
17 | BuildRequires: perl, ruby, ruby-devel, python-devel, zlib-devel |
---|
18 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
19 | |
---|
20 | Vendor: Project Vine |
---|
21 | Distribution: Vine Linux |
---|
22 | |
---|
23 | %description |
---|
24 | ClearSilver is a fast, powerful, and language-neutral template system. |
---|
25 | It is designed to make it easy to create template driven static or |
---|
26 | dynamic websites. |
---|
27 | |
---|
28 | %description -l ja |
---|
29 | Clearsilver は高速、強力で言語中立なテンプレートシステムです。 |
---|
30 | テンプレート駆動の静的あるいは動的な Web サイトの構築を |
---|
31 | 容易にすることを目指して設計されています。 |
---|
32 | |
---|
33 | %prep |
---|
34 | %setup -q |
---|
35 | %patch0 -p1 -b .conf |
---|
36 | |
---|
37 | perl -pi -e 's/python_versions="2\.5/python_versions="2.7 2.6 2.5/' configure |
---|
38 | |
---|
39 | %build |
---|
40 | %configure --disable-csharp |
---|
41 | |
---|
42 | %ifarch x86_64 |
---|
43 | perl -pi -e 's/^(TARGETS =.+) test/$1/' cs/Makefile |
---|
44 | %endif |
---|
45 | |
---|
46 | %__make %{_smp_mflags} |
---|
47 | |
---|
48 | %install |
---|
49 | rm -rf $RPM_BUILD_ROOT |
---|
50 | cd ruby |
---|
51 | %ruby install.rb config --rb-dir=${RPM_BUILD_ROOT}%{rlibdir} --so-dir=${RPM_BUILD_ROOT}%{rarchdir} |
---|
52 | cd .. |
---|
53 | make DESTDIR=${RPM_BUILD_ROOT} install |
---|
54 | |
---|
55 | %clean |
---|
56 | rm -rf $RPM_BUILD_ROOT |
---|
57 | |
---|
58 | %files |
---|
59 | %defattr(-,root,root) |
---|
60 | %doc CS_LICENSE INSTALL LICENSE README README.python |
---|
61 | %{_bindir}/* |
---|
62 | %{_includedir}/ClearSilver/ |
---|
63 | %{perl_sitearch}/*.pm |
---|
64 | %{perl_sitearch}/auto/ClearSilver/ |
---|
65 | %{rarchdir}/*.so |
---|
66 | %{rlibdir}/*.rb |
---|
67 | %{python_sitelib}/*.so |
---|
68 | %{_libdir}/*.a |
---|
69 | %{_mandir}/man*/*.gz |
---|
70 | |
---|
71 | %changelog |
---|
72 | * Sat Feb 25 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.10.5-6 |
---|
73 | - rebuilt with python-2.7. |
---|
74 | |
---|
75 | * Sun May 15 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.10.5-5 |
---|
76 | - rebuilt with perl-5.12.3 and python-2.6. |
---|
77 | |
---|
78 | * Mon Jun 22 2009 Shu KONNO <owa@bg.wakwak.com> 0.10.5-4 |
---|
79 | - applied new versioning policy, spec in utf-8 |
---|
80 | |
---|
81 | * Mon Jul 21 2008 Shu KONNO <owa@bg.wakwak.com> 0.10.5-3 |
---|
82 | - rebuilt with python-2.5.2 |
---|
83 | - added clearsilver-0.10.5-conf.patch |
---|
84 | |
---|
85 | * Tue Apr 29 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 0.10.5-2 |
---|
86 | - rebuilt with perl-5.10.0. |
---|
87 | |
---|
88 | * Mon Apr 28 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 0.10.5-1 |
---|
89 | - x86_64: make to skip testing. |
---|
90 | |
---|
91 | * Fri Nov 09 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.10.5-0vl4 |
---|
92 | - add --disable-csharp for configure script |
---|
93 | |
---|
94 | * Tue Aug 28 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 0.10.5-0vl2 |
---|
95 | - initial build for Vine Linux |
---|