From f743e405675133c7a64c29580b3788125d29ecf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= Date: Wed, 14 Oct 2020 22:54:26 +0200 Subject: [PATCH] RHEL 9.0.0 Alpha bootstrap The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/cldr-emoji-annotation#9c0e9952528b95756b29a37fb2442a5b9252a0cc --- .gitignore | 19 +++ cldr-emoji-annotation-HEAD.patch | 0 cldr-emoji-annotation.spec | 195 +++++++++++++++++++++++++++++++ sources | 1 + tests/runtest.sh | 13 +++ tests/tests.yml | 16 +++ 6 files changed, 244 insertions(+) create mode 100644 cldr-emoji-annotation-HEAD.patch create mode 100644 cldr-emoji-annotation.spec create mode 100644 sources create mode 100755 tests/runtest.sh create mode 100644 tests/tests.yml diff --git a/.gitignore b/.gitignore index e69de29..c864ce9 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,19 @@ +/cldr-emoji-annotation-30.0.3_2.tar.gz +/cldr-emoji-annotation-31.0.0_1.tar.gz +/cldr-emoji-annotation-31.0.1_1.tar.gz +/cldr-emoji-annotation-31.90.0_1.tar.gz +/cldr-emoji-annotation-32.0.0_1.tar.gz +/cldr-emoji-annotation-32.90.0_1.tar.gz +/cldr-emoji-annotation-33.0.0_1.tar.gz +/cldr-emoji-annotation-33.0.0_2.tar.gz +/cldr-emoji-annotation-33.1.0_0.tar.gz +/cldr-emoji-annotation-34.12.14891_0.tar.gz +/cldr-emoji-annotation-35.12.14971_0.tar.gz +/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 +/cldr-emoji-annotation-38-alpha1.0_13.0_0_1.tar.gz +/release-38-beta.tar.gz +/cldr-release-38-beta.tar.gz +/cldr-release-38-beta2.tar.gz diff --git a/cldr-emoji-annotation-HEAD.patch b/cldr-emoji-annotation-HEAD.patch new file mode 100644 index 0000000..e69de29 diff --git a/cldr-emoji-annotation.spec b/cldr-emoji-annotation.spec new file mode 100644 index 0000000..371493d --- /dev/null +++ b/cldr-emoji-annotation.spec @@ -0,0 +1,195 @@ +%global file_version release-38-beta2 + +Name: cldr-emoji-annotation +Version: 38~beta2 +Release: 1%{?dist} +Epoch: 1 +# Annotation files are in Unicode license +Summary: Emoji annotation files in CLDR +License: Unicode +URL: https://unicode.org/cldr +Source0: https://github.com/unicode-org/cldr/archive/%{file_version}.tar.gz#/cldr-%{file_version}.tar.gz +#Patch0: %%{name}-HEAD.patch +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} = %{epoch}:%{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} = %{epoch}:%{version}-%{release} +Requires: pkgconfig +BuildArch: noarch + +%description devel +This package contains the pkg-config files for development +when building programs that use cldr-emoji-annotations. + + +%prep +%autosetup -n cldr-%{file_version} + + +%install +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-emoji-annotations +Description: annotation files in CLDR +Version: %{version} +_EOF + + +%check +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 CONTRIBUTING.md README.md readme.html +%license unicode-license.txt +%{_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 +* Wed Oct 14 2020 Takao Fujiwara - 1:38~beta2-1 +- Bump release-38-beta2 + +* Mon Sep 28 2020 Takao Fujiwara - 1:38~beta-3 +- Fix #1882930 - Add Epoch in Requires + +* Fri Sep 25 2020 Takao Fujiwara - 1:38~beta-2 +- Fix typo in cldr-emoji-annotation.pc + +* Fri Sep 25 2020 Takao Fujiwara - 1: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 + +* 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 + +* Fri Jun 26 2020 Takao Fujiwara - 37.0_13.0_0_1-1 +- Integrated Emoji 13.0 CLDR 37.0 + +* Wed Apr 22 2020 Takao Fujiwara - 36.12.120200305_0-1 +- Integrated Emoji 12.1 CLDR 36.1 + +* Tue Jan 28 2020 Fedora Release Engineering - 36.12.120191002_0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Oct 25 2019 Takao Fujiwara - 36.12.120191002_0-1 +- Integrated Emoji 12.1 CLDR 36 + +* Wed Jul 24 2019 Fedora Release Engineering - 35.12.14971_0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Apr 04 2019 Takao Fujiwara - 35.12.14971_0-1 +- Integrated release-35 + +* Tue Feb 26 2019 Takao Fujiwara - 34.12.14891_0-1 +- Integrated release-35-alpha2 + +* Thu Jan 31 2019 Fedora Release Engineering - 33.1.0_0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Jul 12 2018 Fedora Release Engineering - 33.1.0_0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Jul 05 2018 Takao Fujiwara - 33.1.0_0-1 +- Integrated release 33-1 + +* Wed Jun 20 2018 Takao Fujiwara - 33.0.0_2-1 +- Changed COPYING + +* Thu Apr 12 2018 Takao Fujiwara - 33.0.0_1-1 +- Integrated release 33 + +* Fri Mar 09 2018 Takao Fujiwara - 32.90.0_1-2 +- Removed gcc dependency + +* Wed Mar 07 2018 Takao Fujiwara - 32.90.0_1-1 +- Integrated release-33-alpha + +* Wed Feb 07 2018 Fedora Release Engineering - 32.0.0_1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Nov 30 2017 Takao Fujiwara - 32.0.0_1-1 +- Integrated release 32 + +* Thu Sep 28 2017 Takao Fujiwara - 31.90.0_1-1 +- Integrated release-32-alpha + +* Wed Jul 26 2017 Fedora Release Engineering - 31.0.1_1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Apr 21 2017 Takao Fujiwara - 31.0.1_1-1 +- Integrated release-31.0.1 + +* Wed Mar 22 2017 Takao Fujiwara - 31.0.0_1-1 +- Integrated release-31 + +* Mon Mar 06 2017 Takao Fujiwara - 30.0.3_2-1 +- Initial implementation diff --git a/sources b/sources new file mode 100644 index 0000000..1bf382f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (cldr-release-38-beta2.tar.gz) = 691294f655209cda9e07706480a29c65e55768e5120040de6b9a6c1626e09033572db9e714a0830e0651d7400d74ad49fef4e4bc65e0b0dca89181ce930bc58f 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 +