forked from pool/perl-Config-GitLike
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Config-GitLike?expand=0&rev=3
62 lines
1.7 KiB
RPMSpec
62 lines
1.7 KiB
RPMSpec
# vim: set sw=4 ts=4 et nu:
|
|
# norootforbuild
|
|
|
|
Name: perl-Config-GitLike
|
|
Version: 1.04
|
|
Release: 0
|
|
Summary: Git-compatible config file parsing
|
|
Source: http://search.cpan.org/CPAN/authors/id/A/AL/ALEXMV/Config-GitLike-%{version}.tar.gz
|
|
URL: http://search.cpan.org/dist/Config-GitLike
|
|
Group: Development/Libraries/Perl
|
|
License: Perl License
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
|
%{perl_requires}
|
|
BuildRequires: perl
|
|
BuildRequires: make
|
|
BuildRequires: perl(Test::More)
|
|
BuildRequires: perl(Test::Exception)
|
|
BuildRequires: perl(File::Temp)
|
|
BuildRequires: perl(File::Spec)
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
BuildRequires: perl(Any::Moose)
|
|
Requires: perl(Any::Moose)
|
|
|
|
%description
|
|
This module handles interaction with configuration files of the style used
|
|
by the version control system Git. It can both parse and modify these
|
|
files, as well as create entirely new ones.
|
|
|
|
%prep
|
|
%setup -q -n "Config-GitLike-%{version}"
|
|
%__sed -i '/^auto_install/d' Makefile.PL
|
|
|
|
%build
|
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
|
%__make %{?jobs:-j%{jobs}}
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
|
|
%check
|
|
%__make test
|
|
|
|
%clean
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc Changes
|
|
%dir %{perl_vendorlib}/Config
|
|
%{perl_vendorlib}/Config/GitLike.pm
|
|
%{perl_vendorlib}/Config/GitLike
|
|
%dir %{perl_vendorarch}/auto/Config
|
|
%{perl_vendorarch}/auto/Config/GitLike
|
|
%doc %{perl_man3dir}/Config::GitLike.%{perl_man3ext}%{ext_man}
|
|
%doc %{perl_man3dir}/Config::GitLike::*.%{perl_man3ext}%{ext_man}
|
|
%if 0%{?suse_version} <= 1130
|
|
/var/adm/perl-modules/%{name}
|
|
%endif
|
|
|