# # spec file for package perl-Parse-RPM-Spec # # Copyright (c) 2023 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 Parse-RPM-Spec Name: perl-Parse-RPM-Spec Version: 1.1.2 Release: 0 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Perl extension to parse RPM spec files URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/D/DA/DAVECROSS/%{cpan_name}-v%{version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Module::Build) >= 0.420000 BuildRequires: perl(Moose) BuildRequires: perl(Test::Exception) Requires: perl(Moose) %{perl_requires} %description RPM is the package management system used on Linux distributions based on Red Hat Linux. These days that includes Fedora, Red Hat Enterprise Linux, Centos, SUSE, Mandriva and many more. RPMs are build from the source of a packages along with a spec file. The spec file controls how the RPM is built. This module creates Perl objects which model spec files. Currently it gives you simple access to various pieces of information from the spec file. %prep %autosetup -n %{cpan_name}-v%{version} find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644 %build perl Build.PL installdirs=vendor ./Build build flags=%{?_smp_mflags} %check ./Build test %install ./Build install destdir=%{buildroot} create_packlist=0 %perl_gen_filelist %files -f %{name}.files %doc Changes README %changelog