diff --git a/.gitignore b/.gitignore index 14eb9e9..20d0af8 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ /cldr-emoji-annotation-36.12.120191002_0.tar.gz /cldr-emoji-annotation-36.12.120200305_0.tar.gz /cldr-emoji-annotation-37.0_13.0_0_1.tar.gz +/cldr-emoji-annotation-37.0_13.0_0_2.tar.gz diff --git a/cldr-emoji-annotation.spec b/cldr-emoji-annotation.spec index e37ea41..d79ff7b 100644 --- a/cldr-emoji-annotation.spec +++ b/cldr-emoji-annotation.spec @@ -1,6 +1,6 @@ Name: cldr-emoji-annotation -Version: 37.0_13.0_0_1 -Release: 2%{?dist} +Version: 37.0_13.0_0_2 +Release: 1%{?dist} # Annotation files are in Unicode license Summary: Emoji annotation files in CLDR License: LGPLv2+ and Unicode @@ -10,10 +10,20 @@ Source0: https://github.com/fujiwarat/cldr-emoji-annotation/releases/download BuildRequires: autoconf BuildRequires: automake BuildArch: noarch +Requires: %{name}-dtd %description This package provides the emoji annotation file by language in CLDR. +%package dtd +Summary: DTD files of CLDR common +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description dtd +This package contains DTD files of CLDR common which are required by +cldr-emoji-annotations. + %package devel Summary: Files for development using cldr-annotations Requires: %{name} = %{version}-%{release} @@ -22,7 +32,7 @@ BuildArch: noarch %description devel This package contains the pkg-config files for development -when building programs that use cldr-annotations. +when building programs that use cldr-emoji-annotations. %prep @@ -31,21 +41,34 @@ when building programs that use cldr-annotations. %build #autoreconf -v -i autoreconf -v -i -%configure +%configure --enable-dtd make %{?_smp_mflags} %install make DESTDIR=$RPM_BUILD_ROOT install INSTALL="install -p" +%check +make check VERBOSE=1 + %files %doc AUTHORS README %license unicode-license.txt -%{_datadir}/unicode/ +%{_datadir}/unicode/cldr/common/annotations +%{_datadir}/unicode/cldr/common/annotationsDerived + +%files dtd +%dir %{_datadir}/unicode +%dir %{_datadir}/unicode/cldr +%dir %{_datadir}/unicode/cldr/common +%{_datadir}/unicode/cldr/common/dtd %files devel %{_datadir}/pkgconfig/*.pc %changelog +* Sat Aug 01 2020 Takao Fujiwara - 37.0_13.0_0_2-1 +- Add cldr-emoji-annotation-dtd sub package and make check + * Mon Jul 27 2020 Fedora Release Engineering - 37.0_13.0_0_1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild diff --git a/sources b/sources index 61c5145..7f48817 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (cldr-emoji-annotation-37.0_13.0_0_1.tar.gz) = 67e8845fd3b05f3a7ddf57d0c4b656297335cb5bca89c451f97d9b78dbee5d93cfbba551faf1352bb0600e7d7a269b588bb75ac12179677e2c04e06805ebe73c +SHA512 (cldr-emoji-annotation-37.0_13.0_0_2.tar.gz) = caf623be5e6f3e71a80ff1b85dfe7031beeb341d9a03d9d493537cdbd4c1cd801ceadf4932d63d3b267f81cc971604c411221c3eba756130f010d79d2efa15ec diff --git a/tests/runtest.sh b/tests/runtest.sh new file mode 100755 index 0000000..65ac483 --- /dev/null +++ b/tests/runtest.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +for dir in annotations annotationsDerived; do + for xml in /usr/share/unicode/cldr/common/$dir/*.xml; do + echo xmllint --noout --valid --postvalid $xml + xmllint --noout --valid --postvalid $xml + if [ $? -ne 0 ] ; then + echo "ERROR" + exit 1 + fi + done +done + diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..3b0cccf --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,16 @@ +- hosts: localhost + vars: + - artifacts: "{{ lookup('env', 'TEST_ARTIFACTS')|default('./artifacts', true) }}" + tags: + - classic + remote_user: root + roles: + - role: standard-test-basic + required_packages: + - cldr-emoji-annotation + - libxml2 + tests: + - runtest: + dir: . + run: ./runtest.sh +