epel9
Petr Šabata 13 years ago
parent 9c140b8e2e
commit 76e56900de

1
.gitignore vendored

@ -1,2 +1,3 @@
Font-TTF-0.45.tar.gz
/Font-TTF-0.48.tar.gz
/Font-TTF-1.00.tar.gz

@ -1,24 +1,20 @@
%global cpanname Font-TTF
Name: perl-%{cpanname}
Version: 0.48
Release: 5%{?dist}
Summary: Perl library for modifying TTF font files
Group: Development/Libraries
License: Artistic 2.0
URL: http://search.cpan.org/dist/%{cpanname}/
Source0: http://cpan.org/authors/id/M/MH/MHOSKEN/%{cpanname}-%{version}.tar.gz
Name: perl-Font-TTF
Version: 1.00
Release: 1%{?dist}
Summary: Perl library for modifying TTF font files
Group: Development/Libraries
License: Artistic 2.0
URL: http://search.cpan.org/dist/Font-TTF/
Source0: http://cpan.org/authors/id/M/MH/MHOSKEN/Font-TTF-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl(Compress::Zlib)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: dos2unix
# Check requirements
BuildRequires: perl(File::Spec)
BuildRequires: perl(IO::File)
BuildRequires: perl(IO::String)
BuildRequires: perl(Test::Simple)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%{?perl_default_filter}
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description
Perl module for TrueType font hacking. Supports reading, processing and writing
@ -30,52 +26,42 @@ types.
In short, you can do almost anything with a standard TrueType font with this
module.
%prep
%setup -q -n %{cpanname}-%{version}
dos2unix README.TXT COPYING lib/Font/TTF/Changes
%setup -q -n Font-TTF-%{version}
#dos2unix README.TXT COPYING lib/Font/TTF/Changes
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
%{_fixperms} $RPM_BUILD_ROOT/*
%{_fixperms} %{buildroot}/*
%check
make test
%files
%defattr(0644,root,root,0755)
%doc README.TXT COPYING lib/Font/TTF/Changes
%doc README.TXT LICENSE CONTRIBUTORS Changes TODO
%dir %{perl_vendorlib}/Font
%dir %{perl_vendorlib}/Font/TTF
%{perl_vendorlib}/ttfmod.pl
%{perl_vendorlib}/Font/TTF.pm
%{perl_vendorlib}/Font/TTF/*
%exclude %{perl_vendorlib}/Font/TTF/Changes
%{_mandir}/man3/*.3*
# We really don't want to use this perl package in a Win32 env
# or poke in the windows registry to resolve fonts
# (upstream makefile needs to get smarter)
%exclude %{perl_vendorlib}/Font/TTF/Win32.pm
%changelog
* Wed Aug 29 2012 Petr Šabata <contyk@redhat.com> - 1.00-1
- 1.00 bump
- Modernize the spec file
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.48-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

@ -1 +1 @@
56d614d04e985558d1518b8f4b29254e Font-TTF-0.48.tar.gz
c12a7b6ee866ffedc44d7d18d41eff82 Font-TTF-1.00.tar.gz

Loading…
Cancel
Save