Пакет libdbusmenu: 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 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 | %define ver_major 16.04 %define api_ver 0.4 # disable introspection and vala for Gtk2 build %def_disable introspection %{?_disable_introspection:%def_disable vala} Name: libdbusmenu Version: %ver_major.0 Release: alt3 Summary: A library that passes a menu structure across DBus Group: System/Libraries License: LGPL-2.1 and LGPL-3.0 and GPL-3.0 Url: https://launchpad.net/%name # rev 477 #Source: %name-%version.tar Source: https://launchpad.net/%name/%ver_major/%version/+download/%name-%version.tar.gz Patch: %name-16.04.0-alt-no-Werror.patch Patch1: %name-16.04.0-alt-docs-build.patch BuildRequires: intltool gtk-doc vala-tools BuildRequires: libgtk+2-devel libgtk+3-devel libjson-glib-devel BuildRequires: gobject-introspection-devel libgtk+3-gir-devel %{?_enable_introspection:BuildRequires: libgtk+2-gir-devel} %description %name is a small library designed to make sharing and displaying of menu structures over DBus simple and easy to use. It works for both QT and GTK+ and makes building menus simple. %package devel Summary: %summary Group: Development/C Requires: %name = %EVR %description devel Development files for %name %package gir Summary: GObject introspection data for the %name Group: System/Libraries Requires: %name = %EVR %description gir This package provides GObject introspection data for the %name. %package gir-devel Summary: GObject introspection devel data for the %name Group: Development/Other BuildArch: noarch Requires: %name-gir = %EVR %description gir-devel This package provides GObject introspection devel data for the %name %package gtk2 Summary: %summary Group: System/Libraries Requires: %name = %EVR %description gtk2 This package provides shared %name-gtk2 library. %package gtk3 Requires: %name = %EVR Summary: %summary Group: System/Libraries Requires: %name = %EVR %description gtk3 This package provides shared %name-gtk3 library. %package gtk2-devel Summary: Development files for %name-gtk2 Group: Development/C Requires: %name-gtk2 = %EVR %description gtk2-devel This package provides libraries and header files for developing applications that use %name-gtk2. %package gtk2-gir Summary: GObject introspection data for the %name-gtk2 Group: System/Libraries Requires: %name-gtk3 = %EVR %description gtk2-gir This package provides GObject introspection data for the %name-gtk2. %package gtk2-gir-devel Summary: GObject introspection devel data for the %name-gtk2 Group: Development/Other BuildArch: noarch Requires: %name-gir-devel = %EVR Requires: %name-gtk2-gir = %EVR %description gtk2-gir-devel This package provides GObject introspection devel data for the %name-gtk2 %package gtk3-devel Summary: Development files for %name Group: Development/C Requires: %name-gtk3 = %EVR %description gtk3-devel The %name-gtk3-devel package contains libraries and header files for developing applications that use %name. %package gtk3-gir Summary: GObject introspection data for the %name-gtk3 Group: System/Libraries Requires: %name-gtk3 = %EVR %description gtk3-gir This package provides GObject introspection data for the %name-gtk3. %package gtk3-gir-devel Summary: GObject introspection devel data for the %name-gtk3 Group: Development/Other BuildArch: noarch Requires: %name-gir-devel = %EVR Requires: %name-gtk3-gir = %EVR %description gtk3-gir-devel This package provides GObject introspection devel data for the %name-gtk3 %package jsonloader Summary: Test library for %name Group: Development/Tools Requires: %name-devel = %EVR %description jsonloader %name is a small library designed to make sharing and displaying of menu structures over DBus simple and easy to use. This package provides the shared library for dbusmenu-jsonloader, a library required for the %name test suites. %package jsonloader-devel Summary: Test lib development files for %name Group: Development/C Requires: %name-jsonloader = %EVR Requires: %name = %EVR %description jsonloader-devel %name is a small library designed to make sharing and displaying of menu structures over DBus simple and easy to use. This package provides development files for dbusmenu-jsonloader, a library required for the %name test suites. %package devel-doc Summary: Documentation for %name Group: Development/Documentation BuildArch: noarch %description devel-doc The %name-doc package contains documentation for developing applications that use %name. %package tools Summary: Development tools for the dbusmenu libraries Group: Development/Tools Requires: %name = %EVR %description tools The %name-tools package contains helper tools for developing applications that use %name. %prep %setup -a0 %patch -p1 %patch1 mv %name-%version %name-gtk3 %patch -p1 -d %name-gtk3 %patch1 -d %name-gtk3 %build %define opts --disable-static --enable-gtk-doc --disable-dumper %autoreconf %configure %opts --with-gtk=2 %{?_disable_introspection:--enable-introspection=no --disable-vala} %make_build pushd %name-gtk3 %autoreconf %configure %opts --with-gtk=3 %make_build popd %install %makeinstall_std pushd %name-gtk3 %makeinstall_std popd %files %_libdir/%name-glib.so.* %doc README AUTHORS %files devel %_includedir/%name-glib-%api_ver/ %exclude %_includedir/%name-glib-%api_ver/%name-jsonloader/ %_libdir/%name-glib.so %_pkgconfigdir/dbusmenu-glib-%api_ver.pc %_vapidir/Dbusmenu-%api_ver.vapi %files gir %_typelibdir/Dbusmenu-%api_ver.typelib %files gir-devel %_girdir/Dbusmenu-%api_ver.gir %files jsonloader %_libdir/%name-jsonloader.so.* %files jsonloader-devel %_includedir/%name-glib-%api_ver/%name-jsonloader/ %_libdir/%name-jsonloader.so %_pkgconfigdir/dbusmenu-jsonloader-%api_ver.pc %files gtk3 %_libdir/%name-gtk3.so.* %files gtk3-gir %_typelibdir/DbusmenuGtk3-%api_ver.typelib %files gtk2 %_libdir/%name-gtk.so.* %files gtk2-devel %_includedir/%name-gtk-%api_ver/ %_libdir/%name-gtk.so %_pkgconfigdir/dbusmenu-gtk-%api_ver.pc %{?_enable_vala:%_vapidir/DbusmenuGtk-%api_ver.vapi} %if_enabled introspection %files gtk2-gir %_typelibdir/DbusmenuGtk-%api_ver.typelib %files gtk2-gir-devel %_girdir/DbusmenuGtk-%api_ver.gir %endif %files gtk3-devel %_includedir/%name-gtk3-%api_ver/ %_libdir/%name-gtk3.so %_pkgconfigdir/dbusmenu-gtk3-%api_ver.pc %_vapidir/DbusmenuGtk3-%api_ver.vapi %files gtk3-gir-devel %_girdir/DbusmenuGtk3-%api_ver.gir %files devel-doc %doc README COPYING COPYING.2.1 AUTHORS %_datadir/gtk-doc/html/* %files tools %exclude %_libexecdir/dbusmenu-bench %_libexecdir/dbusmenu-testapp %dir %_datadir/%name/ %dir %_datadir/%name/json/ %_datadir/%name/json/test-gtk-label.json %doc tools/README.dbusmenu-bench %changelog * Mon Nov 23 2020 Yuri N. Sedunov <aris@altlinux.org> 16.04.0-alt3 - gtk2: disabled introspection * Sun Mar 22 2020 Yuri N. Sedunov <aris@altlinux.org> 16.04.0-alt2 - disabled -Werror - fised docs build - fixed License tag - excluded python2 based %%_libexecdir/dbusmenu-bench from -tools * Sat Mar 19 2016 Yuri N. Sedunov <aris@altlinux.org> 16.04.0-alt1 - 16.04.0 * Sat Sep 19 2015 Yuri N. Sedunov <aris@altlinux.org> 12.10.2-alt1 - first build for Sisyphus |