From 0bf0fe2d76070bbd7b9c7474b1c2ed12de2a6b60 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 01 2019 19:02:04 +0000 Subject: import poppler-data-0.4.6-3.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e157cda --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/cmapresources_identity0.tar.z +SOURCES/poppler-data-0.4.6.tar.gz diff --git a/.poppler-data.metadata b/.poppler-data.metadata new file mode 100644 index 0000000..ac486ff --- /dev/null +++ b/.poppler-data.metadata @@ -0,0 +1,2 @@ +e7a191924ce492bb7410ec02101bce0aeb6b2737 SOURCES/cmapresources_identity0.tar.z +f030563eed9f93912b1a546e6d87936d07d7f27d SOURCES/poppler-data-0.4.6.tar.gz diff --git a/SOURCES/Identity-UTF16-H b/SOURCES/Identity-UTF16-H new file mode 100644 index 0000000..27480c0 --- /dev/null +++ b/SOURCES/Identity-UTF16-H @@ -0,0 +1,54 @@ +% Copyright (C) 2003 Artifex Software. All rights reserved. +% +% This software is provided AS-IS with no warranty, either express or +% implied. +% +% This software is distributed under license and may not be copied, +% modified or distributed except as expressly authorized under the terms +% of the license contained in the file LICENSE in this distribution. +% +% For more information about licensing, please refer to +% http://www.ghostscript.com/licensing/. For information on +% commercial licensing, go to http://www.artifex.com/licensing/ or +% contact Artifex Software, Inc., 101 Lucas Valley Road #110, +% San Rafael, CA 94903, U.S.A., +1(415)492-9861. +% +% $Id$ +% Identity-UTF16-H CMap +% An identity mapping of UTF16 codes to CIDs. + +/CIDInit /ProcSet findresource begin + +12 dict begin + +begincmap + +/CIDSystemInfo 3 dict dup begin + /Registry (Artifex) def + /Ordering (Unicode) def + /Supplement 0 def +end def + +/CMapName /Identity-UTF16-H def +/CMapVersion 1.000 def +/CMapType 1 def + +/UIDOffset 0 def +% No XUID yet obtained. + +/WMode 0 def + +1 begincodespacerange + <0000> +endcodespacerange + +1 begincidrange +<0000> 0 +endcidrange +endcmap +CMapName currentdict /CMap defineresource pop +end +end + +%%EndResource +%%EOF diff --git a/SPECS/poppler-data.spec b/SPECS/poppler-data.spec new file mode 100644 index 0000000..f8b478f --- /dev/null +++ b/SPECS/poppler-data.spec @@ -0,0 +1,130 @@ + +## to bootstrap and avoid the circular dependency with ghostscript +## define this to be the ghostscript version +#define gs_bootstrap 9.06 + +Summary: Encoding files +Name: poppler-data +Version: 0.4.6 +Release: 3%{?dist} +# The cMap data files installed by the poppler-data package are +# under the COPYING.adobe license +# cidToUnicode, nameToUnicode and unicodeMap data files +# are under the COPYING.gpl2 license +# Identity-UTF16-H is under GPLv3+ license +License: BSD and GPLv2 and GPLv3+ +Group: Development/Libraries +URL: http://poppler.freedesktop.org/ +Source0: http://poppler.freedesktop.org/poppler-data-%{version}.tar.gz +Source1: http://downloads.sourceforge.net/project/cmap.adobe/cmapresources_identity0.tar.z +# extracted from ghostscript-9.05 tarball +Source2: Identity-UTF16-H +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) +BuildArch: noarch + +%if ! 0%{?gs_bootstrap:1} +BuildRequires: ghostscript +%endif +%global gs_ver %(gs --version 2>/dev/null || echo %{gs_bootstrap}) + +%description +This package consists of encoding files for poppler. When installed, +the encoding files enables poppler to correctly render CJK and Cyrillic +properly. + + +%prep +%setup -q -a 1 + +%build +# intentionally left blank + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT datadir=%{_datadir} + +# manually install Identity-* files +# http://bugzilla.redhat.com/842351 +install -m644 -p %{SOURCE2} ai0/CMap/Identity-* $RPM_BUILD_ROOT%{_datadir}/poppler/cMap/ + +# create cmap symlinks for ghostscript +mkdir -p %{buildroot}%{_datadir}/ghostscript/%{gs_ver}/Resource/CMap/ +cmap_files=$(find %{buildroot}%{_datadir}/poppler/cMap/ -type f | sed -e "s|%{buildroot}%{_datadir}|../../../..|g") +pushd %{buildroot}%{_datadir}/ghostscript/%{gs_ver}/Resource/CMap/ +for target in ${cmap_files} ; do +ln -s $target +test -f $(basename $target) +done +popd + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc COPYING COPYING.adobe COPYING.gpl2 README +%{_datadir}/poppler/ +%dir %{_datadir}/ghostscript/%{gs_ver} +%dir %{_datadir}/ghostscript/%{gs_ver}/Resource +%{_datadir}/ghostscript/%{gs_ver}/Resource/CMap/ + + +%changelog +* Fri Dec 27 2013 Daniel Mach - 0.4.6-3 +- Mass rebuild 2013-12-27 + +* Mon Apr 8 2013 Marek Kasik 0.4.6-2.1 +- Update License field +- Resolves: #905472 + +* Thu Feb 14 2013 Fedora Release Engineering - 0.4.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Oct 17 2012 Rex Dieter 0.4.6-1 +- poppler-data-0.4.6 + +* Tue Sep 18 2012 Rex Dieter 0.4.5-6 +- create ghostscript cmap symlinks (#842351) + +* Sat Sep 15 2012 Rex Dieter 0.4.5-5 +- Identity-UTF16-H too (#842351) + +* Sat Sep 15 2012 Rex Dieter 0.4.5-4 +- CMap file "Identity-H" missing due to poppler-data change/cleanup (#842351) + +* Sat Jul 21 2012 Fedora Release Engineering - 0.4.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Jan 14 2012 Fedora Release Engineering - 0.4.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Oct 12 2011 Rex Dieter 0.4.5-1 +- poppler-data-0.4.5 + +* Wed Feb 09 2011 Fedora Release Engineering - 0.4.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Thu Oct 28 2010 Rex Dieter - 0.4.4-1 +- poppler-data-0.4.4 + +* Thu Jul 15 2010 Rex Dieter - 0.4.3-1 +- poppler-data-0.4.3 + +* Sat May 01 2010 Rex Dieter - 0.4.2-1 +- poppler-data-0.4.2 + +* Mon Dec 14 2009 Rex Dieter - 0.4.0-1 +- poppler-data-0.4.0 + +* Mon Nov 23 2009 Rex Dieter - 0.3.1-1 +- poppler-data-0.3.1 + +* Tue Sep 22 2009 Rex Dieter - 0.3.0-1 +- poppler-data-0.3.0 +- License: BSD and GPLv2 + +* Mon Jun 22 2009 Rex Dieter - 0.2.1-1 +- first try at separate poppler-data +