clearsilver-vl.spec 3.3 KB

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