73 lines
2.3 KiB
RPMSpec
73 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package perl-RPM-Toolbox-Spec
|
|
#
|
|
# 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 RPM-Toolbox-Spec
|
|
Name: perl-RPM-Toolbox-Spec
|
|
Version: 0.50.0
|
|
Release: 0
|
|
# 0.05 -> normalize -> 0.50.0
|
|
%define cpan_version 0.05
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: Parse RPM specs with macro expansion
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: RPM-Toolbox-Spec-0.05.tar.gz
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
Provides: perl(RPM::Toolbox::Spec) = %{version}
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
_RPM_ is a package management system for UNIX-like operating systems; spec
|
|
files are used by RPM to define and maintain meta information and build
|
|
commands for a set of related packages.
|
|
|
|
This module extracts various bits of information from RPM spec files. It
|
|
aims at arriving at the same conclusions as *rpm* and *rpmbuild* commands
|
|
would on your system by expanding macros, evaluating conditionals, etc. It
|
|
does so by executing *rpm*/*rpmbuild* commands and analyzing their output.
|
|
|
|
This process is quite slow -- in the order of seconds for complex spec
|
|
files; caching may be used to store/load the results of processing,
|
|
providing significant performance improvements when processing the same
|
|
file multiple times.
|
|
|
|
This module requires rpm/rpmbuild >= 4.3.3 with lua support compiled-in.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
%make_build
|
|
|
|
%check
|
|
make test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc Changes README TODO
|
|
|
|
%changelog
|