Compare commits

...

10 Commits

Author SHA256 Message Date
bbaf1c5d9b Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Package?expand=0&rev=15
2024-07-24 21:12:41 +00:00
e652ca0ad2 Accepting request 1156173 from home:tinita:branches:d:l:p
- Use %autosetup instead of deprecated %patchN

OBS-URL: https://build.opensuse.org/request/show/1156173
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Package?expand=0&rev=14
2024-03-08 10:06:52 +00:00
9863cf25d6 Accepting request 640390 from devel:languages:perl:autoupdate
- Fix build on newer systems, add
  Module-Package-0.30-Fix-building-on-Perl-without-.-in-INC.patch
- updated to 0.30
   see /usr/share/doc/packages/perl-Module-Package/Changes
  version: 0.30
  date:    
  changes:
  - Patch from tobyink++ to support user side plugins
  ---
  version: 0.29
  date:    
  changes:
  - Put a error message on a die statement.
  - Released from Liz++ and Wendy++'s garage.
  ---
  version: 0.28
  date:    
  changes:
  - skip author requires for modules that have a Module::Install plugin
  ---
  version: 0.27
  date:    
  changes:
  - Add Gloom Support
  ---
  version: 0.26
  date:    
  changes:
  - Support Test::Common updating
  ---

OBS-URL: https://build.opensuse.org/request/show/640390
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Package?expand=0&rev=13
2018-10-07 10:09:20 +00:00
Stephan Kulow
21c8698c05 update
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Package?expand=0&rev=12
2015-04-20 07:07:58 +00:00
Stephan Kulow
5c0e694bd4 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Package?expand=0&rev=11 2011-11-11 11:20:11 +00:00
Pascal Bleser
6b8842f769 0.25
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Package?expand=0&rev=10
2011-06-14 23:15:45 +00:00
Pascal Bleser
cc14542c86 0.23
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Package?expand=0&rev=9
2011-06-12 21:04:50 +00:00
Pascal Bleser
4d46bbc911 0.22
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Package?expand=0&rev=8
2011-06-09 00:03:04 +00:00
Pascal Bleser
c08bb5b755 0.21
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Package?expand=0&rev=7
2011-06-05 20:31:53 +00:00
Pascal Bleser
c4d3a0c9dd 0.20
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Package?expand=0&rev=6
2011-06-04 23:24:50 +00:00
6 changed files with 200 additions and 60 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8ed7d57c3f62daa6f713b8e6f89f0cb6959ff1e1d4a98a8de56f03f974e6fa3e
size 30564

View File

@@ -0,0 +1,25 @@
From fc4e65f8d43226739624e15fe3eefa0d05fd8f96 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Wed, 17 May 2017 16:48:56 +0200
Subject: [PATCH] Fix building on Perl without "." in @INC
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Petr Písař <ppisar@redhat.com>
---
Makefile.PL | 1 +
1 file changed, 1 insertion(+)
diff --git a/Makefile.PL b/Makefile.PL
index 93b5ed5..fffb0d1 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -1,3 +1,4 @@
+BEGIN { push @INC, '.'; }
use inc::Module::Package 'Ingy:modern 0.17';
# The default module 'lib/Module/Package.pm' has to be very strict
--
2.9.4

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7c3c89e779baa83afaf0dc9599c20f90b3e613ea3ece0328931257ab7cc24a99
size 41751

28
cpanspec.yml Normal file
View File

@@ -0,0 +1,28 @@
---
#description_paragraphs: 3
#description: |-
# override description from CPAN
#summary: override summary from CPAN
#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_build: |-
# rm unused.files
#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

@@ -1,3 +1,83 @@
-------------------------------------------------------------------
Thu Mar 7 23:48:11 UTC 2024 - Tina Müller <tina.mueller@suse.com>
- Use %autosetup instead of deprecated %patchN
-------------------------------------------------------------------
Sun Oct 7 10:07:22 UTC 2018 - Dirk Stoecker <opensuse@dstoecker.de>
- Fix build on newer systems, add
Module-Package-0.30-Fix-building-on-Perl-without-.-in-INC.patch
-------------------------------------------------------------------
Wed Feb 7 16:51:30 UTC 2018 - coolo@suse.com
- updated to 0.30
see /usr/share/doc/packages/perl-Module-Package/Changes
version: 0.30
date: Thu Oct 6 10:37:01 EDT 2011
changes:
- Patch from tobyink++ to support user side plugins
---
version: 0.29
date: Sun Sep 25 22:21:20 CEST 2011
changes:
- Put a error message on a die statement.
- Released from Liz++ and Wendy++'s garage.
---
version: 0.28
date: Sat Aug 20 18:20:15 CEST 2011
changes:
- skip author requires for modules that have a Module::Install plugin
---
version: 0.27
date: Fri Aug 19 20:57:02 EEST 2011
changes:
- Add Gloom Support
---
version: 0.26
date: Sun Jul 3 19:54:14 EDT 2011
changes:
- Support Test::Common updating
---
-------------------------------------------------------------------
Tue Jun 14 23:11:59 UTC 2011 - pascal.bleser@opensuse.org
- update to 0.25:
* only guess the module name on the author side
* allow for unicode package names
-------------------------------------------------------------------
Sun Jun 12 20:58:35 UTC 2011 - pascal.bleser@opensuse.org
- update to 0.23:
* allow requires_from after requires
* add modules to @known_author_only
-------------------------------------------------------------------
Thu Jun 09 00:00:11 UTC 2011 - pascal.bleser@opensuse.org
- update to 0.22:
* fix new bug on clean perl installs
* since we no longer load inc::Module::Install, we need to put 'inc' on @INC
-------------------------------------------------------------------
Sun Jun 05 20:30:04 UTC 2011 - pascal.bleser@opensuse.org
- update to 0.21:
* fix the elusive bootstrapping bug
* allow $PM and $POD to be preset
-------------------------------------------------------------------
Sat Jun 04 23:15:57 UTC 2011 - pascal.bleser@opensuse.org
- update to 0.20:
* add pkg/manifest.skip to MANIFEST.SKIP
* add a debugging dump for mystery M:I 1.00 situation
* support install_share
-------------------------------------------------------------------
Wed Jun 01 21:51:31 UTC 2011 - pascal.bleser@opensuse.org

View File

@@ -1,76 +1,83 @@
# vim: set sw=4 ts=4 et nu:
#
# spec file for package perl-Module-Package
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define cpan_name Module-Package
Name: perl-Module-Package
Version: 0.19
Version: 0.300.0
Release: 0
# 0.30 -> normalize -> 0.300.0
%define cpan_version 0.30
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Postmodern Perl Module Packaging
Source: http://search.cpan.org/CPAN/authors/id/I/IN/INGY/Module-Package-%{version}.tar.gz
URL: http://search.cpan.org/dist/Module-Package
Group: Development/Libraries/Perl
License: GNU General Public License version 2 or later or Artistic (GPLv2+ or Artistic)
BuildRoot: %{_tmppath}/build-%{name}-%{version}
%{perl_requires}
BuildRequires: perl-macros
BuildRequires: make
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
BuildRequires: perl(Module::Install::ManifestSkip) >= 0.17
BuildRequires: perl(Module::Install::AuthorRequires)
BuildRequires: perl(Module::Install) >= 1.01
BuildRequires: perl(Moo)
BuildRequires: perl(IO::All)
Requires: perl(Module::Install::ManifestSkip) >= 0.17
Requires: perl(Module::Install::AuthorRequires)
Requires: perl(Module::Install) >= 1.01
Requires: perl(Moo)
Requires: perl(IO::All)
%if 0%{?suse_version} >= 1120
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/I/IN/INGY/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
%endif
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
BuildRequires: perl(IO::All) >= 0.41
BuildRequires: perl(Module::Install) >= 1.01
BuildRequires: perl(Module::Install::AuthorRequires) >= 0.20.0
BuildRequires: perl(Module::Install::ManifestSkip) >= 0.190
BuildRequires: perl(Moo) >= 0.009008
Requires: perl(IO::All) >= 0.41
Requires: perl(Module::Install) >= 1.01
Requires: perl(Module::Install::AuthorRequires) >= 0.20.0
Requires: perl(Module::Install::ManifestSkip) >= 0.190
Requires: perl(Moo) >= 0.009008
Provides: perl(Module::Install::Package) = %{version}
Provides: perl(Module::Package) = %{version}
Provides: perl(Module::Package::Dist)
Provides: perl(Module::Package::PM)
Provides: perl(Module::Package::POD)
Provides: perl(Module::Package::Plugin) = %{version}
Provides: perl(Module::Package::Plugin::basic)
Provides: perl(inc::Module::Package) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
This is the inc::Module::Package bootstrapping module. It works something
like inc::Module::Install. This code should only be loaded in an author
environment.
This module is a dropin replacement for Module::Install. It does everything
Module::Install does, but just a bit better.
See Module::Package for more information.
Actually this module is simply a wrapper around Module::Install. It
attempts to drastically reduce what goes in a Makefile.PL, while at the
same time, fixing many of the problems that people have had with
Module::Install (and other module frameworks) over the years.
%prep
%setup -q -n "Module-Package-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL
%autosetup -n %{cpan_name}-%{cpan_version}
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?_smp_flags}
PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%check
%__make test
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%files -f %{name}.files
%doc Changes README
%dir %{perl_vendorlib}/Module
%{perl_vendorlib}/Module/Package.pm
%dir %{perl_vendorlib}/Module/Package
%doc %{perl_vendorlib}/Module/Package.pod
%{perl_vendorlib}/Module/Package/Plugin.pm
%doc %{perl_vendorlib}/Module/Package/Plugin.pod
%doc %{perl_vendorlib}/Module/Package/Tutorial.pod
%dir %{perl_vendorlib}/Module/Install
%{perl_vendorlib}/Module/Install/Package.pm
%doc %{perl_vendorlib}/Module/Install/Package.pod
%dir %{perl_vendorlib}/inc
%dir %{perl_vendorlib}/inc/Module
%{perl_vendorlib}/inc/Module/Package.pm
%doc %{perl_man3dir}/Module::Package.%{perl_man3ext}%{ext_man}
%doc %{perl_man3dir}/Module::Package::Plugin.%{perl_man3ext}%{ext_man}
%doc %{perl_man3dir}/Module::Package::Tutorial.%{perl_man3ext}%{ext_man}
%doc %{perl_man3dir}/Module::Install::Package.%{perl_man3ext}%{ext_man}
%doc %{perl_man3dir}/inc::Module::Package.%{perl_man3ext}%{ext_man}
%license LICENSE
%changelog