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.changes b/perl-Module-Build.changes index 13d54db..f757c07 100644 --- a/perl-Module-Build.changes +++ b/perl-Module-Build.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Apr 16 13:30:39 UTC 2015 - coolo@suse.com + +- expanding the version to 6 digits after . - to avoid version mismatches + ------------------------------------------------------------------- Tue Feb 3 16:07:00 UTC 2015 - coolo@suse.com diff --git a/perl-Module-Build.spec b/perl-Module-Build.spec index ca86bd4..c5d0c33 100644 --- a/perl-Module-Build.spec +++ b/perl-Module-Build.spec @@ -17,14 +17,17 @@ Name: perl-Module-Build -Version: 0.4211 +Version: 0.421100 Release: 0 +%define cpan_version 0.4211 +Provides: perl(Module::Build) = 0.421100 %define cpan_name Module-Build 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}-%{cpan_version}.tar.gz +Source1: cpanspec.yml Patch0: make-builds-reproducible.patch BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -96,10 +99,9 @@ In this case the actions run are 'build' (the default action), 'test', and You can run the 'help' action for a complete list of actions. %prep -%setup -q -n %{cpan_name}-%{version} -# MANUAL -%patch0 -p1 +%setup -q -n %{cpan_name}-%{cpan_version} find . -type f -print0 | xargs -0 chmod 644 +%patch0 -p1 %build %{__perl} Build.PL installdirs=vendor