add unihan subpackage (#1357769)

This commit is contained in:
Jens Petersen 2016-07-26 10:45:11 +09:00
parent edaaa058dd
commit 32802022cc
3 changed files with 22 additions and 2 deletions

2
.gitignore vendored
View File

@ -1,2 +1,2 @@
/UCD.zip /UCD.zip
/unicode-ucd-6.0.0/ /Unihan.zip

View File

@ -1 +1,2 @@
124d7b78504d8fa44052debb1e3254b1 UCD.zip 124d7b78504d8fa44052debb1e3254b1 UCD.zip
303b5e49b65aed9e4a184adc1a1c78f4 Unihan.zip

View File

@ -4,7 +4,7 @@
Name: unicode-ucd Name: unicode-ucd
Version: 9.0.0 Version: 9.0.0
Release: 1%{?dist} Release: 2%{?dist}
Summary: Unicode Character Database Summary: Unicode Character Database
# https://fedoraproject.org/wiki/Licensing/MIT#Modern_Style_without_sublicense_.28Unicode.29 # https://fedoraproject.org/wiki/Licensing/MIT#Modern_Style_without_sublicense_.28Unicode.29
@ -13,6 +13,7 @@ URL: http://www.unicode.org/ucd/
Source0: http://www.unicode.org/Public/zipped/%{version}/UCD.zip Source0: http://www.unicode.org/Public/zipped/%{version}/UCD.zip
# http://www.unicode.org/terms_of_use.html referenced in ReadMe.txt redirects to: # http://www.unicode.org/terms_of_use.html referenced in ReadMe.txt redirects to:
Source1: http://www.unicode.org/copyright.html Source1: http://www.unicode.org/copyright.html
Source2: http://www.unicode.org/Public/zipped/%{version}/Unihan.zip
BuildArch: noarch BuildArch: noarch
%description %description
@ -21,6 +22,16 @@ Unicode character properties and related data. It also includes data files
containing test data for conformance to several important Unicode algorithms. containing test data for conformance to several important Unicode algorithms.
%package unihan
Summary: Unicode Han Database
# for the license and dirs
Requires: %{name} = %{version}-%{release}
%description unihan
This package contains Unihan.zip which contains the data files for the Unified
Han database of Hanzi/Kanji/Hanja Chinese characters.
%prep %prep
%setup -q -c %setup -q -c
@ -34,6 +45,7 @@ grep -q "%{version}" ReadMe.txt || (echo "zip file seems not %{version}" ; exit
%install %install
mkdir -p %{buildroot}%{ucddir} mkdir -p %{buildroot}%{ucddir}
cp -ar . %{buildroot}%{ucddir} cp -ar . %{buildroot}%{ucddir}
cp -p %{SOURCE2} %{buildroot}%{ucddir}
cp -p %{SOURCE1} . cp -p %{SOURCE1} .
@ -42,9 +54,16 @@ cp -p %{SOURCE1} .
%doc copyright.html %doc copyright.html
%dir %{unicodedir} %dir %{unicodedir}
%{ucddir} %{ucddir}
%exclude %{ucddir}/Unihan.zip
%files unihan
%{ucddir}/Unihan.zip
%changelog %changelog
* Tue Jul 26 2016 Jens Petersen <petersen@redhat.com> - 9.0.0-2
- add unihan subpackage (#1357769)
* Tue Jun 21 2016 Jens Petersen <petersen@redhat.com> - 9.0.0-1 * Tue Jun 21 2016 Jens Petersen <petersen@redhat.com> - 9.0.0-1
- update to Unicode 9.0 - update to Unicode 9.0