cldr-emoji-annotation/cldr-emoji-annotation.spec

84 lines
1.8 KiB
RPMSpec
Raw Normal View History

2019-12-17 10:04:17 +08:00
Name: cldr-emoji-annotation
2023-10-18 18:19:10 +08:00
Version: 43.1
2020-06-20 17:30:19 +08:00
Release: 1
2019-12-17 10:04:17 +08:00
Summary: Emoji annotation files in CLDR
License: LGPLv2+ and Unicode
2023-10-18 18:19:10 +08:00
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
2019-12-17 10:04:17 +08:00
BuildRequires: autoconf automake
BuildArch: noarch
%description
This package copies CLDR annotation files for the versioned tarball
%package devel
Summary: Files for development of cldr-emoji-annotation
Requires: %{name} = %{version}-%{release} pkgconfig
BuildArch: noarch
%description devel
Files for development of cldr-emoji-annotation
%package_help
%prep
2023-10-18 18:19:10 +08:00
%autosetup -n cldr-release-43-1
2019-12-17 10:04:17 +08:00
%install
2023-10-18 18:19:10 +08:00
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
2019-12-17 10:04:17 +08:00
%files
%defattr(-,root,root)
2023-10-18 18:19:10 +08:00
%doc README.md
2019-12-17 10:04:17 +08:00
%license unicode-license.txt
%{_datadir}/unicode/
%files devel
%defattr(-,root,root)
%{_datadir}/pkgconfig/*.pc
%files help
%defattr(-,root,root)
2023-10-18 18:19:10 +08:00
%doc README.md
2019-12-17 10:04:17 +08:00
%changelog
2023-10-18 18:19:10 +08:00
* Wed Oct 18 2023 wulei <wu_lei@hoperun.com> - 43.1-1
- Update to 43.1
2020-06-20 17:30:19 +08:00
* Wed Jun 10 2020 zhujunhao <zhujunhao8@huawei.com> - 36.12.120200305_0-1
- update to 36.12.120200305_0
2019-12-17 10:04:17 +08:00
* Fri Dec 13 2019 openEuler Buildteam <buildteam@openeuler.org> - 33.1.0_0-3
- Package init