clearsilver-vl.spec 4.0 KB

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