1 |
Name: cldr-emoji-annotation |
2 |
Version: 45 |
3 |
Release: %mkrel 1 |
4 |
# Annotation files are in Unicode license |
5 |
Summary: Emoji annotation files in CLDR |
6 |
Group: System/Internationalization |
7 |
License: LGPLv2+ and Unicode |
8 |
URL: https://cldr.unicode.org/ |
9 |
Source0: https://github.com/unicode-org/cldr/archive/release-%{version}/cldr-release-%{version}.tar.gz |
10 |
BuildArch: noarch |
11 |
Requires: %{name}-dtd >= %{version}-%{release} |
12 |
|
13 |
%description |
14 |
This package provides the emoji annotation file by language in CLDR. |
15 |
|
16 |
%package dtd |
17 |
Summary: DTD files of CLDR common |
18 |
Group: System/Internationalization |
19 |
|
20 |
%description dtd |
21 |
This package contains DTD files of CLDR common which are required by |
22 |
cldr-emoji-annotations. |
23 |
|
24 |
%package devel |
25 |
Summary: Files for development using cldr-annotations |
26 |
Group: System/Internationalization |
27 |
Requires: %{name} >= %{version}-%{release} |
28 |
Requires: pkgconfig |
29 |
|
30 |
%description devel |
31 |
This package contains the pkg-config files for development |
32 |
when building programs that use cldr-annotations. |
33 |
|
34 |
%prep |
35 |
%autosetup -n cldr-release-%{version} |
36 |
|
37 |
%build |
38 |
#NOTHING TO DO!!! |
39 |
|
40 |
%install |
41 |
pushd $PWD |
42 |
ANNOTATION_DIR=common/annotations |
43 |
CLDR_DIR=%{_datadir}/unicode/cldr/$ANNOTATION_DIR |
44 |
pushd $ANNOTATION_DIR |
45 |
for xml in *.xml ; do |
46 |
install -pm 644 -D $xml $RPM_BUILD_ROOT$CLDR_DIR/$xml |
47 |
done |
48 |
popd |
49 |
|
50 |
ANNOTATION_DIR=common/annotationsDerived |
51 |
CLDR_DIR=%{_datadir}/unicode/cldr/$ANNOTATION_DIR |
52 |
pushd $ANNOTATION_DIR |
53 |
for xml in *.xml ; do |
54 |
install -pm 644 -D $xml $RPM_BUILD_ROOT$CLDR_DIR/$xml |
55 |
done |
56 |
popd |
57 |
|
58 |
DTD_DIR=common/dtd |
59 |
CLDR_DIR=%{_datadir}/unicode/cldr/$DTD_DIR |
60 |
pushd $DTD_DIR |
61 |
for dtd in *.dtd ; do |
62 |
install -pm 644 -D $dtd $RPM_BUILD_ROOT$CLDR_DIR/$dtd |
63 |
done |
64 |
popd |
65 |
|
66 |
install -pm 755 -d $RPM_BUILD_ROOT%{_datadir}/pkgconfig |
67 |
cat >> $RPM_BUILD_ROOT%{_datadir}/pkgconfig/%{name}.pc <<_EOF |
68 |
prefix=/usr |
69 |
|
70 |
Name: cldr-emoji-annotations |
71 |
Description: annotation files in CLDR |
72 |
Version: %{version} |
73 |
_EOF |
74 |
|
75 |
%files |
76 |
%doc README.md |
77 |
%license LICENSE |
78 |
%dir %{_datadir}/unicode |
79 |
%dir %{_datadir}/unicode/cldr |
80 |
%dir %{_datadir}/unicode/cldr/common |
81 |
%{_datadir}/unicode/cldr/common/annotations/ |
82 |
%{_datadir}/unicode/cldr/common/annotationsDerived/ |
83 |
|
84 |
%files dtd |
85 |
%{_datadir}/unicode/cldr/common/dtd/ |
86 |
|
87 |
%files devel |
88 |
%{_datadir}/pkgconfig/*.pc |