168 lines
5.7 KiB
RPMSpec
168 lines
5.7 KiB
RPMSpec
%global use_x11_tests 1
|
|
|
|
Name: perl-Pango
|
|
Version: 1.227
|
|
Release: 9%{?dist}
|
|
Summary: Perl interface to the pango library
|
|
Group: Development/Libraries
|
|
License: LGPLv2+
|
|
URL: https://metacpan.org/release/Pango
|
|
Source0: https://cpan.metacpan.org/authors/id/X/XA/XAOC/Pango-%{version}.tar.gz
|
|
BuildRequires: coreutils
|
|
BuildRequires: findutils
|
|
BuildRequires: gcc
|
|
BuildRequires: make
|
|
BuildRequires: pango-devel >= 1.0.0
|
|
BuildRequires: perl-interpreter
|
|
BuildRequires: perl-devel
|
|
BuildRequires: perl-generators
|
|
BuildRequires: perl(Cairo) >= 1.000
|
|
BuildRequires: perl(Cwd)
|
|
BuildRequires: perl(ExtUtils::Depends) >= 0.300
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
BuildRequires: perl(ExtUtils::PkgConfig)
|
|
BuildRequires: perl(File::Spec)
|
|
BuildRequires: perl(Glib) >= 1.220
|
|
BuildRequires: perl(Glib::CodeGen)
|
|
BuildRequires: perl(Glib::MakeHelper)
|
|
BuildRequires: perl(strict)
|
|
BuildRequires: perl(warnings)
|
|
BuildRequires: pkgconfig(pango)
|
|
BuildRequires: pkgconfig(pangocairo)
|
|
# Run-time:
|
|
BuildRequires: perl(DynaLoader)
|
|
BuildRequires: perl(Exporter)
|
|
# Tests:
|
|
BuildRequires: perl(lib)
|
|
BuildRequires: perl(Test::More)
|
|
# Optional tests:
|
|
%if %{use_x11_tests}
|
|
BuildRequires: font(:lang=en)
|
|
%if !%{defined perl_bootstrap}
|
|
# Break build-cycle: perl-Gtk2 → perl-Pango → perl-Gtk2
|
|
BuildRequires: perl(Gtk2) >= 1.220
|
|
%endif
|
|
BuildRequires: xorg-x11-server-Xvfb
|
|
%endif
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
Requires: perl(Cairo) >= 1.000
|
|
|
|
%{?perl_default_filter}
|
|
|
|
%description
|
|
perl-Pango provides Perl bindings for the text layout/rendering library
|
|
pango. Pango is a library for laying out and rendering text, with an
|
|
emphasis on internationalization. Pango can be used anywhere that text layout
|
|
is needed, but using Pango in conjunction with Cairo and/or Gtk2 provides a
|
|
complete solution with high quality text handling and graphics rendering.
|
|
|
|
%prep
|
|
%setup -q -n Pango-%{version}
|
|
chmod -c a-x examples/*.pl
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
|
find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';'
|
|
chmod -R u+w $RPM_BUILD_ROOT/*
|
|
|
|
%check
|
|
%if %{use_x11_tests}
|
|
xvfb-run -a make test
|
|
%else
|
|
make test
|
|
%endif
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc NEWS README examples/
|
|
%{perl_vendorarch}/Pango*
|
|
%{perl_vendorarch}/auto/Pango/
|
|
%{_mandir}/man3/*.3pm*
|
|
|
|
%changelog
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.227-9
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.227-8
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.227-7
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.227-6
|
|
- Perl 5.26 re-rebuild of bootstrapped packages
|
|
|
|
* Tue Jun 06 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.227-5
|
|
- Perl 5.26 rebuild
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.227-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.227-3
|
|
- Perl 5.24 re-rebuild of bootstrapped packages
|
|
|
|
* Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.227-2
|
|
- Perl 5.24 rebuild
|
|
|
|
* Tue Feb 2 2016 Tom Callaway <spot@fedoraproject.org> - 1.227-1
|
|
- update to 1.227
|
|
|
|
* Mon Jan 18 2016 Petr Pisar <ppisar@redhat.com> - 1.226-7
|
|
- Break build-cycle: perl-Gtk2 → perl-Pango → perl-Gtk2
|
|
|
|
* Tue Jan 12 2016 Petr Pisar <ppisar@redhat.com> - 1.226-6
|
|
- Fix pkgconfig output concatenation with pkgconfig-0.29 (bug #1297705)
|
|
- Specify all dependencies and enable tests
|
|
- Modernize spec file
|
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.226-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
* Mon Jun 08 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.226-4
|
|
- Perl 5.22 rebuild
|
|
|
|
* Mon Sep 01 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.226-3
|
|
- Perl 5.20 rebuild
|
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.226-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
* Tue Jul 8 2014 Tom Callaway <spot@fedoraproject.org> - 1.226-1
|
|
- update to 1.226
|
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.221-10
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.221-9
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
* Sun Jul 21 2013 Petr Pisar <ppisar@redhat.com> - 1.221-8
|
|
- Perl 5.18 rebuild
|
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.221-7
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.221-6
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
* Wed Jun 13 2012 Petr Pisar <ppisar@redhat.com> - 1.221-5
|
|
- Perl 5.16 rebuild
|
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.221-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Tue Jun 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.221-3
|
|
- Perl mass rebuild
|
|
|
|
* Thu Mar 3 2011 Tom Callaway <spot@fedoraproject.org> - 1.221-2
|
|
- drop duplicated requires
|
|
- add default perl filtering
|
|
|
|
* Wed Jan 26 2011 Tom Callaway <spot@fedoraproject.org> - 1.221-1
|
|
- initial package
|