clearsilver-vl.spec 3.8 KB

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