From 70c430b2a56e8cd1a42b335aa3da5018b9b756dda39947223a5edf10600b1b7f Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Mon, 20 Apr 2015 05:38:15 +0000 Subject: [PATCH] update OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DateTime-Format-MySQL?expand=0&rev=16 --- cpanspec.yml | 21 +++++++++++++++++++++ perl-DateTime-Format-MySQL.spec | 17 ++++++----------- 2 files changed, 27 insertions(+), 11 deletions(-) create mode 100644 cpanspec.yml diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..29bf039 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,21 @@ +--- +#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 +#ignore_requires: Bizarre::Module diff --git a/perl-DateTime-Format-MySQL.spec b/perl-DateTime-Format-MySQL.spec index 1ce510c..99e69fc 100644 --- a/perl-DateTime-Format-MySQL.spec +++ b/perl-DateTime-Format-MySQL.spec @@ -19,22 +19,20 @@ Name: perl-DateTime-Format-MySQL Version: 0.05 Release: 0 -%define cpan_name DateTime-Format-MySQL +%define cpan_name DateTime-Format-MySQL Summary: Parse and format MySQL dates and times -License: GPL-2.0+ or Artistic-1.0+ +License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/DateTime-Format-MySQL/ -Source: %{cpan_name}-%{version}.tar.gz +Source0: http://www.cpan.org/authors/id/X/XM/XMIKEW/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(DateTime) BuildRequires: perl(DateTime::Format::Builder) >= 0.6 -BuildRequires: perl(Module::Build) >= 0.42 -# looks like requiring perl(Module::Build) alone is not enough, the resolver -# still uses the old, included version from Perl package instead in that case -BuildRequires: perl-Module-Build >= 0.42 +BuildRequires: perl(Module::Build) >= 0.420000 Requires: perl(DateTime) Requires: perl(DateTime::Format::Builder) >= 0.6 %{perl_requires} @@ -59,11 +57,8 @@ produce a string representing it in the MySQL format. ./Build install destdir=%{buildroot} create_packlist=0 %perl_gen_filelist -%clean -%{__rm} -rf %{buildroot} - %files -f %{name}.files -%defattr(644,root,root,755) +%defattr(-,root,root,755) %doc Changes LICENSE README %changelog