%define realname pgsql_perl5 Name: perl-pgsql_perl5 Version: 1.9.0 Release: 39%{?dist} Summary: Pg - Perl5 extension for PostgreSQL License: GPL+ or Artistic URL: https://metacpan.org/release/pgsql_perl5 Source0: https://cpan.metacpan.org/modules/by-module/Pg/%{realname}-%{version}.tar.gz #BuildArch: noarch # Correct for lots of packages, other common choices include eg. Module::Build BuildRequires: make BuildRequires: gcc BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: libpq-devel Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description The Pg 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 %setup -q -n %{realname}-%{version} %build # Remove OPTIMIZE=... from noarch packages (unneeded) env POSTGRES_INCLUDE=%{_includedir} POSTGRES_LIB=%{_libdir} %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" make %{?_smp_mflags} OPTIMIZE="%{optflags}" %install rm -rf $RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' # Remove the next line from noarch packages (unneeded) find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';' chmod -R u+w $RPM_BUILD_ROOT/* %check #Don't test, because it's requires this package to be installed to work #make test %files %doc Changes README #MANIFEST eg/ Don't include MANIFEST file and eg folder %{perl_vendorarch}/Pg.pm %{perl_vendorarch}/auto/Pg/ %{_mandir}/man3/*.3* %changelog * 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