diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..50509f0 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,22 @@ +--- +#description_paragraphs: 3 +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +patches: + make-builds-reproducible.patch: -p1 +#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: |- + # avoid conflict with Perl's own supplied version + mv %{buildroot}/usr/bin/config_data %{buildroot}/usr/bin/config_data-%{version} + rename config_data config_data-%{version} %{buildroot}/%{_mandir}/man1/config_data.* +# sed on %{name}.files +#license: SUSE-NonFree +#skip_noarch: 1 +#custom_build: - +#./Build build flags=%{?_smp_mflags} --myflag diff --git a/perl-Module-Build.spec b/perl-Module-Build.spec index ca86bd4..cb29a73 100644 --- a/perl-Module-Build.spec +++ b/perl-Module-Build.spec @@ -24,7 +24,8 @@ Summary: Build and install Perl modules License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Module-Build/ -Source: http://www.cpan.org/authors/id/L/LE/LEONT/%{cpan_name}-%{version}.tar.gz +Source0: http://www.cpan.org/authors/id/L/LE/LEONT/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml Patch0: make-builds-reproducible.patch BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -97,9 +98,8 @@ You can run the 'help' action for a complete list of actions. %prep %setup -q -n %{cpan_name}-%{version} -# MANUAL -%patch0 -p1 find . -type f -print0 | xargs -0 chmod 644 +%patch0 -p1 %build %{__perl} Build.PL installdirs=vendor