clearsilver-vl.spec 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. %define name clearsilver
  2. %define version 0.10.5
  3. %define release 4%{_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-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. %build
  31. %configure --disable-csharp
  32. %ifarch x86_64
  33. perl -pi -e 's/^(TARGETS =.+) test/$1/' cs/Makefile
  34. %endif
  35. %__make %{_smp_mflags}
  36. %install
  37. rm -rf $RPM_BUILD_ROOT
  38. cd ruby
  39. %ruby install.rb config --rb-dir=${RPM_BUILD_ROOT}%{rlibdir} --so-dir=${RPM_BUILD_ROOT}%{rarchdir}
  40. cd ..
  41. make DESTDIR=${RPM_BUILD_ROOT} install
  42. %clean
  43. rm -rf $RPM_BUILD_ROOT
  44. %files
  45. %defattr(-,root,root)
  46. %doc CS_LICENSE INSTALL LICENSE README README.python
  47. %{_bindir}/*
  48. %{_includedir}/ClearSilver/
  49. %{perl_sitearch}/*.pm
  50. %{perl_sitearch}/auto/ClearSilver/
  51. %{rarchdir}/*.so
  52. %{rlibdir}/*.rb
  53. %{python_sitelib}/*.so
  54. %{_libdir}/*.a
  55. %{_mandir}/man*/*.gz
  56. %changelog
  57. * Mon Jun 22 2009 Shu KONNO <owa@bg.wakwak.com> 0.10.5-4
  58. - applied new versioning policy, spec in utf-8
  59. * Mon Jul 21 2008 Shu KONNO <owa@bg.wakwak.com> 0.10.5-3
  60. - rebuilt with python-2.5.2
  61. - added clearsilver-0.10.5-conf.patch
  62. * Tue Apr 29 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 0.10.5-2
  63. - rebuilt with perl-5.10.0.
  64. * Mon Apr 28 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 0.10.5-1
  65. - x86_64: make to skip testing.
  66. * Fri Nov 09 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.10.5-0vl4
  67. - add --disable-csharp for configure script
  68. * Tue Aug 28 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 0.10.5-0vl2
  69. - initial build for Vine Linux