unicode-ucd/unicode-ucd.spec
OBS User mrdocs dafd010d00 Accepting request 442451 from GNOME:Next
New package, needed for future updates of gucharmap, please fwd to Factory

OBS-URL: https://build.opensuse.org/request/show/442451
OBS-URL: https://build.opensuse.org/package/show/M17N/unicode-ucd?expand=0&rev=1
2016-12-02 03:24:57 +00:00

78 lines
2.3 KiB
RPMSpec

#
# spec file for package unicode-ucd
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# For other future directories from http://www.unicode.org/Public
%global unicodedir %{_datadir}/unicode
%global ucddir %{unicodedir}/ucd
Name: unicode-ucd
Version: 9.0.0
Release: 0
License: MIT
Summary: Unicode Character Database
Url: http://www.unicode.org/ucd/
Group: System/Library
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
BuildRequires: unzip
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The Unicode Character Database (UCD) consists of a number of data files listing
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
grep -q "%{version}" ReadMe.txt || (echo "zip file seems not %{version}" ; exit 1)
%build
%{nil}
%install
mkdir -p %{buildroot}%{ucddir}
cp -ar . %{buildroot}%{ucddir}
cp -p %{SOURCE2} %{buildroot}%{ucddir}
cp -p %{SOURCE1} .
%files
%defattr(-,root,root)
%doc copyright.html
%dir %{unicodedir}
%{ucddir}
%exclude %{ucddir}/Unihan.zip
%files unihan
%{ucddir}/Unihan.zip
%changelog