SHA256
8
0
forked from pool/perl-syntax
Stephan Kulow
2011-10-09 15:09:55 +00:00
committed by Git OBS Bridge
commit f6a5781e55
5 changed files with 107 additions and 0 deletions

74
perl-syntax.spec Normal file
View File

@@ -0,0 +1,74 @@
#
# spec file for package perl-syntax
#
# Copyright (c) 2011 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-syntax
Version: 0.003
Release: 1
License: GPL+ or Artistic
%define cpan_name syntax
Summary: Activate syntax extensions
Url: http://search.cpan.org/dist/syntax/
Group: Development/Libraries/Perl
Source: http://www.cpan.org/authors/id/P/PH/PHAYLON/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Data::OptList) >= 0.104
BuildRequires: perl(namespace::clean)
BuildRequires: perl(Test::More) >= 0.94
#BuildRequires: perl(syntax)
Requires: perl(Data::OptList) >= 0.104
Requires: perl(namespace::clean)
Requires: perl(Test::More) >= 0.94
%{perl_requires}
%description
This module activates community provided syntax extensions to Perl. You
pass it a feature name, and optionally a scalar with arguments, and the
dispatching system will load and install the extension in your package.
The import arguments are parsed with the Data::OptList manpage. There are
no standardised options. Please consult the documentation for the specific
syntax feature to find out about possible configuration options.
The passed in feature names are simply transformed: 'function' becomes the
Syntax::Feature::Function manpage and 'foo_bar' would become
'Syntax::Feature::FooBar'.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes LICENSE _project.vim README
%changelog