Name: clearsilver Version: 0.9.8 Release: 0.fdr.1 Summary: ClearSilver HTML template system. %define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib) %define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch) Group: Development/Libraries License: Apache License style URL: http://www.clearsilver.net/ Source: http://www.clearsilver.net/downloads/%{name}-%{version}.tar.gz Patch: %{name}.configure.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: zlib-devel BuildRequires: python BuildRequires: python-devel BuildRequires: perl # make runs autogen.sh for some reason BuildRequires: autoconf BuildRequires: automake %description ClearSilver is a fast, powerful, and language-neutral HTML template system. In both static content sites and dynamic HTML applications, it provides a separation between presentation code and application logic which makes working with your project easier. %package devel Summary: ClearSilver development package. Group: Development/Libraries %description devel This package provides needed files to develop extension to ClearSilver. %package -n python-clearsilver Summary: ClearSilver Python Module. Group: Development/Libraries Requires: clearsilver = %{version} %description -n python-clearsilver This package provides a python interface to the clearsilver CGI kit and templating system. %package -n perl-ClearSilver Summary: ClearSilver Perl Module. Group: Development/Libraries Requires: clearsilver = %{version} %description -n perl-ClearSilver The clearsilver-perl package provides a perl interface to the clearsilver templating system. %prep %setup -q %patch -p1 perl -pi.orig -e 's|/usr/local|%{_prefix}|' scripts/document.py %build %configure \ --enable-apache \ --disable-java \ --enable-python \ --enable-perl \ --disable-csharp \ --disable-ruby make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install \ DESTDIR="$RPM_BUILD_ROOT" \ INSTALLDIRS="vendor" make install -C python \ DESTDIR="$RPM_BUILD_ROOT" make install -C perl \ DESTDIR="$RPM_BUILD_ROOT" \ INSTALLDIRS="vendor" ### Clean up buildroot (arch) rm -rf \ $RPM_BUILD_ROOT%{perl_vendorarch}/auto/*{,/*{,/*}}/.packlist rm -rf \ $RPM_BUILD_ROOT%{_libdir}/*/*/*/perllocal.pod %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root, 0755) %doc CS_LICENSE INSTALL LICENSE README scripts/cs_lint.py contrib/cs-mode.el %doc %{_mandir}/man3/*.3.* %{_bindir}/* %files devel %defattr(-, root, root, 0755) %{_includedir}/ClearSilver %{_libdir}/*.a %files -n python-clearsilver %defattr(-, root, root, 0755) %doc README.python %{_libdir}/python*/site-packages/neo_cgi.so %files -n perl-ClearSilver %defattr(-, root, root, 0755) %doc %{_mandir}/man3/*.3pm* %{perl_vendorarch}/ClearSilver.pm %{perl_vendorarch}/auto/ClearSilver/ClearSilver.so %{perl_vendorarch}/auto/ClearSilver/ClearSilver.bs %changelog * Thu Sep 02 2004 Thomas Vander Stichele - 0.9.8-0.fdr.1 - Initial package, copied from Dag's repository