From 5c19ad31b11167a42425e40cda0ab175e5e5c735 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 21:25:09 +0100 Subject: [PATCH] update to 40.0 [release 40.0-1mamba;Mon Dec 27 2021] --- cldr-emoji-annotation.spec | 54 ++++++++++++++++++++++++++++++-------- 1 file changed, 43 insertions(+), 11 deletions(-) diff --git a/cldr-emoji-annotation.spec b/cldr-emoji-annotation.spec index e026713..fb61c66 100644 --- a/cldr-emoji-annotation.spec +++ b/cldr-emoji-annotation.spec @@ -1,33 +1,60 @@ +%define gitver %(echo %version | cut -d. -f1) Name: cldr-emoji-annotation -Version: 37.0_13.0_0_1 +Version: 40.0 Release: 1mamba Summary: Emoji annotation files in CLDR Group: Applications/Fonts Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco -URL: http://www.unicode.org/repos/cldr/trunk/common/annotations/ -## GITSOURCE https://github.com/fujiwarat/cldr-emoji-annotation.git 36.12.120191002_0 -Source: https://github.com/fujiwarat/cldr-emoji-annotation.git/%{version}/cldr-emoji-annotation-%{version}.tar.bz2 +URL: https://home.unicode.org/basic-info/projects/#!/repos/cldr/trunk/common/annotations/ +Source: https://github.com/unicode-org/cldr.git/release-%{gitver}/cldr-%{version}.tar.bz2 License: Unicode ## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-END -BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Emoji annotation files in CLDR. %prep -%setup -q -./autogen.sh +%setup -q -n cldr-%{version} %build -%configure -%make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%makeinstall +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 %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -40,10 +67,15 @@ Emoji annotation files in CLDR. %{_datadir}/unicode/cldr/common/annotations/*.xml %dir %{_datadir}/unicode/cldr/common/annotationsDerived %{_datadir}/unicode/cldr/common/annotationsDerived/*.xml +%dir %{_datadir}/unicode/cldr/common/dtd +%{_datadir}/unicode/cldr/common/dtd/* %{_datadir}/pkgconfig/cldr-emoji-annotation.pc -%doc AUTHORS COPYING +%doc unicode-license.txt %changelog +* Mon Dec 27 2021 Silvan Calarco 40.0-1mamba +- update to 40.0 + * Sat Jul 18 2020 Silvan Calarco 37.0_13.0_0_1-1mamba - update to 37.0_13.0_0_1