Blame SPECS/adobe-mappings-cmap.spec

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