diff --git a/cldr-emoji-annotation.spec b/cldr-emoji-annotation.spec index a9dbbfd..80f74c5 100644 --- a/cldr-emoji-annotation.spec +++ b/cldr-emoji-annotation.spec @@ -1,10 +1,10 @@ Name: cldr-emoji-annotation -Version: 36.12.120200305_0 +Version: 43.1 Release: 1 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/%{version}/%{name}-%{version}.tar.gz +URL: https://github.com/unicode-org/cldr +Source0: https://github.com/unicode-org/cldr/archive/refs/tags/release-43-1.zip#/cldr-release-43-1.zip BuildRequires: autoconf automake @@ -24,19 +24,43 @@ Files for development of cldr-emoji-annotation %package_help %prep -%autosetup -p1 +%autosetup -n cldr-release-43-1 -%build -autoreconf -v -i -%configure -%make_build %install -%make_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 + %files %defattr(-,root,root) -%doc AUTHORS +%doc README.md %license unicode-license.txt %{_datadir}/unicode/ @@ -46,9 +70,12 @@ autoreconf -v -i %files help %defattr(-,root,root) -%doc README +%doc README.md %changelog +* Wed Oct 18 2023 wulei - 43.1-1 +- Update to 43.1 + * Wed Jun 10 2020 zhujunhao - 36.12.120200305_0-1 - update to 36.12.120200305_0 diff --git a/cldr-release-43-1.zip b/cldr-release-43-1.zip new file mode 100644 index 0000000..ceb5e8b Binary files /dev/null and b/cldr-release-43-1.zip differ