rpms/perl-PDF-API2/devel font-location.patch, NONE, 1.1 perl-PDF-API2.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Bernard Johnson (bjohnson)
fedora-extras-commits at redhat.com
Fri May 4 02:34:51 UTC 2007
Author: bjohnson
Update of /cvs/pkgs/rpms/perl-PDF-API2/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv29627/devel
Modified Files:
.cvsignore sources
Added Files:
font-location.patch perl-PDF-API2.spec
Log Message:
initial import perl-PDF-API2
font-location.patch:
--- NEW FILE font-location.patch ---
--- PDF-API2-0.60/lib/PDF/API2.pm.orig 2007-03-17 14:07:21.000000000 -0600
+++ PDF-API2-0.60/lib/PDF/API2.pm 2007-04-29 16:44:03.000000000 -0600
@@ -39,8 +39,7 @@
($VERSION) = sprintf '%i.%03i', split(/\./,('$Revision: 2.5 $' =~ /Revision: (\S+)\s/)[0]); # $Date: 2007/03/17 20:07:21 $
- @FontDirs = ( (map { "$_/PDF/API2/fonts" } @INC),
- qw[ /usr/share/fonts /usr/local/share/fonts c:/windows/fonts c:/winnt/fonts ] );
+ @FontDirs = ( qw[ /usr/share/fonts/dejavu-fonts /usr/share/fonts ] );
$seq="AA";
--- NEW FILE perl-PDF-API2.spec ---
Name: perl-PDF-API2
Version: 0.60
Release: 2%{?dist}
Summary: Perl module for creation and modification of PDF files
Group: System Environment/Libraries
License: LGPL
URL: http://search.cpan.org/dist/PDF-API2/
Source0: http://search.cpan.org/CPAN/authors/id/A/AR/AREIBENS/PDF-API2-%{version}.tar.gz
Patch0: font-location.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker), perl(Compress::Zlib)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: dejavu-fonts, dejavu-fonts-experimental
%description
A Perl Module Chain to faciliate the Creation and Modification of High-Quality
"Portable Document Format (aka. PDF)" Files.
%prep
%setup -q -n PDF-API2-%{version}
# don't use -b for backup or the backup will get installed to the build root
%patch0 -p1
# fix eol encoding of some text files
for file in COPYING TODO CONTACT CHANGELOG README LICENSE examples/* contrib/* \
lib/PDF/API2/Resource/*txt; do
sed -i 's/\r//' $file
done
# fix interpreter in example files
for file in contrib/pdf-{de,}optimize.pl; do
sed -i 's/usr\/local/usr/' $file
done
# 027_winfont wants Win32.pm, so remove it
rm -f examples/027_winfont
# make mode on included examples and contrib 0644 to keep from triggering
# rpmlint warning and additional auto-requires
chmod a-x contrib/* examples/*
# Filter unwanted Requires:
cat << \EOF > %{name}-req
#!/bin/sh
%{__perl_requires} $* |\
sed -e '/perl(the)/d'
EOF
%define __perl_requires %{_builddir}/PDF-API2-%{version}/%{name}-req
chmod +x %{__perl_requires}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%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 {} ';'
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*
# we will not include the dejavu fonts in this package, we'll just require the
# deja-vu font packages and change the search location (patch0)
#
# These fonts can be found in these packages:
#
# package: dejavu-fonts
# DejaVuSansMono-BoldOblique.ttf
# DejaVuSerif.ttf
# DejaVuSerif-Bold.ttf
# DejaVuSansMono-Bold.ttf
# DejaVuSans-Bold.ttf
# DejaVuSans.ttf
# DejaVuSansMono.ttf
# DejaVuSansMono-Oblique.ttf
# DejaVuSans-BoldOblique.ttf
#
# package: dejavu-fonts-experimental
# DejaVuSerifCondensed.ttf
# DejaVuSans-ExtraLight.ttf
# DejaVuSansCondensed-Bold.ttf
# DejaVuSansCondensed.ttf
# DejaVuSerifCondensed-Oblique.ttf
# DejaVuSans-Oblique.ttf
# DejaVuSansCondensed-Oblique.ttf
# DejaVuSansCondensed-BoldOblique.ttf
# DejaVuSerifCondensed-BoldOblique.ttf
# DejaVuSerif-BoldOblique.ttf
# DejaVuSerifCondensed-Bold.ttf
#
rm -rf $RPM_BUILD_ROOT/%{perl_vendorlib}/PDF/API2/fonts
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc AUTHORS CHANGELOG CONTACT COPYING LICENSE README TODO
%doc contrib examples
%{perl_vendorlib}/*
# files that are not relevent to this OS
%exclude %{perl_vendorlib}/PDF/API2/Basic/TTF/Win32.pm
%exclude %{perl_vendorlib}/PDF/API2/Win32.pm
%changelog
* Sun Apr 29 2007 Bernard Johnson <bjohnson at symetrix.com> - 0.60-2
- remove fonts and depend on dejavu-fonts and dejavu-fonts-experimental
- change font search path
- remove font docs
* Sat Apr 28 2007 Bernard Johnson <bjohnson at symetrix.com> - 0.60-1
- v 0.60
- deliberately remove 027_winfont example as it wants Win32.pm
- BR on perl(Ext::MakeMaker) rather than perl
* Fri Apr 06 2007 Bernard Johnson <bjohnson at symetrix.com> - 0.59.002-2
- moving resource to docs was a mistake, fix it
* Thu Apr 05 2007 Bernard Johnson <bjohnson at symetrix.com> - 0.59.002-1
- initial release
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/perl-PDF-API2/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 4 May 2007 01:57:25 -0000 1.1
+++ .cvsignore 4 May 2007 02:34:16 -0000 1.2
@@ -0,0 +1 @@
+PDF-API2-0.60.tar.gz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/perl-PDF-API2/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 4 May 2007 01:57:25 -0000 1.1
+++ sources 4 May 2007 02:34:16 -0000 1.2
@@ -0,0 +1 @@
+3e674248b44f68af13cc4d23f018ba50 PDF-API2-0.60.tar.gz
More information about the fedora-extras-commits
mailing list