[521] | 1 | %define name clearsilver |
---|
| 2 | %define version 0.10.5 |
---|
[3949] | 3 | %define release 5%{_dist_release} |
---|
[521] | 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 | |
---|
[3949] | 17 | BuildRequires: perl, ruby, ruby-devel, python-devel, zlib-devel |
---|
[521] | 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 | |
---|
[3949] | 37 | perl -pi -e 's/python_versions="2\.5/python_versions="2.6 2.5/' configure |
---|
| 38 | |
---|
[521] | 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 |
---|
[3949] | 72 | * Sun May 15 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.10.5-5 |
---|
| 73 | - rebuilt with perl-5.12.3 and python-2.6. |
---|
| 74 | |
---|
[521] | 75 | * Mon Jun 22 2009 Shu KONNO <owa@bg.wakwak.com> 0.10.5-4 |
---|
| 76 | - applied new versioning policy, spec in utf-8 |
---|
| 77 | |
---|
| 78 | * Mon Jul 21 2008 Shu KONNO <owa@bg.wakwak.com> 0.10.5-3 |
---|
| 79 | - rebuilt with python-2.5.2 |
---|
| 80 | - added clearsilver-0.10.5-conf.patch |
---|
| 81 | |
---|
| 82 | * Tue Apr 29 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 0.10.5-2 |
---|
| 83 | - rebuilt with perl-5.10.0. |
---|
| 84 | |
---|
| 85 | * Mon Apr 28 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 0.10.5-1 |
---|
| 86 | - x86_64: make to skip testing. |
---|
| 87 | |
---|
| 88 | * Fri Nov 09 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.10.5-0vl4 |
---|
| 89 | - add --disable-csharp for configure script |
---|
| 90 | |
---|
| 91 | * Tue Aug 28 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 0.10.5-0vl2 |
---|
| 92 | - initial build for Vine Linux |
---|