Пакет libgweather4.0: 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 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 | %def_disable snapshot %define _libexecdir %_prefix/libexec %define _name libgweather %define ver_major 4.4 %define beta %nil %define api_ver_major 4 %define api_ver 4.0 %define xdg_name org.gnome.GWeather%api_ver_major %def_enable new_russia %def_disable soup2 %def_enable introspection %def_enable vala %def_enable gtk_doc %def_enable check # libgweather test suite fails offline, required https://www.aviationweather.gov %def_disable online_check Name: %_name%api_ver Version: %ver_major.2 Release: alt1.1%beta Summary: A library for weather information Group: System/Libraries License: GPLv3 Url: https://wiki.gnome.org/Projects/LibGWeather %if_disabled snapshot Source: %gnome_ftp/%_name/%ver_major/%_name-%version%beta.tar.xz %else Source: %_name-%version%beta.tar %endif %{?_enable_new_russia: # Simferopol, Sevastopol & Kerch, Donetsk, Mariupol, Lugansk, # Severodonetsk, Lisichansk, Zaporozhye, Herson ... Patch10: %_name-4.4.2-alt-Novorossia.patch Patch11: %_name-4.4.2-alt-Novorossia-po-locations.patch} %define glib_ver 2.68 %define soup2_ver 2.44 %define soup_api_ver 3.0 %define soup3_ver 2.99.2 %define gir_ver 0.9.5 %define vala_ver 0.21.1 %define geocode_ver 3.26.3 BuildRequires(pre): rpm-build-gnome rpm-macros-meson BuildRequires: meson BuildRequires: libgio-devel >= %glib_ver libxml2-devel pkgconfig(json-glib-1.0) BuildRequires: xsltproc perl-XML-Parser xml-utils gzip BuildRequires: python3-module-pygobject3 python3-module-pylint %{?_disable_soup2:BuildRequires: pkgconfig(libsoup-3.0) >= %soup3_ver pkgconfig(geocode-glib-2.0) >= %geocode_ver} %{?_enable_soup2:BuildRequires: libsoup-devel >= %soup2_ver pkgconfig(geocode-glib-1.0)} %{?_enable_introspection:BuildRequires(pre): rpm-build-gir BuildRequires: gobject-introspection-devel >= %gir_ver libgtk+3-gir-devel} %{?_enable_vala:BuildRequires(pre): rpm-build-vala BuildRequires: vala-tools >= %vala_ver} %{?_enable_gtk_doc:BuildRequires: gi-docgen} %description libgweather is a library to access weather information from online services for numerous locations. %package data Summary: Locations data for %name Group: System/Libraries BuildArch: noarch %description data libgweather is a library to access weather information from online services for numerous locations. This package contains locations development data for %name. %package devel Summary: Development files for %name Group: Development/C Requires: %name = %EVR Requires: %name-data = %EVR %description devel The %name-devel package contains libraries and header files for developing applications that use %name. %package devel-doc Summary: Development documentation for %name Group: Development/Documentation BuildArch: noarch Conflicts: %name-devel < %EVR %description devel-doc The %name-devel-doc package contains documentation for developing applications that use %name. %package gir Summary: GObject introspection data for the %name library Group: System/Libraries Requires: %name = %EVR %description gir GObject introspection data for the %name library %package gir-devel Summary: GObject introspection devel data for the %name library Group: Development/Other BuildArch: noarch Requires: %name-gir = %EVR Requires: %name-devel = %EVR %description gir-devel GObject introspection devel data for the %name library %package vala Summary: Vala language bindings for the %name library Group: Development/Other BuildArch: noarch Requires: %name-devel = %EVR %description vala This package provides Vala language bindings for the %name library. %prep %setup -n %_name-%version%beta %{?_enable_new_russia: %patch10 -b .NR %patch11 -b .NR} sed -i "s|'\(pylint\)'|'\1.py3'|" meson.build %build # for tm.tm_gmtoff %add_optflags -D_GNU_SOURCE %meson \ %{?_enable_gtk_doc:-Dgtk_doc=true} \ %{?_disable_vala:-Denable_vala=false} \ %{?_enable_soup2:-Dsoup2=true} %nil %{?_enable_new_russia:%meson_build %_name-%api_ver-locations-pot %_name-%api_ver-update-po} %meson_build %install %meson_install %find_lang --output=%name.lang %_name-%api_ver %_name-%api_ver-locations %check %__meson_test -v --print-errorlogs %{?_disable_online_check:--suite lint} %files -f %name.lang %dir %_libdir/%_name-%api_ver_major %_libdir/%_name-%api_ver_major/Locations.bin %_libdir/%_name-%api_ver_major.so.* %_datadir/glib-2.0/schemas/%xdg_name.enums.xml %_datadir/glib-2.0/schemas/%xdg_name.gschema.xml %doc NEWS README* %files devel %_includedir/%_name-%api_ver %_libdir/%_name-%api_ver_major.so %_pkgconfigdir/* %files data %dir %_datadir/%_name-%api_ver_major %_datadir/%_name-%api_ver_major/Locations.xml %_datadir/%_name-%api_ver_major/locations.dtd %if_enabled gtk_doc %files devel-doc %_datadir/doc/libgweather-%api_ver/ %endif %if_enabled introspection %files gir %_typelibdir/GWeather-%api_ver.typelib %files gir-devel %_girdir/GWeather-%api_ver.gir %endif %if_enabled vala %files vala %_vapidir/gweather%api_ver_major.vapi %_vapidir/gweather%api_ver_major.deps %endif %changelog * Sun Mar 24 2024 Yuri N. Sedunov <aris@altlinux.org> 4.4.2-alt1.1 - updated Novorossia patches * Thu Mar 21 2024 Yuri N. Sedunov <aris@altlinux.org> 4.4.2-alt1 - 4.4.2 * Tue Feb 27 2024 Yuri N. Sedunov <aris@altlinux.org> 4.4.0-alt1.2 - data subpackage doesn't required for library to work * Tue Feb 27 2024 Yuri N. Sedunov <aris@altlinux.org> 4.4.0-alt1.1 - data is required for library to work * Sat Sep 16 2023 Yuri N. Sedunov <aris@altlinux.org> 4.4.0-alt1 - 4.4.0 * Mon Sep 04 2023 Yuri N. Sedunov <aris@altlinux.org> 4.3.2-alt1 - 4.3.2 - more fixes for new-old regions * Sun Dec 18 2022 Yuri N. Sedunov <aris@altlinux.org> 4.2.0-alt2 - fixed Simferopol and Donetsk locations * Tue Sep 20 2022 Yuri N. Sedunov <aris@altlinux.org> 4.2.0-alt1 - 4.2.0 * Sat Sep 03 2022 Yuri N. Sedunov <aris@altlinux.org> 4.1.1-alt1 - 4.1.1 - built with libsoup-3.0/geocode-glib-2.0 * Fri Mar 18 2022 Yuri N. Sedunov <aris@altlinux.org> 4.0.0-alt1 - 4.0.0 * Sat Nov 20 2021 Yuri N. Sedunov <aris@altlinux.org> 3.90.0-alt1 - first build for Sisyphus |