## START: Set by rpmautospec ## (rpmautospec version 0.2.6) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 58; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec %global srcname pgsql_perl5 %global modname Pg Name: perl-%{srcname} Version: 1.9.0 Release: %autorelease Summary: %{modname} – Perl5 extension for PostgreSQL # https://docs.fedoraproject.org/en-US/legal/license-field/#_perl_packages License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/%{srcname} Source0: https://cpan.metacpan.org/modules/by-module/%{modname}/%{srcname}-%{version}.tar.gz BuildRequires: coreutils BuildRequires: findutils BuildRequires: gcc BuildRequires: make BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 # Tests: cannot run because we cannot run postgresql server as a normal user #BuildRequires: perl(AutoLoader) #BuildRequires: postgresql-server BuildRequires: libpq-devel Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %description The %{modname} module permits you to access all functions of the Libpq interface of PostgreSQL. Libpq is the programmer’s interface to PostgreSQL. For examples of how to use this module, look at the file test.pl. %prep %autosetup -n %{srcname}-%{version} # Fix shebangs and permissions on examples and tests sed -r -i 's|^#!/usr/local/bin/perl\b|#!%{_bindir}/perl|' eg/*.pl test.pl chmod -v a+x eg/*.pl test.pl %build export POSTGRES_INCLUDE='%{_includedir}' export POSTGRES_LIB='%{_libdir}' perl Makefile.PL \ INSTALLDIRS=vendor \ NO_PACKLIST=1 \ NO_PERLLOCAL=1 \ OPTIMIZE="${RPM_OPT_FLAGS}" %make_build %install # Based on %%make_install, but with pure_install as the target %{__make} pure_install DESTDIR=%{?buildroot} INSTALL="%{__install} -p" find %{buildroot} -type f -name '*.bs' -size 0 -delete %{_fixperms} %{buildroot}/* # Tests: cannot run because we cannot run postgresql server as a normal user # %%check # %%make_build test %files %doc Changes %doc README %doc eg/ %doc test.pl %{perl_vendorarch}/auto/%{modname} %{perl_vendorarch}/%{modname}.pm %{_mandir}/man3/%{modname}.3pm* %changelog * Thu Oct 20 2022 Benjamin A. Beasley 1.9.0-58 - Update License to SPDX * Fri Jul 22 2022 Fedora Release Engineering 1.9.0-57 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon May 30 2022 Jitka Plesnikova 1.9.0-56 - Perl 5.36 rebuild * Fri Jan 21 2022 Fedora Release Engineering 1.9.0-55 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 1.9.0-42 - Perl 5.34 rebuild * Sat Mar 20 2021 Benjamin A. Beasley - 1.9.0-41 - Minor style changes - Mostly imitate https://fedoraproject.org/wiki/Perl/Tips#Best_practices_for_the_latest_Fedora - Modernize rpm macros - Do not rm -rf the buildroot - Preserve timestamps when installing files - Install examples (eg/) and test.pl as documentation * Mon Feb 08 2021 Pavel Raiskup - 1.9.0-40 - rebuild for libpq ABI fix rhbz#1908268 * Wed Jan 27 2021 Fedora Release Engineering - 1.9.0-39 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.9.0-38 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jun 22 2020 Jitka Plesnikova - 1.9.0-37 - Perl 5.32 rebuild * Thu Jan 30 2020 Fedora Release Engineering - 1.9.0-36 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 1.9.0-35 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu May 30 2019 Jitka Plesnikova - 1.9.0-34 - Perl 5.30 rebuild * Sat Feb 02 2019 Fedora Release Engineering - 1.9.0-33 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 1.9.0-32 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Jun 27 2018 Jitka Plesnikova - 1.9.0-31 - Perl 5.28 rebuild * Fri Feb 09 2018 Fedora Release Engineering - 1.9.0-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 1.9.0-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.9.0-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sun Jun 04 2017 Jitka Plesnikova - 1.9.0-27 - Perl 5.26 rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.9.0-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sat May 14 2016 Jitka Plesnikova - 1.9.0-25 - Perl 5.24 rebuild * Thu Feb 04 2016 Fedora Release Engineering - 1.9.0-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 1.9.0-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Jun 03 2015 Jitka Plesnikova - 1.9.0-22 - Perl 5.22 rebuild * Tue Aug 26 2014 Jitka Plesnikova - 1.9.0-21 - Perl 5.20 rebuild * Sun Aug 17 2014 Fedora Release Engineering - 1.9.0-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.9.0-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 1.9.0-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Jul 17 2013 Petr Pisar - 1.9.0-17 - Perl 5.18 rebuild * Thu Feb 14 2013 Fedora Release Engineering - 1.9.0-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jul 20 2012 Fedora Release Engineering - 1.9.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Mon Jun 11 2012 Petr Pisar - 1.9.0-14 - Perl 5.16 rebuild * Sat Jan 14 2012 Fedora Release Engineering - 1.9.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Thu Jul 21 2011 Petr Sabata - 1.9.0-12 - Perl mass rebuild * Thu Jul 21 2011 Petr Sabata - 1.9.0-11 - Perl mass rebuild * Thu Jul 21 2011 Petr Sabata - 1.9.0-10 - Perl mass rebuild * Tue Jun 14 2011 Marcela Mašláňová - 1.9.0-9 - Perl mass rebuild * Wed Feb 09 2011 Fedora Release Engineering - 1.9.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Dec 21 2010 Marcela Maslanova - 1.9.0-7 - 661697 rebuild for fixing problems with vendorach/lib * Tue May 04 2010 Marcela Maslanova - 1.9.0-6 - Mass rebuild with perl-5.12.0 * Mon Dec 7 2009 Stepan Kasal - 1.9.0-5 - rebuild against perl 5.10.1 * Sun Jul 26 2009 Fedora Release Engineering - 1.9.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 1.9.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Tue Feb 10 2009 Itamar Reis Peixoto - 1.9.0-2 - Changed license field to GPL+ or Artistic * Thu Jan 22 2009 Itamar Reis Peixoto - 1.9.0-1 - Initial RPM release