Blame SPECS/adobe-mappings-cmap.spec

7911e7
Name:             adobe-mappings-cmap
7911e7
Summary:          CMap resources for Adobe's character collections
7911e7
Version:          20171205
7911e7
Release:          3%{?dist}
7911e7
License:          BSD
7911e7
7911e7
URL:              https://www.adobe.com/
7911e7
Source:           https://github.com/adobe-type-tools/cmap-resources/archive/%{version}.tar.gz#/cmap-resources-%{version}.tar.gz
7911e7
7911e7
BuildArch:        noarch
7911e7
BuildRequires:    git
7911e7
7911e7
%description
7911e7
CMap (Character Map) resources are used to unidirectionally map character codes,
7911e7
such as Unicode encoding form, to CIDs (Character IDs -- meaning glyphs) of a
7911e7
CIDFont resource.
7911e7
7911e7
These CMap resources are useful for some applications (e.g. Ghostscript) to
7911e7
correctly display text containing Japanese, (Traditional) Chinese, or Korean
7911e7
characters.
7911e7
7911e7
# === SUBPACKAGES =============================================================
7911e7
7911e7
%package deprecated
7911e7
Summary:          Deprecated CMap resources for Adobe's character collections
7911e7
Requires:         %{name} = %{version}-%{release}
7911e7
7911e7
%description deprecated
7911e7
This sub-package contains currently deprecated CMap resources that some
7911e7
applications might still require to function properly.
7911e7
7911e7
%package devel
7911e7
Summary:          RPM macros for Adobe's CMap resources for character collections
7911e7
Requires:         %{name} = %{version}-%{release}
7911e7
Requires:         %{name}-deprecated = %{version}-%{release}
7911e7
7911e7
%description devel
7911e7
This package is useful for Fedora development purposes only. It installs RPM
7911e7
macros useful for building packages against %{name},
7911e7
as well as all the fonts contained in this font set.
7911e7
7911e7
# === BUILD INSTRUCTIONS ======================================================
7911e7
7911e7
# NOTE: This package provides only resource files, which are already
7911e7
#       "pre-compiled" to smallest size possible, but they still remain in
7911e7
#       postscript format as intended. That's why there is no %%build phase.
7911e7
7911e7
%prep
7911e7
%autosetup -n cmap-resources-%{version} -S git
7911e7
7911e7
%install
7911e7
%make_install prefix=%{_prefix}
7911e7
7911e7
# Generate the macro containing the root path to our mappings files:
7911e7
install -m 0755 -d %{buildroot}%{_rpmconfigdir}/macros.d
7911e7
7911e7
cat > %{buildroot}%{_rpmconfigdir}/macros.d/macros.%{name} << _EOF
7911e7
%%adobe_mappings_rootpath     %{_datadir}/adobe/resources/mapping/
7911e7
_EOF
7911e7
7911e7
# === PACKAGING INSTRUCTIONS ==================================================
7911e7
7911e7
%files
7911e7
%doc README.md VERSIONS.txt
7911e7
%license LICENSE.txt
7911e7
7911e7
# Necessary directories ownership (to remove them correctly when uninstalling):
7911e7
%dir %{_datadir}/adobe
7911e7
%dir %{_datadir}/adobe/resources
7911e7
%dir %{_datadir}/adobe/resources/mapping
7911e7
7911e7
%{_datadir}/adobe/resources/mapping/CNS1
7911e7
%{_datadir}/adobe/resources/mapping/GB1
7911e7
%{_datadir}/adobe/resources/mapping/Identity
7911e7
%{_datadir}/adobe/resources/mapping/Japan1
7911e7
%{_datadir}/adobe/resources/mapping/Korea1
7911e7
7911e7
%files deprecated
7911e7
%{_datadir}/adobe/resources/mapping/deprecated
7911e7
7911e7
%files devel
7911e7
%{_rpmconfigdir}/macros.d/macros.%{name}
7911e7
7911e7
# =============================================================================
7911e7
7911e7
%changelog
7911e7
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20171205-3
7911e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
7911e7
7911e7
* Wed Jan 03 2018 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 20171205-2
7911e7
- *-devel subpackage added
7911e7
7911e7
* Tue Jan 02 2018 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 20171205-1
7911e7
- Rebase to latest upstream version
7911e7
7911e7
* Thu Nov 09 2017 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 20171024-1
7911e7
- Rebase to latest upstream version
7911e7
7911e7
* Mon Sep 11 2017 David Kaspar [Dee'Kej] <dkaspar@redhat.com> - 20170901-1
7911e7
- Initial version of specfile