Package init

This commit is contained in:
dogsheng 2019-12-25 15:40:59 +08:00
parent 4ca882cdd6
commit b5d47c6127
2 changed files with 78 additions and 0 deletions

78
adobe-mappings-cmap.spec Normal file
View File

@ -0,0 +1,78 @@
Name: adobe-mappings-cmap
Summary: CMap resources for Adobe's character collections
Version: 20190730
Release: 2
License: BSD
URL: https://www.adobe.com/
Source: https://github.com/adobe-type-tools/cmap-resources/archive/cmap-resources-%{version}.tar.gz
BuildArch: noarch
Requires: %{name}-lang = %{version}-%{release}
%description
This open source project provides the latest CMap resources for Adobes public character collections.
CMap (Character Map) resources are used to unidirectionally map character codes,
such as a Unicode encoding form, to CIDs (Characters IDs, meaning glyphs) of a CIDFont resource.
%package devel
Summary: RPM macros for Adobe's CMap resources for character collections
Requires: %{name} = %{version}-%{release}
%description devel
This package installs RPM macros useful for building packages against adobe-mappings-cmap,as well as all the fonts contained in this font set.
%package_help
%package lang
Summary: RPM macros for Adobe's CMap resources for character collectionsa
Requires: %{name} = %{version}-%{release}
provides: %{name}-deprecated
Obsoletes: %{name}-deprecated
%description lang
This package provides localization support such as language and time zone.
%prep
%autosetup -n cmap-resources-%{version}
%install
%make_install prefix=%{_prefix}
install -m 0755 -d %{buildroot}%{_rpmconfigdir}/macros.d
cat > %{buildroot}%{_rpmconfigdir}/macros.d/macros.%{name} << _EOF
%%adobe_mappings_rootpath %{_datadir}/adobe/resources/mapping/
_EOF
%files
%license LICENSE.md
%doc README.md VERSIONS.txt
%files devel
%{_rpmmacrodir}/macros.adobe-mappings-cmap
%files help
%doc README.md VERSIONS.txt
%files lang
%dir %{_datadir}/adobe
%dir %{_datadir}/adobe/resources
%dir %{_datadir}/adobe/resources/mapping
%{_datadir}/adobe/resources/mapping/CNS1
%{_datadir}/adobe/resources/mapping/KR
%{_datadir}/adobe/resources/mapping/GB1
%{_datadir}/adobe/resources/mapping/Korea1
%{_datadir}/adobe/resources/mapping/Japan1
%{_datadir}/adobe/resources/mapping/deprecated
%{_datadir}/adobe/resources/mapping/Identity
%changelog
* Tue Sep 4 2019 openEuler Buildteam <buildteam@openeuler.org> -20190730-2
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:Increase the ability to provide adobe-mappings-cmap-deprecated
* Tue Sep 3 2019 openEuler Buildteam <buildteam@openeuler.org> -20190730-1
- Package init

Binary file not shown.