From 4ab0268f3cec3947cc52c4c406760baa0c4d34ec Mon Sep 17 00:00:00 2001 From: Takao Fujiwara Date: Fri, 25 Sep 2020 20:32:49 +0900 Subject: [PATCH] Dump release-38-beta - Move source URL from github.com/fujiwarat/cldr-emoji-annotation to https://github.com/unicode-org/cldr --- .gitignore | 1 + cldr-emoji-annotation.spec | 73 ++++++++++++++++++++++++++++++-------- sources | 2 +- 3 files changed, 61 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index a9b96cf..61ece5f 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ /cldr-emoji-annotation-37.0_13.0_0_1.tar.gz /cldr-emoji-annotation-37.0_13.0_0_2.tar.gz /cldr-emoji-annotation-38-alpha1.0_13.0_0_1.tar.gz +/release-38-beta.tar.gz diff --git a/cldr-emoji-annotation.spec b/cldr-emoji-annotation.spec index 91c579a..41646fe 100644 --- a/cldr-emoji-annotation.spec +++ b/cldr-emoji-annotation.spec @@ -1,13 +1,14 @@ -%global file_version 38-alpha1.0_13.0_0_1 +%global file_version release-38-beta Name: cldr-emoji-annotation -Version: 38.0_13.0_0_1~alpha1 +Version: 38~beta Release: 1%{?dist} +Epoch: 1 # Annotation files are in Unicode license Summary: Emoji annotation files in CLDR -License: LGPLv2+ and Unicode -URL: https://github.com/fujiwarat/cldr-emoji-annotation -Source0: https://github.com/fujiwarat/cldr-emoji-annotation/releases/download/%{file_version}/%{name}-%{file_version}.tar.gz +License: Unicode +URL: https://unicode.org/cldr +Source0: https://github.com/unicode-org/cldr/archive/%{file_version}.tar.gz #Patch0: %%{name}-HEAD.patch BuildRequires: autoconf BuildRequires: automake @@ -38,22 +39,61 @@ when building programs that use cldr-emoji-annotations. %prep -%autosetup -n %{name}-%{file_version} +%autosetup -n cldr-%{file_version} -%build -#autoreconf -v -i -autoreconf -v -i -%configure --enable-dtd -make %{?_smp_mflags} %install -make DESTDIR=$RPM_BUILD_ROOT install INSTALL="install -p" +pushd $PWD +ANNOTATION_DIR=common/annotations +CLDR_DIR=%{_datadir}/unicode/cldr/$ANNOTATION_DIR +pushd $ANNOTATION_DIR +for xml in *.xml ; do + install -pm 644 -D $xml $RPM_BUILD_ROOT$CLDR_DIR/$xml +done +popd + +ANNOTATION_DIR=common/annotationsDerived +CLDR_DIR=%{_datadir}/unicode/cldr/$ANNOTATION_DIR +pushd $ANNOTATION_DIR +for xml in *.xml ; do + install -pm 644 -D $xml $RPM_BUILD_ROOT$CLDR_DIR/$xml +done +popd + +DTD_DIR=common/dtd +CLDR_DIR=%{_datadir}/unicode/cldr/$DTD_DIR +pushd $DTD_DIR +for dtd in *.dtd ; do + install -pm 644 -D $dtd $RPM_BUILD_ROOT$CLDR_DIR/$dtd +done +popd + +install -pm 755 -d $RPM_BUILD_ROOT%{_datadir}/pkgconfig +cat >> $RPM_BUILD_ROOT%{_datadir}/pkgconfig/%{name}.pc <<_EOF +prefix=/usr + +Name: cldr-annotations +Description: annotation files in CLDR +Version: %{version} +_EOF + %check -make check VERBOSE=1 +ANNOTATION_DIR=common/annotations +CLDR_DIR=%{_datadir}/unicode/cldr/$ANNOTATION_DIR +for xml in $ANNOTATION_DIR/*.xml ; do + xmllint --noout --valid --postvalid $xml +done + +ANNOTATION_DIR=common/annotationsDerived +CLDR_DIR=%{_datadir}/unicode/cldr/$ANNOTATION_DIR +for xml in $ANNOTATION_DIR/*.xml ; do + xmllint --noout --valid --postvalid $xml +done + %files -%doc AUTHORS README +%doc CONTRIBUTING.md README.md readme.html %license unicode-license.txt %{_datadir}/unicode/cldr/common/annotations %{_datadir}/unicode/cldr/common/annotationsDerived @@ -68,6 +108,11 @@ make check VERBOSE=1 %{_datadir}/pkgconfig/*.pc %changelog +* Fri Sep 25 2020 Takao Fujiwara - 38~beta-1 +- Dump release-38-beta +- Move source URL from github.com/fujiwarat/cldr-emoji-annotation + to https://github.com/unicode-org/cldr + * Fri Sep 11 2020 Takao Fujiwara - 38.0_13.0_0_1~alpha1-1 - Dump release-38-alpha1 diff --git a/sources b/sources index 0efa6f5..ab6bedd 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (cldr-emoji-annotation-38-alpha1.0_13.0_0_1.tar.gz) = 39eb37a3ec1b2298e62e3022eba8e8463cf65ae0af6c90d89849ff4e7550d589e927b61e344f7f6842b427e6c237c4947d271baa3ee1ef1b060908396682fc2d +SHA512 (release-38-beta.tar.gz) = fb53313926458e4449e561dece1e79963feaeda2cabc190d0c3df8556c60b9fc10e6a57dcb2120f56a215834a0adcb9d48221e6c87cd1b8397abdd868b92f1b3