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