77 lines
2.0 KiB
RPMSpec
77 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package perl-RPMQ
|
|
#
|
|
# 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 RPMQ
|
|
Name: perl-RPMQ
|
|
Version: 1.20.0
|
|
Release: 0
|
|
# 1.02 -> normalize -> 1.20.0
|
|
%define cpan_version 1.02
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: Simple query-API for RPM-files
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: RPMQ-1.02.tar.bz2
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
Provides: perl(RPMQ) = %{version}
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
Common tag names are:
|
|
|
|
"NAME" => 1000,
|
|
"VERSION" => 1001,
|
|
"RELEASE" => 1002,
|
|
"SUMMARY" => 1004,
|
|
"DESCRIPTION" => 1005,
|
|
"BUILDTIME" => 1006,
|
|
"BUILDHOST" => 1007,
|
|
"SIZE" => 1009,
|
|
"COPYRIGHT" => 1014,
|
|
"URL" => 1020,
|
|
"ARCH" => 1022,
|
|
"SOURCERPM" => 1044,
|
|
"DISTURL" => 1123,
|
|
|
|
The additional tag 'FILENAMES' is also understood by rpmq_many() and
|
|
rpmq(). It returns a list of full filenames (like OLDFILENAMES did in rpm3)
|
|
constructed from DIRNAMES, DIRINDEXES and BASENAMES.
|
|
|
|
%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 Makefile.old README
|
|
|
|
%changelog
|