From 9ae45cc652b4fd32a6d9ba562331c02f7ae0322c Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 25 Oct 2024 18:20:30 +0300 Subject: [PATCH] import perl-libintl-perl-1.33-10.el10 --- .gitignore | 1 + .perl-libintl-perl.metadata | 1 + SPECS/perl-libintl-perl.spec | 366 +++++++++++++++++++++++++++++++++++ 3 files changed, 368 insertions(+) create mode 100644 .gitignore create mode 100644 .perl-libintl-perl.metadata create mode 100644 SPECS/perl-libintl-perl.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a435216 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/libintl-perl-1.33.tar.gz diff --git a/.perl-libintl-perl.metadata b/.perl-libintl-perl.metadata new file mode 100644 index 0000000..753d80e --- /dev/null +++ b/.perl-libintl-perl.metadata @@ -0,0 +1 @@ +0f0744c6691e92e3c0aa4fd5d26cddc4d9379f8d SOURCES/libintl-perl-1.33.tar.gz diff --git a/SPECS/perl-libintl-perl.spec b/SPECS/perl-libintl-perl.spec new file mode 100644 index 0000000..e0b5f26 --- /dev/null +++ b/SPECS/perl-libintl-perl.spec @@ -0,0 +1,366 @@ +Summary: Internationalization library for Perl, compatible with gettext +Name: perl-libintl-perl +Version: 1.33 +Release: 10%{?dist} +# gettext_xs/gettext_xs.pm: GPL-3.0-or-later +# gettext_xs/Makefile.PL: LGPL-2.0-or-later +# lib/Locale/gettext_xs.pod: LGPL-2.0-or-later +# lib/Locale/RecodeData.pm: GPL-3.0-or-later +# lib/Locale/libintlFAQ.pod: LGPL-2.0-or-later +# COPYING: GPL-3.0-or-later +License: GPL-3.0-or-later AND LGPL-2.0-or-later +URL: https://metacpan.org/release/libintl-perl +Source0: https://cpan.metacpan.org/authors/id/G/GU/GUIDO/libintl-perl-%{version}.tar.gz +# this module was renamed in the f25 dev cycle +Provides: perl-libintl = %{version}-%{release} +Obsoletes: perl-libintl < 1.25 + +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: gcc +BuildRequires: glibc-common +BuildRequires: make +BuildRequires: perl-interpreter +BuildRequires: perl-devel +BuildRequires: perl-generators +BuildRequires: perl(Config) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Find) +BuildRequires: perl(strict) +BuildRequires: perl(vars) +BuildRequires: sed +# Run-time: +BuildRequires: perl(base) +BuildRequires: perl(bytes) +BuildRequires: perl(constant) +BuildRequires: perl(Cwd) +BuildRequires: perl(DynaLoader) +BuildRequires: perl(Encode) +BuildRequires: perl(Encode::Alias) +BuildRequires: perl(Exporter) +BuildRequires: perl(File::Spec) +BuildRequires: perl(integer) +BuildRequires: perl(IO::Handle) +BuildRequires: perl(locale) +BuildRequires: perl(POSIX) +# Optional run-time: +BuildRequires: perl(File::ShareDir) +BuildRequires: perl(I18N::Langinfo) +# Tests: +# Needed for tests/03bind_textdomain_codeset_pp.t +BuildRequires: glibc-langpack-de +# Needed for tests/04find_domain_bug.t +BuildRequires: glibc-langpack-en +BuildRequires: perl(File::Basename) +BuildRequires: perl(Test) +BuildRequires: perl(Test::Harness) +Requires: perl(Carp) +Requires: perl(Encode::Alias) +Requires: perl(POSIX) +Recommends: perl(File::ShareDir) +Recommends: perl(I18N::Langinfo) + +%{?perl_default_filter} + +%description +The package libintl-perl is an internationalization library for Perl that +aims to be compatible with the Uniforum message translations system as +implemented for example in GNU gettext. + +%package tests +Summary: Tests for %{name} +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 libintl-perl-%{version} +find -type f -exec chmod -x {} \; +find lib/Locale gettext_xs \( -name '*.pm' -o -name '*.pod' \) \ + -exec sed -i -e '/^#! \/bin\/false/d' {} \; +# Fix rpmlint errors and warnings +cd sample/simplecal +sed -i -e '1i#!%{__perl}' bin/simplecal.pl Makefile.PL +for file in po/*.po; do + iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \ + mv $file.new $file +done +rm .gitignore MANIFEST +cd ../.. +# Help generators to recognize Perl scripts +for F in test.pl tests/*.t; do + perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F" + chmod +x "$F" +done + + +%build +perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PERLLOCAL=1 +%make_build + +%install +%make_install +find %{buildroot} -type f \( -name .packlist -o \ + -name '*.bs' -size 0 \) -delete +%{_fixperms} %{buildroot} +# Install tests +mkdir -p %{buildroot}%{_libexecdir}/%{name} +cp -a xs_disabled %{buildroot}%{_libexecdir}/%{name} +cp -a tests %{buildroot}%{_libexecdir}/%{name} +cp -a test.pl %{buildroot}%{_libexecdir}/%{name} +cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' +#!/bin/sh +T2_HARNESS_JOB_COUNT="$(getconf _NPROCESSORS_ONLN)" %{_libexecdir}/%{name}/test.pl +EOF +chmod +x %{buildroot}%{_libexecdir}/%{name}/test + +%check +make test + +%files +%license COPYING +%doc Changes Credits FAQ NEWS README REFERENCES THANKS TODO +%doc sample +%{perl_vendorlib}/Locale/ +%{perl_vendorarch}/auto/Locale/ +%{_mandir}/man?/* + +%files tests +%{_libexecdir}/%{name} + +%changelog +* Thu Aug 08 2024 Troy Dawson - 1.33-10 +- Bump release for Aug 2024 java mass rebuild + +* Fri Jul 12 2024 Michal Josef Špaček - 1.33-9 +- Package tests + +* Mon Jun 24 2024 Troy Dawson - 1.33-8 +- Bump release for June 2024 mass rebuild + +* Thu Jan 25 2024 Fedora Release Engineering - 1.33-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 1.33-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 1.33-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jul 11 2023 Jitka Plesnikova - 1.33-4 +- Perl 5.38 rebuild + +* Wed May 31 2023 Michal Josef Špaček - 1.33-3 +- Update license to SPDX format + +* Fri Jan 20 2023 Fedora Release Engineering - 1.33-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sun Dec 25 2022 Emmanuel Seyman - 1.33-1 +- Update to 1.33 + +* Fri Jul 22 2022 Fedora Release Engineering - 1.32-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Tue May 31 2022 Jitka Plesnikova - 1.32-6 +- Perl 5.36 rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 1.32-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 1.32-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri May 21 2021 Jitka Plesnikova - 1.32-3 +- Perl 5.34 rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 1.32-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sun Nov 01 2020 Emmanuel Seyman - 1.32-1 +- Update to 1.32 + +* Tue Jul 28 2020 Fedora Release Engineering - 1.31-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jun 23 2020 Jitka Plesnikova - 1.31-7 +- Perl 5.32 rebuild + +* Tue Feb 04 2020 Tom Stellard - 1.31-6 +- Spec file cleanups: Use make_build and make_install macros +- https://docs.fedoraproject.org/en-US/packaging-guidelines/#_parallel_make +- https://fedoraproject.org/wiki/Perl/Tips#ExtUtils::MakeMake + +* Thu Jan 30 2020 Fedora Release Engineering - 1.31-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 1.31-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri May 31 2019 Jitka Plesnikova - 1.31-3 +- Perl 5.30 rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 1.31-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sun Nov 25 2018 Emmanuel Seyman - 1.31-1 +- Update to 1.31 +- Whitelist known rpmlint errors + +* Tue Nov 06 2018 Emmanuel Seyman - 1.30-1 +- Update to 1.30 + +* Fri Jul 13 2018 Fedora Release Engineering - 1.29-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri Jun 29 2018 Jitka Plesnikova - 1.29-4 +- Perl 5.28 rebuild + +* Tue Jun 05 2018 Jitka Plesnikova - 1.29-3 +- Run the tests with LANG=en_US to ensure we use the right dictionary + +* Fri Feb 09 2018 Fedora Release Engineering - 1.29-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Sun Nov 12 2017 Emmanuel Seyman - 1.29-1 +- Update to 1.29 + +* Sun Sep 03 2017 Emmanuel Seyman - 1.28-1 +- Update to 1.28 + +* Sun Aug 13 2017 Emmanuel Seyman - 1.27-1 +- Update to 1.27 +- Drop upstreamed patch + +* Thu Aug 03 2017 Fedora Release Engineering - 1.26-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 1.26-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sun Jun 04 2017 Jitka Plesnikova - 1.26-4 +- Perl 5.26 rebuild + +* Mon May 15 2017 Petr Pisar - 1.26-3 +- Fix building on Perl without "." in @INC (CPAN RT#120446) + +* Sat Feb 11 2017 Fedora Release Engineering - 1.26-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Sat Jun 18 2016 Emmanuel Seyman - 1.26-1 +- Update to 1.26 + +* Wed May 25 2016 Emmanuel Seyman - 1.25-2 +- Take into account the re-review comments (#1339004) + +* Sat May 21 2016 Emmanuel Seyman - 1.25-1 +- Update package to 1.25-1 +- Rename package to perl-libintl-perl, the module's name on CPAN +- Trim changelog + +* Sun May 15 2016 Jitka Plesnikova - 1.24-3 +- Perl 5.24 rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 1.24-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Mon Sep 14 2015 Petr Pisar - 1.24-1 +- 1.24 bump +- License changed from (LGPLv2+) to (GPLv3+ and LGPLv2+) + +* Thu Jun 18 2015 Fedora Release Engineering - 1.20-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Wed Jun 03 2015 Jitka Plesnikova - 1.20-17 +- Perl 5.22 rebuild + +* Tue Aug 26 2014 Jitka Plesnikova - 1.20-16 +- Perl 5.20 rebuild + +* Sun Aug 17 2014 Fedora Release Engineering - 1.20-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 1.20-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Aug 04 2013 Fedora Release Engineering - 1.20-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Wed Jul 17 2013 Petr Pisar - 1.20-12 +- Perl 5.18 rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 1.20-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Tue Nov 20 2012 Petr Šabata - 1.20-10 +- Add some missing BRs +- Modernize the spec +- Drop command macros + +* Thu Oct 11 2012 Petr Pisar - 1.20-9 +- Do not provide private library +- Drop unneeded build-time dependencies +- Specify all dependencies + +* Fri Jul 20 2012 Fedora Release Engineering - 1.20-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon Jun 11 2012 Petr Pisar - 1.20-7 +- Perl 5.16 rebuild + +* Sat Jan 14 2012 Fedora Release Engineering - 1.20-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Jun 20 2011 Marcela Mašláňová - 1.20-5 +- Perl mass rebuild + +* Wed Feb 09 2011 Fedora Release Engineering - 1.20-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Mon Dec 20 2010 Marcela Maslanova - 1.20-3 +- 661697 rebuild for fixing problems with vendorach/lib + +* Sun May 02 2010 Marcela Maslanova - 1.20-2 +- Mass rebuild with perl-5.12.0 + +* Fri Jan 15 2010 Stepan Kasal - 1.20-1 +- new upstream version +- better buildroot + +* Mon Dec 7 2009 Stepan Kasal - 1.16-11 +- rebuild against perl 5.10.1 + +* Sun Jul 26 2009 Fedora Release Engineering - 1.16-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu Feb 26 2009 Fedora Release Engineering - 1.16-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Wed Feb 27 2008 Tom "spot" Callaway - 1.16-8 +- Rebuild for perl 5.10 (again) + +* Tue Feb 19 2008 Fedora Release Engineering - 1.16-7 +- Autorebuild for GCC 4.3 + +* Tue Feb 5 2008 Tom "spot" Callaway 1.16-6 +- rebuild for new perl + +* Wed Aug 22 2007 Matthias Saou 1.16-5 +- Rebuild for new BuildID feature. + +* Mon Aug 6 2007 Matthias Saou 1.16-4 +- Update License field. +- Add perl(ExtUtils::MakeMaker) build requirement. + +* Mon Aug 28 2006 Matthias Saou 1.16-3 +- FC6 rebuild. +- Change spec file back to my own liking... + +* Sat Feb 11 2006 Ralf Corsépius 1.16-2 +- Rework spec (PR 180767). + +* Thu Feb 9 2006 Matthias Saou 1.16-1 +- Update to 1.16.