update to 40.0 [release 40.0-1mamba;Mon Dec 27 2021]

This commit is contained in:
Silvan Calarco 2024-01-05 21:25:09 +01:00
parent c79c0e1d73
commit 5c19ad31b1

View File

@ -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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 40.0-1mamba
- update to 40.0
* Sat Jul 18 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 37.0_13.0_0_1-1mamba
- update to 37.0_13.0_0_1