2010-02-11 13:15:39 +00:00
|
|
|
#
|
2011-02-20 01:02:20 +00:00
|
|
|
# spec file for package cpanspec
|
2010-02-11 13:15:39 +00:00
|
|
|
#
|
2024-03-06 15:29:01 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2010-02-11 13:15:39 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-03-12 11:53:03 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-02-11 13:15:39 +00:00
|
|
|
#
|
|
|
|
|
2011-12-07 09:08:35 +00:00
|
|
|
|
2019-03-12 11:54:33 +00:00
|
|
|
%define cpan_name cpanspec
|
2010-02-11 13:15:39 +00:00
|
|
|
Name: cpanspec
|
2023-07-09 19:29:45 +00:00
|
|
|
Version: 1.84.00.1688930749.8cd1dcd
|
2011-12-02 13:14:13 +00:00
|
|
|
Release: 0
|
2010-10-20 08:47:33 +00:00
|
|
|
Summary: Generate a SUSE spec file for a CPAN module
|
2019-03-12 11:53:03 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2010-02-11 13:15:39 +00:00
|
|
|
Group: Development/Languages/Perl
|
2019-03-12 11:54:33 +00:00
|
|
|
URL: https://github.com/openSUSE/cpanspec
|
2019-04-02 13:26:00 +00:00
|
|
|
Source0: cpanspec-%{version}.tar.xz
|
2025-08-12 18:11:31 +02:00
|
|
|
Source100: README.md
|
2011-05-31 11:07:26 +00:00
|
|
|
BuildRequires: perl
|
2013-08-01 05:50:14 +00:00
|
|
|
BuildRequires: perl-macros
|
2022-03-13 13:42:15 +00:00
|
|
|
BuildRequires: perl(Algorithm::Diff)
|
2011-05-31 11:07:26 +00:00
|
|
|
BuildRequires: perl(Archive::Tar)
|
2010-02-11 13:15:39 +00:00
|
|
|
BuildRequires: perl(Archive::Zip)
|
2011-05-31 11:07:26 +00:00
|
|
|
BuildRequires: perl(IO::Uncompress::Bunzip2)
|
2010-02-11 13:15:39 +00:00
|
|
|
BuildRequires: perl(LWP::UserAgent)
|
|
|
|
BuildRequires: perl(Parse::CPAN::Packages)
|
2011-12-02 13:14:13 +00:00
|
|
|
BuildRequires: perl(Perl::PrereqScanner)
|
2022-03-13 13:42:15 +00:00
|
|
|
BuildRequires: perl(Pod::POM)
|
2011-05-31 11:07:26 +00:00
|
|
|
BuildRequires: perl(Pod::Simple::TextContent)
|
2010-02-11 13:15:39 +00:00
|
|
|
BuildRequires: perl(Text::Autoformat)
|
|
|
|
BuildRequires: perl(YAML)
|
2022-03-13 13:42:15 +00:00
|
|
|
BuildRequires: perl(YAML::XS)
|
2016-01-08 08:05:28 +00:00
|
|
|
Requires: perl(Algorithm::Diff)
|
2011-05-31 11:07:26 +00:00
|
|
|
Requires: perl(Archive::Tar)
|
2010-02-11 13:15:39 +00:00
|
|
|
Requires: perl(Archive::Zip)
|
2011-12-02 13:13:11 +00:00
|
|
|
Requires: perl(Class::Accessor::Chained)
|
2020-11-04 17:21:36 +00:00
|
|
|
Requires: perl(File::ShareDir::Install)
|
2024-03-06 15:29:01 +00:00
|
|
|
Requires: perl(LWP::Protocol::https)
|
2010-02-11 13:15:39 +00:00
|
|
|
Requires: perl(LWP::UserAgent)
|
2020-11-04 17:22:09 +00:00
|
|
|
Requires: perl(Module::Build::Tiny)
|
2010-02-11 13:15:39 +00:00
|
|
|
Requires: perl(Parse::CPAN::Packages)
|
2013-08-01 05:50:14 +00:00
|
|
|
Requires: perl(Perl::PrereqScanner)
|
2011-12-02 13:13:11 +00:00
|
|
|
Requires: perl(Pod::POM)
|
2011-05-31 11:07:26 +00:00
|
|
|
Requires: perl(Pod::Simple::TextContent)
|
2010-02-11 13:15:39 +00:00
|
|
|
Requires: perl(Text::Autoformat)
|
2015-08-29 18:47:56 +00:00
|
|
|
Requires: perl(Text::Capitalize)
|
2010-02-11 13:15:39 +00:00
|
|
|
Requires: perl(YAML)
|
2022-03-13 13:42:15 +00:00
|
|
|
Requires: perl(YAML::XS)
|
2024-03-06 15:29:01 +00:00
|
|
|
Recommends: obs-service-format_spec_file
|
|
|
|
Recommends: osc
|
2019-03-12 11:54:33 +00:00
|
|
|
Recommends: perl(IO::Uncompress::Bunzip2)
|
|
|
|
BuildArch: noarch
|
2011-05-31 11:07:26 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
2010-02-11 13:15:39 +00:00
|
|
|
%description
|
2011-05-31 11:07:26 +00:00
|
|
|
*cpanspec* will generate a spec file to build a rpm from a CPAN-style Perl
|
2010-02-11 13:15:39 +00:00
|
|
|
module distribution.
|
|
|
|
|
|
|
|
%prep
|
2011-05-31 11:07:26 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
find . -type f -print0 | xargs -0 chmod 644
|
2010-02-11 13:15:39 +00:00
|
|
|
|
|
|
|
%build
|
2019-03-12 11:54:33 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
2024-03-06 15:29:01 +00:00
|
|
|
%make_build
|
2010-02-11 13:15:39 +00:00
|
|
|
|
2010-03-08 12:28:21 +00:00
|
|
|
%check
|
2024-03-06 15:29:01 +00:00
|
|
|
%make_build test
|
2022-03-13 13:42:15 +00:00
|
|
|
perl ./cpanspec -h
|
2010-03-08 12:28:21 +00:00
|
|
|
|
2010-02-11 13:15:39 +00:00
|
|
|
%install
|
2011-05-31 11:07:26 +00:00
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
2010-02-11 13:15:39 +00:00
|
|
|
|
2011-05-31 11:07:26 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
2019-03-12 11:54:33 +00:00
|
|
|
%license COPYING
|
2020-11-27 08:43:28 +00:00
|
|
|
%doc Artistic BUGS Changes TODO cpanspec.yml
|
2010-02-11 13:15:39 +00:00
|
|
|
|
|
|
|
%changelog
|