source: spec/trunk/SPECS/poppler-data.spec@ 1036

Last change on this file since 1036 was 474, checked in by Yuri Dario, 11 years ago

spec: poppler-data, initial build.

File size: 2.2 KB
Line 
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
6Summary: Encoding files
7Name: poppler-data
8Version: 0.4.7
9Release: 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
15License: BSD and GPLv2
16URL: http://poppler.freedesktop.org/
17Source0: http://poppler.freedesktop.org/poppler-data-%{version}.tar.gz
18Source1: http://downloads.sourceforge.net/project/cmap.adobe/cmapresources_identity0.tar.z
19# extracted from ghostscript-9.05 tarball
20Source2: Identity-UTF16-H
21
22BuildArch: noarch
23
24%if ! 0%{?gs_bootstrap:1}
25BuildRequires: ghostscript
26%endif
27%global gs_ver %(gs --version 2> \\dev\\nul || echo %{gs_bootstrap})
28BuildRequires: pkgconfig
29
30%description
31This package consists of encoding files for poppler. When installed,
32the encoding files enables poppler to correctly render CJK and Cyrillic
33properly.
34
35%package devel
36Summary: Developer files for %{name}
37Requires: %{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
49export MAKESHELL="/@unixroot/usr/bin/sh.exe";
50make install DESTDIR=%{buildroot} datadir=%{_datadir}
51
52# manually install Identity-* files
53# http://bugzilla.redhat.com/842351
54install -m644 -p %{SOURCE2} ai0/CMap/Identity-* %{buildroot}%{_datadir}/poppler/cMap/
55
56# create cmap symlinks for ghostscript
57mkdir -p %{buildroot}%{_datadir}/ghostscript/%{gs_ver}/Resource/CMap/
58cmap_files=$(find %{buildroot}%{_datadir}/poppler/cMap/ -type f | sed -e "s|%{buildroot}%{_datadir}|../../../..|g")
59cd %{buildroot}%{_datadir}/ghostscript/%{gs_ver}/Resource/CMap/
60for target in ${cmap_files} ; do
61ln -s $target
62test -f $(basename $target)
63done
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.
Note: See TracBrowser for help on using the repository browser.