diff --git a/.gitignore b/.gitignore index ebfb342..ca12bcf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ /UCD.zip -/unicode-ucd-6.0.0/ \ No newline at end of file +/Unihan.zip diff --git a/sources b/sources index 22b07f4..c14aeb0 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ 124d7b78504d8fa44052debb1e3254b1 UCD.zip +303b5e49b65aed9e4a184adc1a1c78f4 Unihan.zip diff --git a/unicode-ucd.spec b/unicode-ucd.spec index 7e5e9d3..13cdcd3 100644 --- a/unicode-ucd.spec +++ b/unicode-ucd.spec @@ -4,7 +4,7 @@ Name: unicode-ucd Version: 9.0.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Unicode Character Database # 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 # http://www.unicode.org/terms_of_use.html referenced in ReadMe.txt redirects to: Source1: http://www.unicode.org/copyright.html +Source2: http://www.unicode.org/Public/zipped/%{version}/Unihan.zip BuildArch: noarch %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. +%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 %setup -q -c @@ -34,6 +45,7 @@ grep -q "%{version}" ReadMe.txt || (echo "zip file seems not %{version}" ; exit %install mkdir -p %{buildroot}%{ucddir} cp -ar . %{buildroot}%{ucddir} +cp -p %{SOURCE2} %{buildroot}%{ucddir} cp -p %{SOURCE1} . @@ -42,9 +54,16 @@ cp -p %{SOURCE1} . %doc copyright.html %dir %{unicodedir} %{ucddir} +%exclude %{ucddir}/Unihan.zip + +%files unihan +%{ucddir}/Unihan.zip %changelog +* Tue Jul 26 2016 Jens Petersen - 9.0.0-2 +- add unihan subpackage (#1357769) + * Tue Jun 21 2016 Jens Petersen - 9.0.0-1 - update to Unicode 9.0