%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-CSS-Tiny Version: 1.20 Release: 1mamba Summary: CSS::Tiny - Read/Write .css files with as little code as possible Group: System/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Automatic Build System URL: https://www.cpan.org Source: https://cpan.metacpan.org/modules/by-module/CSS/CSS-Tiny-%{version}.tar.gz License: GPL, Artistic ## AUTOBUILDREQ-BEGIN BuildRequires: perl-Clone BuildRequires: perl-devel ## AUTOBUILDREQ-END BuildRequires: perl(Clone) BuildRequires: perl(Test::Pod) Requires: perl(Clone) BuildRequires: perl-devel Requires: perl >= %perl_major_ver %description CSS::Tiny is a perl class to read and write .css stylesheets with as little code as possible, reducing load time and memory overhead. CSS.pm requires about 2.6 meg or ram to load, which is a large amount of overhead if you only want to do trivial things. Memory usage is normally scoffed at in Perl, but in my opinion should be at least kept in mind. This module is primarily for reading and writing simple files, and anything we write shouldn't need to have documentation/comments. If you need something with more power, move up to CSS.pm. With the increasing complexity of CSS, this is becoming more common, but many situations can still live with simple CSS files. %prep %setup -q -n CSS-Tiny-%{version} %build perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor %make %make test %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall_perl find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';' find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' chmod -R u+w %{buildroot}/* %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{perl_vendorlib}/CSS/ %{_mandir}/man3/*.3pm* #%doc Changes LICENSE README %changelog * Fri Feb 26 2021 Automatic Build System 1.20-1mamba - automatic version update by autodist * Sun May 01 2011 Automatic Build System 1.19-1mamba - automatic update by autodist * Thu Feb 17 2011 gil 1.15-1mamba - package created by autospec