Add cldr-emoji-annotation-dtd sub package and make check

This commit is contained in:
Takao Fujiwara 2020-08-01 10:22:47 +09:00
parent 4c884bfc02
commit 56a045ae10
5 changed files with 59 additions and 6 deletions

1
.gitignore vendored
View File

@ -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

View File

@ -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 <tfujiwar@gmail.com> - 37.0_13.0_0_2-1
- Add cldr-emoji-annotation-dtd sub package and make check
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 37.0_13.0_0_1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

View File

@ -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

13
tests/runtest.sh Executable file
View File

@ -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

16
tests/tests.yml Normal file
View File

@ -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