| 1 |
|
|---|
| 2 | ## to bootstrap and avoid the circular dependency with ghostscript
|
|---|
| 3 | ## define this to be the ghostscript version
|
|---|
| 4 | #define gs_bootstrap 9.10
|
|---|
| 5 |
|
|---|
| 6 | Summary: Encoding files
|
|---|
| 7 | Name: poppler-data
|
|---|
| 8 | Version: 0.4.7
|
|---|
| 9 | Release: 1%{?dist}
|
|---|
| 10 |
|
|---|
| 11 | # The cMap data files installed by the poppler-data package are
|
|---|
| 12 | # under the COPYING.adobe license
|
|---|
| 13 | # cidToUnicode, nameToUnicode and unicodeMap data files
|
|---|
| 14 | # are under the COPYING.gpl2 license
|
|---|
| 15 | License: BSD and GPLv2
|
|---|
| 16 | URL: http://poppler.freedesktop.org/
|
|---|
| 17 | Source0: http://poppler.freedesktop.org/poppler-data-%{version}.tar.gz
|
|---|
| 18 | Source1: http://downloads.sourceforge.net/project/cmap.adobe/cmapresources_identity0.tar.z
|
|---|
| 19 | # extracted from ghostscript-9.05 tarball
|
|---|
| 20 | Source2: Identity-UTF16-H
|
|---|
| 21 |
|
|---|
| 22 | BuildArch: noarch
|
|---|
| 23 |
|
|---|
| 24 | %if ! 0%{?gs_bootstrap:1}
|
|---|
| 25 | BuildRequires: ghostscript
|
|---|
| 26 | %endif
|
|---|
| 27 | %global gs_ver %(gs --version 2> \\dev\\nul || echo %{gs_bootstrap})
|
|---|
| 28 | BuildRequires: pkgconfig
|
|---|
| 29 |
|
|---|
| 30 | %description
|
|---|
| 31 | This package consists of encoding files for poppler. When installed,
|
|---|
| 32 | the encoding files enables poppler to correctly render CJK and Cyrillic
|
|---|
| 33 | properly.
|
|---|
| 34 |
|
|---|
| 35 | %package devel
|
|---|
| 36 | Summary: Developer files for %{name}
|
|---|
| 37 | Requires: %{name} = %{version}-%{release}
|
|---|
| 38 | %description devel
|
|---|
| 39 | %{summary}.
|
|---|
| 40 |
|
|---|
| 41 |
|
|---|
| 42 | %prep
|
|---|
| 43 | %setup -q -a 1
|
|---|
| 44 |
|
|---|
| 45 | %build
|
|---|
| 46 | # intentionally left blank
|
|---|
| 47 |
|
|---|
| 48 | %install
|
|---|
| 49 | export MAKESHELL="/@unixroot/usr/bin/sh.exe";
|
|---|
| 50 | make install DESTDIR=%{buildroot} datadir=%{_datadir}
|
|---|
| 51 |
|
|---|
| 52 | # manually install Identity-* files
|
|---|
| 53 | # http://bugzilla.redhat.com/842351
|
|---|
| 54 | install -m644 -p %{SOURCE2} ai0/CMap/Identity-* %{buildroot}%{_datadir}/poppler/cMap/
|
|---|
| 55 |
|
|---|
| 56 | # create cmap symlinks for ghostscript
|
|---|
| 57 | mkdir -p %{buildroot}%{_datadir}/ghostscript/%{gs_ver}/Resource/CMap/
|
|---|
| 58 | cmap_files=$(find %{buildroot}%{_datadir}/poppler/cMap/ -type f | sed -e "s|%{buildroot}%{_datadir}|../../../..|g")
|
|---|
| 59 | cd %{buildroot}%{_datadir}/ghostscript/%{gs_ver}/Resource/CMap/
|
|---|
| 60 | for target in ${cmap_files} ; do
|
|---|
| 61 | ln -s $target
|
|---|
| 62 | test -f $(basename $target)
|
|---|
| 63 | done
|
|---|
| 64 | #popd
|
|---|
| 65 |
|
|---|
| 66 |
|
|---|
| 67 | %files
|
|---|
| 68 | %doc COPYING COPYING.adobe COPYING.gpl2 README
|
|---|
| 69 | %{_datadir}/poppler/
|
|---|
| 70 | %dir %{_datadir}/ghostscript/%{gs_ver}
|
|---|
| 71 | %dir %{_datadir}/ghostscript/%{gs_ver}/Resource
|
|---|
| 72 | %{_datadir}/ghostscript/%{gs_ver}/Resource/CMap/
|
|---|
| 73 |
|
|---|
| 74 | %files devel
|
|---|
| 75 | %{_datadir}/pkgconfig/poppler-data.pc
|
|---|
| 76 |
|
|---|
| 77 |
|
|---|
| 78 | %changelog
|
|---|
| 79 | * Fri Dec 12 2014 yd
|
|---|
| 80 | - initial unixroot build.
|
|---|