8
0
Stephan Kulow
2015-04-30 06:14:16 +00:00
committed by Git OBS Bridge
parent 0bb685fbc5
commit c41849c90c
2 changed files with 31 additions and 6 deletions

23
cpanspec.yml Normal file
View File

@@ -0,0 +1,23 @@
---
#description_paragraphs: 3
#no_testing: broken upstream
#sources:
# - source1
# - source2
#patches:
# foo.patch: -p1
# bar.patch:
#preamble: |-
# BuildRequires: gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module

View File

@@ -21,17 +21,19 @@ Version: 0.002
Release: 0 Release: 0
%define cpan_name Module-Runtime-Conflicts %define cpan_name Module-Runtime-Conflicts
Summary: Provide information on conflicts for Module::Runtime Summary: Provide information on conflicts for Module::Runtime
License: This is free software and you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Module-Runtime-Conflicts/ Url: http://search.cpan.org/dist/Module-Runtime-Conflicts/
Source: http://www.cpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{version}.tar.gz Source0: http://www.cpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(Dist::CheckConflicts) BuildRequires: perl(Dist::CheckConflicts)
BuildRequires: perl(Module::Build) BuildRequires: perl(Module::Build::Tiny) >= 0.039
BuildRequires: perl(Module::Runtime) BuildRequires: perl(Module::Runtime)
BuildRequires: perl(Test::More) >= 0.88
Requires: perl(Dist::CheckConflicts) Requires: perl(Dist::CheckConflicts)
Requires: perl(Module::Runtime) Requires: perl(Module::Runtime)
%{perl_requires} %{perl_requires}
@@ -45,14 +47,14 @@ It is called from the Moose::Conflicts manpage and 'moose-outdated'.
%setup -q -n %{cpan_name}-%{version} %setup -q -n %{cpan_name}-%{version}
%build %build
%{__perl} Build.PL installdirs=vendor %{__perl} Build.PL --installdirs=vendor
./Build build flags=%{?_smp_mflags} ./Build build --flags=%{?_smp_mflags}
%check %check
./Build test ./Build test
%install %install
./Build install destdir=%{buildroot} create_packlist=0 ./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist %perl_gen_filelist
%files -f %{name}.files %files -f %{name}.files