Blame SPECS/adobe-mappings-cmap.spec

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