Files
perl-CSS/perl-CSS.spec

71 lines
2.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-CSS (Version 1.08)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: perl-CSS
%define cpan_name CSS
Summary: Object oriented access to Cascading Style Sheets (CSS)
Version: 1.08
Release: 1
License: CHECK(GPL+ or Artistic)
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/CSS/
Source: http://www.cpan.org/authors/id/I/IA/IAMCAL/%{cpan_name}-%{version}.tar.bz2
Source2: build-grammar.pl
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Parse::RecDescent) >= 1
%{perl_requires}
Requires: perl(Parse::RecDescent) >= 1
%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.
Authors:
--------
sorry, no author found
%prep
%setup -q -n %{cpan_name}-%{version}
%build
# work around https://rt.cpan.org/Public/Bug/Display.html?id=53948
perl %{S:2} && mv CompiledGrammar.pm CSS/Parse
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(644,root,root,755)
%doc Changes README
%changelog