Package cldr-emoji-annotation: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | %def_disable snapshot %define ver_major 45 %define ver_minor %nil %define tag_ver release-%ver_major #-%ver_minor %def_enable check Name: cldr-emoji-annotation Version: %ver_major #.%ver_minor Release: alt1 # Annotation files are in Unicode license Summary: Emoji annotation files in CLDR Group: Development/Other License: LGPL-2.0-or-later and Unicode Url: https://github.com/unicode-org/cldr %if_disabled snapshot Source: %url/archive/%tag_ver.zip %else Vcs: https://github.com/unicode-org/cldr.git Source: cldr-%version.tar %endif BuildArch: noarch BuildRequires: unzip xmllint %description This package provides the emoji annotation files by language in CLDR. See http://cldr.unicode.org/translation/short-names-and-keywords %package devel Summary: Files for development using cldr-annotations Group: Development/Other Requires: %name = %EVR %description devel This package contains the pkg-config files for development when building programs that use cldr-annotations. %prep %setup -n cldr-%{?_disable_snapshot:%tag_ver}%{?_enable_snapshot:%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 %buildroot$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 %buildroot$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 %buildroot$CLDR_DIR/$dtd done popd install -pm 755 -d %buildroot%_datadir/pkgconfig cat >> %buildroot%_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 %_datadir/unicode/cldr/common/annotations %_datadir/unicode/cldr/common/annotationsDerived %dir %_datadir/unicode/cldr %dir %_datadir/unicode/cldr/common %_datadir/unicode/cldr/common/dtd %doc README.md readme.html %doc docs %files devel %_datadir/pkgconfig/*.pc %changelog * Sun Apr 21 2024 Yuri N. Sedunov <aris@altlinux.org> 45-alt1 - 45 * Wed Dec 13 2023 Yuri N. Sedunov <aris@altlinux.org> 44.1-alt1 - 44.1 * Tue Oct 31 2023 Yuri N. Sedunov <aris@altlinux.org> 44-alt1 - updated to release-44-1-gfa9259fb6d * Thu Jun 22 2023 Yuri N. Sedunov <aris@altlinux.org> 43.1-alt1 - 43.1 * Sat Apr 15 2023 Yuri N. Sedunov <aris@altlinux.org> 43-alt1 - 43 * Thu Nov 17 2022 Yuri N. Sedunov <aris@altlinux.org> 42-alt1 - 42 * Mon Mar 14 2022 Yuri N. Sedunov <aris@altlinux.org> 40.0-alt1 - 40.0 (adapted fc spec) * Tue Mar 17 2020 Yuri N. Sedunov <aris@altlinux.org> 36.12.120191002_0-alt1 - 36.12.120191002_0 * Thu Aug 22 2019 Yuri N. Sedunov <aris@altlinux.org> 35.12.14971_0-alt1 - first build for Sisyphus |