Author: glen Date: Tue Nov 24 18:27:23 2009 GMT Module: packages Tag: HEAD ---- Log message: - new using pldcpan
---- Files affected: packages/perl-CSS: perl-CSS.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: packages/perl-CSS/perl-CSS.spec diff -u /dev/null packages/perl-CSS/perl-CSS.spec:1.1 --- /dev/null Tue Nov 24 19:27:23 2009 +++ packages/perl-CSS/perl-CSS.spec Tue Nov 24 19:27:18 2009 @@ -0,0 +1,73 @@ +# $Revision$, $Date$ +# +# Conditional build: +%bcond_without tests # do not perform "make test" +# +%include /usr/lib/rpm/macros.perl +%define pdir CSS +Summary: CSS - Object oriented access to Cascading Style Sheets (CSS) +Name: perl-CSS +Version: 1.08 +Release: 1 +# same as Perl +License: GPL v1+ or Artistic +Group: Development/Languages/Perl +Source0: http://www.cpan.org/modules/by-module/CSS/%{pdir}-%{version}.tar.gz +# Source0-md5: a7b0f7256254fd55a15f8ce81eda7eaf +URL: http://search.cpan.org/dist/CSS/ +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +%if %{with tests} +BuildRequires: perl-Parse-RecDescent >= 1 +%endif +Requires: perl-dirs >= 1.0-20 +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%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 %{pdir}-%{version} + +%build +%{__perl} Makefile.PL \ + INSTALLDIRS=vendor +%{__make} + +%{?with_tests:%{__make} test} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} pure_install \ + DESTDIR=$RPM_BUILD_ROOT + +install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} +cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc Changes README +%{perl_vendorlib}/*.pm +%{perl_vendorlib}/CSS/*.pm +%{perl_vendorlib}/CSS/Adaptor +%{perl_vendorlib}/CSS/Parse +%{_mandir}/man3/* +%{_examplesdir}/%{name}-%{version} + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[email protected]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2009/11/24 18:27:18 glen +- new using pldcpan ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
