Name: perl-RPM-VersionCompare Version: 0.1.1 Release: 51%{?dist} Summary: Compare RPM version strings License: GPL-3.0-or-later URL: https://ppisar.fedorapeople.org/RPM-VersionCompare/ Source0: %{url}/RPM-VersionCompare-v%{version}.tar.gz BuildRequires: findutils BuildRequires: gcc BuildRequires: make BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(AutoLoader) BuildRequires: perl(Config) BuildRequires: perl(Exporter) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(XSLoader) BuildRequires: perl(version) >= 0.77 BuildRequires: pkgconf-pkg-config BuildRequires: pkgconfig(rpm) # Tests only: BuildRequires: perl(Test::Simple) %{?perl_default_filter} %description This module provides functions to compare RPM version strings. No function is exported by default. If possible, calls are passed to native librpm library. Otherwise Python extension provided with RPM sources is re- -implemented. %package tests Summary: Tests for %{name} BuildArch: noarch Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: perl-Test-Harness %description tests Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". %prep %setup -q -n RPM-VersionCompare-v%{version} # Help generators to recognize Perl scripts for F in t/*.t; do perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F" chmod +x "$F" done %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS" %{make_build} %install %{make_install} find %{buildroot} -type f -name '*.bs' -size 0 -delete %{_fixperms} %{buildroot}/* # Install tests mkdir -p %{buildroot}%{_libexecdir}/%{name} cp -a t %{buildroot}%{_libexecdir}/%{name} cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' #!/bin/sh cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" EOF chmod +x %{buildroot}%{_libexecdir}/%{name}/test %check export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}') make test %files %license COPYING %doc Changes %dir %{perl_vendorarch}/auto/RPM %{perl_vendorarch}/auto/RPM/VersionCompare %dir %{perl_vendorarch}/RPM %{perl_vendorarch}/RPM/VersionCompare.pm %{_mandir}/man3/RPM::VersionCompare.* %files tests %{_libexecdir}/%{name} %changelog * Fri Jul 19 2024 Fedora Release Engineering - 0.1.1-51 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Mon Jun 10 2024 Jitka Plesnikova - 0.1.1-50 - Perl 5.40 rebuild * Thu Jan 25 2024 Fedora Release Engineering - 0.1.1-49 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 0.1.1-48 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 0.1.1-47 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jul 11 2023 Jitka Plesnikova - 0.1.1-46 - Perl 5.38 rebuild * Fri May 19 2023 Petr Pisar - 0.1.1-45 - Rebuild against rpm-4.19 * Fri May 19 2023 Petr Pisar - 0.1.1-44 - Modernize a spec file - Package the tests * Fri Jan 20 2023 Fedora Release Engineering - 0.1.1-43 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.1.1-42 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon May 30 2022 Jitka Plesnikova - 0.1.1-41 - Perl 5.36 rebuild * Fri Jan 21 2022 Fedora Release Engineering - 0.1.1-40 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 0.1.1-39 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 0.1.1-38 - Perl 5.34 rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.1.1-37 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 0.1.1-36 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jun 22 2020 Jitka Plesnikova - 0.1.1-35 - Perl 5.32 rebuild * Mon Feb 10 2020 Petr Pisar - 0.1.1-34 - Modernize a spec file * Thu Jan 30 2020 Fedora Release Engineering - 0.1.1-33 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 0.1.1-32 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Jun 10 22:13:22 CET 2019 Igor Gnatenko - 0.1.1-31 - Rebuild for RPM 4.15 * Mon Jun 10 15:42:04 CET 2019 Igor Gnatenko - 0.1.1-30 - Rebuild for RPM 4.15 * Thu May 30 2019 Jitka Plesnikova - 0.1.1-29 - Perl 5.30 rebuild * Fri Feb 01 2019 Fedora Release Engineering - 0.1.1-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0.1.1-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Jun 27 2018 Jitka Plesnikova - 0.1.1-26 - Perl 5.28 rebuild * Wed Mar 07 2018 Petr Pisar - 0.1.1-25 - Modernize spec file * Fri Feb 09 2018 Fedora Release Engineering - 0.1.1-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Aug 11 2017 Igor Gnatenko - 0.1.1-23 - Rebuilt after RPM update (№ 3) * Thu Aug 10 2017 Igor Gnatenko - 0.1.1-22 - Rebuilt for RPM soname bump * Thu Aug 10 2017 Igor Gnatenko - 0.1.1-21 - Rebuilt for RPM soname bump * Thu Aug 03 2017 Fedora Release Engineering - 0.1.1-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.1.1-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sun Jun 04 2017 Jitka Plesnikova - 0.1.1-18 - Perl 5.26 rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.1.1-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun May 15 2016 Jitka Plesnikova - 0.1.1-16 - Perl 5.24 rebuild * Thu Feb 04 2016 Fedora Release Engineering - 0.1.1-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Mon Jul 27 2015 Petr Pisar - 0.1.1-14 - Rebuild against rpm-4.13 * Thu Jun 18 2015 Fedora Release Engineering - 0.1.1-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Jun 03 2015 Jitka Plesnikova - 0.1.1-12 - Perl 5.22 rebuild * Wed Aug 27 2014 Jitka Plesnikova - 0.1.1-11 - Perl 5.20 rebuild * Sun Aug 17 2014 Fedora Release Engineering - 0.1.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.1.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 0.1.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Jul 17 2013 Petr Pisar - 0.1.1-7 - Perl 5.18 rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0.1.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jul 20 2012 Fedora Release Engineering - 0.1.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jun 08 2012 Petr Pisar - 0.1.1-4 - Perl 5.16 rebuild * Mon Mar 26 2012 Petr Pisar - 0.1.1-3 - Rebuild against RPM 4.10 * Fri Jan 13 2012 Fedora Release Engineering - 0.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Thu Jul 28 2011 Petr Pisar - 0.1.1-1 - 0.1.1 bump - Fixes parsing epoch longer than one character (bug #725608) * Fri Jun 17 2011 Marcela Mašláňová - 0.1.0-2 - Perl mass rebuild * Fri May 27 2011 Petr Pisar 0.1.0-1 - Specfile autogenerated by cpanspec 1.78. - Remove BuildRoot and defattr