Пакет librest1.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 | %def_enable snapshot %define _name rest %define ver_major 0.9 %define api_ver 1.0 %def_disable soup2 %def_enable introspection %def_enable gtk_doc %def_enable tests %def_enable demo Name: lib%_name%api_ver Version: %ver_major.1 Release: alt2 Summary: A library for access to RESTful web services Group: System/Libraries License: LGPL-2.1-or-later Url: https://www.gnome.org Vcs: https://gitlab.gnome.org/GNOME/librest %if_disabled snapshot Source: ftp://ftp.gnome.org/pub/gnome/sources/%_name/%ver_major/%_name-%version.tar.xz %else Source: %_name-%version.tar %endif Requires: ca-certificates BuildRequires(pre): rpm-macros-meson BuildRequires: meson glib2-devel libxml2-devel pkgconfig(json-glib-1.0) %if_enabled soup2 BuildRequires: pkgconfig(libsoup-2.4) %else BuildRequires: pkgconfig(libsoup-3.0) %endif %{?_enable_introspection:BuildRequires(pre): rpm-build-gir BuildRequires: gobject-introspection-devel %if_enabled soup2 BuildRequires: gir(Soup) = 2.4 %else BuildRequires: gir(Soup) = 3.0 %endif } %{?_enable_gtk_doc:BuildRequires: gi-docgen} %{?_enable_demo:BuildRequires: pkgconfig(libadwaita-1) pkgconfig(gtksourceview-5)} %description This library was designed to make it easier to access web services that claim to be "RESTful". A RESTful service should have urls that represent remote objects, which methods can then be called on. The majority of services don't actually adhere to this strict definition. Instead, their RESTful end point usually has an API that is just simpler to use compared to other types of APIs they may support (XML-RPC, for instance). It is this kind of API that this library is attempting to support. %package devel Summary: Development package for %name Group: Development/C Requires: %name = %EVR %description devel Files for development with %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 devel-doc Summary: Development documentation for %_name Group: Development/C Conflicts: %name < %version-%release BuildArch: noarch %description devel-doc This package contains development documentation for the %_name library. %package demo Summary: %name demonstration program Group: Development/C Requires: %name = %EVR %description demo This package provides demonstration program for the %_name library. %prep %setup -n %_name-%version %build %meson \ %{?_enable_soup2:-Dsoup2=true} \ %{?_disable_gtk_doc:-Dgtk-doc=false} \ %{?_disable_tests:-Dtests=false} \ -Dca_certificates_path="%_datadir/ca-certificates/ca-bundle.crt" %nil %meson_build %install %meson_install %check # network required for extras (flickr, lastfm) tests %__meson_test --no-suite rest-extras %files %_libdir/lib%_name-%api_ver.so.* %_libdir/lib%_name-extras-%api_ver.so.* %doc AUTHORS README* NEWS %files devel %_includedir/%_name-%api_ver/ %_libdir/lib%_name-%api_ver.so %_libdir/lib%_name-extras-%api_ver.so %_pkgconfigdir/%{_name}*%api_ver.pc %if_enabled introspection %files gir %_typelibdir/Rest-%api_ver.typelib %_typelibdir/RestExtras-%api_ver.typelib %files gir-devel %_girdir/Rest-%api_ver.gir %_girdir/RestExtras-%api_ver.gir %endif %if_enabled gtk_doc %files devel-doc %_datadir/doc/lib%_name-%api_ver/ %endif %if_enabled demo %files demo %_bindir/lib%_name-demo %_desktopdir/org.gnome.RestDemo.desktop %endif %changelog * Sat Mar 23 2024 Yuri N. Sedunov <aris@altlinux.org> 0.9.1-alt2 - updated to 0.9.1-24-g23f2d27 * Mon Jun 20 2022 Yuri N. Sedunov <aris@altlinux.org> 0.9.1-alt1 - 0.9.1 (1.0 API, ported to Meson build system) * Tue Oct 17 2017 Yuri N. Sedunov <aris@altlinux.org> 0.8.1-alt1 - 0.8.1 * Mon Apr 18 2016 Yuri N. Sedunov <aris@altlinux.org> 0.8.0-alt1 - 0.8.0 * Wed Mar 25 2015 Yuri N. Sedunov <aris@altlinux.org> 0.7.93-alt1 - 0.7.93 * Wed Sep 03 2014 Yuri N. Sedunov <aris@altlinux.org> 0.7.92-alt1 - 0.7.92 * Mon Mar 10 2014 Yuri N. Sedunov <aris@altlinux.org> 0.7.91-alt1 - 0.7.91 * Thu Sep 06 2012 Yuri N. Sedunov <aris@altlinux.org> 0.7.90-alt1 - 0.7.90 * Thu Nov 10 2011 Yuri N. Sedunov <aris@altlinux.org> 0.7.12-alt1 - 0.7.12 * Mon Oct 31 2011 Yuri N. Sedunov <aris@altlinux.org> 0.7.11-alt1 - 0.7.11 * Sat Jul 16 2011 Yuri N. Sedunov <aris@altlinux.org> 0.7.10-alt2 - build without tests. * Thu Jun 30 2011 Yuri N. Sedunov <aris@altlinux.org> 0.7.10-alt1 - first build for Sisyphus |