%define module CSS %define name perl-%{module} %define version 1.07 %define release %mkrel 2 Name: %{name} Version: %{version} Release: %{release} Summary: Object oriented access to Cascading Style Sheets (CSS) License: GPL or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{module} Source: http://www.cpan.org/modules/by-module/RSS/%{module}-%{version}.tar.bz2 %if %{mdkversion} < 1010 BuildRequires: perl-devel %endif BuildRequires: perl(Parse::RecDescent) BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version} %description This module can be used, along with a CSS::Parse::* module, to parse CSS data and represent it as a tree of objects. Using a CSS::Adaptor::* module, the CSS data tree can then be transformed into other formats. %prep %setup -q -n %{module}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check %{__make} test %install rm -rf %{buildroot} %makeinstall_std %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc Changes README examples %{perl_vendorlib}/CSS.pm %{perl_vendorlib}/CSS %{_mandir}/*/* %changelog * Mon Aug 28 2006 Guillaume Rousse <guillomovitch@mandriva.org> 1.07-2mdv2007.0 - spec cleanup * Wed Jul 13 2005 Oden Eriksson <oeriksson@mandriva.com> 1.07-1mdk - initial Mandriva package