From bf65f42a0619f1205f13ab926a78d721399515b2905ed47146cdeaf78561dfaa Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Thu, 16 Apr 2015 13:00:54 +0000 Subject: [PATCH 1/2] update OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Build?expand=0&rev=35 --- cpanspec.yml | 22 ++++++++++++++++++++++ perl-Module-Build.spec | 6 +++--- 2 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 cpanspec.yml 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 From 3857d02576570a43737113ee179d89462f95c07da9dc02eeb127cf69e2a47193 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Thu, 16 Apr 2015 13:30:58 +0000 Subject: [PATCH 2/2] - expanding the version to 6 digits after . - to avoid version mismatches OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Build?expand=0&rev=36 --- perl-Module-Build.changes | 5 +++++ perl-Module-Build.spec | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) 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 cb29a73..c5d0c33 100644 --- a/perl-Module-Build.spec +++ b/perl-Module-Build.spec @@ -17,14 +17,16 @@ 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/ -Source0: 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 @@ -97,7 +99,7 @@ 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} +%setup -q -n %{cpan_name}-%{cpan_version} find . -type f -print0 | xargs -0 chmod 644 %patch0 -p1