clearsilver-vl.spec 2.8 KB

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