clearsilver-vl.spec 3.2 KB

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