[12446] | 1 | Summary: Library that pulling out some code out of indicator-applet |
---|
[9055] | 2 | Name: libdbusmenu |
---|
[12446] | 3 | Version: 16.04.0 |
---|
| 4 | Release: 1%{?_dist_release} |
---|
[9055] | 5 | |
---|
| 6 | # All files installed in final rpms use C sources with dual licensing headers. |
---|
| 7 | # Tests compiled in the build process are licensed GPLv3 |
---|
| 8 | |
---|
| 9 | License: LGPLv3 or LGPLv2 and GPLv3 |
---|
| 10 | URL: https://launchpad.net/dbusmenu |
---|
[12446] | 11 | Source0: https://launchpad.net/libdbusmenu/16.04/%{version}/+download/libdbusmenu-%{version}.tar.gz |
---|
| 12 | # patch to remove -Werror flag - fixes build despite usage of deprecated things |
---|
| 13 | Patch0: 00-no-werror.patch |
---|
[9055] | 14 | |
---|
| 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 16 | BuildRequires: chrpath |
---|
| 17 | BuildRequires: glib2-devel |
---|
| 18 | BuildRequires: gnome-common |
---|
| 19 | BuildRequires: gnome-doc-utils |
---|
| 20 | BuildRequires: gobject-introspection-devel |
---|
[11638] | 21 | BuildRequires: gtk3-devel |
---|
[9055] | 22 | BuildRequires: intltool |
---|
| 23 | BuildRequires: json-glib-devel |
---|
| 24 | BuildRequires: perl-XML-Parser |
---|
| 25 | BuildRequires: pkgconfig |
---|
| 26 | BuildRequires: python |
---|
| 27 | BuildRequires: vala-devel |
---|
| 28 | BuildRequires: vala-tools |
---|
| 29 | BuildRequires: valgrind-devel |
---|
| 30 | |
---|
| 31 | Obsoletes: dbusmenu-glib < %{version}-%{release} |
---|
| 32 | Provides: dbusmenu-glib = %{version}-%{release} |
---|
| 33 | |
---|
| 34 | %description |
---|
| 35 | libdbusmenu passes a menu structure across DBus so that a program |
---|
| 36 | can create a menu simply without worrying about how it is displayed |
---|
| 37 | on the other side of the bus. |
---|
| 38 | |
---|
| 39 | %package devel |
---|
| 40 | Summary: Development files for %{name} |
---|
| 41 | Summary(ja): %{name} の開発用ファイル |
---|
| 42 | Group: Development/Libraries |
---|
| 43 | Requires: %{name} = %{version}-%{release} |
---|
| 44 | Obsoletes: dbusmenu-glib-devel < %{version}-%{release} |
---|
| 45 | Provides: dbusmenu-glib-devel = %{version}-%{release} |
---|
| 46 | |
---|
| 47 | %description devel |
---|
| 48 | %{summary}. |
---|
| 49 | |
---|
| 50 | %package gtk |
---|
| 51 | Summary: Gtk+ implementation of the DBusMenu protocol |
---|
| 52 | Group: System Environment/Libraries |
---|
| 53 | Requires: %{name} = %{version}-%{release} |
---|
| 54 | Obsoletes: dbusmenu-gtk < %{version}-%{release} |
---|
| 55 | Provides: dbusmenu-gtk = %{version}-%{release} |
---|
| 56 | |
---|
| 57 | %description gtk |
---|
| 58 | %{summary}. |
---|
| 59 | |
---|
| 60 | %package gtk-devel |
---|
| 61 | Summary: Development files for dbusmenu-gtk |
---|
| 62 | Summary(ja): dbusmenu-gtk の開発用ファイル |
---|
| 63 | Group: Development/Libraries |
---|
| 64 | Requires: %{name}-devel = %{version}-%{release} |
---|
| 65 | Requires: %{name}-gtk = %{version}-%{release} |
---|
[11638] | 66 | Requires: gtk3-devel |
---|
[9055] | 67 | Requires: dbus-glib-devel |
---|
| 68 | Obsoletes: dbusmenu-gtk-devel < %{version}-%{release} |
---|
| 69 | Provides: dbusmenu-gtk-devel = %{version}-%{release} |
---|
| 70 | |
---|
| 71 | %description gtk-devel |
---|
| 72 | %{summary}. |
---|
| 73 | |
---|
| 74 | %package jsonloader |
---|
| 75 | Summary: Loader to turn JSON into dbusmenu menuitems |
---|
| 76 | Group: System Environment/Libraries |
---|
| 77 | Requires: %{name}-devel = %{version}-%{release} |
---|
| 78 | Obsoletes: dbusmenu-jsonloader < %{version}-%{release} |
---|
| 79 | Provides: dbusmenu-jsonloader = %{version}-%{release} |
---|
| 80 | |
---|
| 81 | %description jsonloader |
---|
| 82 | %{summary}. |
---|
| 83 | |
---|
| 84 | %package jsonloader-devel |
---|
| 85 | Summary: Development files for dbusmenu-jsonloader |
---|
| 86 | Group: Development/Libraries |
---|
| 87 | Requires: %{name}-jsonloader = %{version}-%{release} |
---|
| 88 | Obsoletes: dbusmenu-jsonloader-devel < %{version}-%{release} |
---|
| 89 | Provides: dbusmenu-jsonloader-devel = %{version}-%{release} |
---|
| 90 | |
---|
| 91 | %description jsonloader-devel |
---|
| 92 | %{summary}. |
---|
| 93 | |
---|
| 94 | %package doc |
---|
| 95 | Summary: Document files for %{name} |
---|
| 96 | BuildArch: noarch |
---|
| 97 | Group: Documentation |
---|
| 98 | |
---|
| 99 | %description doc |
---|
| 100 | The %{name}-doc package contains documents for |
---|
| 101 | developing applications that use %{name}. |
---|
| 102 | |
---|
| 103 | %package tools |
---|
| 104 | Summary: Development tools for the dbusmenu libraries |
---|
| 105 | Group: Development/Tools |
---|
| 106 | Requires: %{name} = %{version}-%{release} |
---|
| 107 | Obsoletes: dbusmenu-tools < %{version}-%{release} |
---|
| 108 | Provides: dbusmenu-tools = %{version}-%{release} |
---|
| 109 | |
---|
| 110 | %description tools |
---|
| 111 | This package contains tools that are useful when developing and |
---|
| 112 | building applications with libdbusmenu. |
---|
| 113 | |
---|
[12446] | 114 | |
---|
[9055] | 115 | %prep |
---|
| 116 | %setup -q -n libdbusmenu-%{version} |
---|
[12446] | 117 | %patch0 -p1 |
---|
[9055] | 118 | |
---|
[12446] | 119 | sed -i -e 's@^#!.*python$@#!/usr/bin/python2@' tools/dbusmenu-bench |
---|
| 120 | autoreconf -vif |
---|
| 121 | |
---|
| 122 | |
---|
[9055] | 123 | %build |
---|
| 124 | export CFLAGS="%{optflags} -Wno-error=deprecated-declarations" |
---|
[12446] | 125 | |
---|
[9055] | 126 | %configure \ |
---|
[12446] | 127 | --disable-static \ |
---|
| 128 | --disable-dumper \ |
---|
| 129 | --enable-introspection \ |
---|
[9055] | 130 | --disable-scrollkeeper \ |
---|
[12446] | 131 | --with-gtk=3 |
---|
| 132 | %make_build |
---|
[9055] | 133 | |
---|
| 134 | sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool |
---|
| 135 | make %{?_smp_mflags} V=1 |
---|
| 136 | |
---|
| 137 | |
---|
| 138 | %install |
---|
| 139 | rm -rf $RPM_BUILD_ROOT |
---|
| 140 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 141 | |
---|
[12446] | 142 | chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libdbusmenu-gtk3.so.?.?.* |
---|
| 143 | chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libdbusmenu-jsonloader.so.?.?.* |
---|
[9055] | 144 | chrpath --delete $RPM_BUILD_ROOT%{_libexecdir}/dbusmenu-testapp |
---|
| 145 | |
---|
| 146 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' |
---|
| 147 | |
---|
[12446] | 148 | # Remove benchmarking tool written in python2 |
---|
| 149 | rm %{buildroot}/%{_libexecdir}/dbusmenu-bench |
---|
| 150 | |
---|
[9055] | 151 | rm -rf _docs/* |
---|
| 152 | mkdir -p _docs |
---|
| 153 | mv $RPM_BUILD_ROOT%{_docdir}/libdbusmenu/* _docs/ |
---|
| 154 | |
---|
| 155 | |
---|
| 156 | %clean |
---|
| 157 | rm -rf $RPM_BUILD_ROOT |
---|
| 158 | |
---|
| 159 | |
---|
| 160 | %post -p /sbin/ldconfig |
---|
| 161 | |
---|
| 162 | %postun -p /sbin/ldconfig |
---|
| 163 | |
---|
| 164 | %post gtk -p /sbin/ldconfig |
---|
| 165 | |
---|
| 166 | %postun gtk -p /sbin/ldconfig |
---|
| 167 | |
---|
| 168 | %post jsonloader -p /sbin/ldconfig |
---|
| 169 | |
---|
| 170 | %postun jsonloader -p /sbin/ldconfig |
---|
| 171 | |
---|
[12446] | 172 | |
---|
[9055] | 173 | %files |
---|
| 174 | %defattr(-,root,root,-) |
---|
[12446] | 175 | %license COPYING COPYING.2.1 COPYING-GPL3 |
---|
| 176 | %doc README AUTHORS |
---|
[9055] | 177 | %{_libdir}/libdbusmenu-glib.so.* |
---|
| 178 | %{_libdir}/girepository-1.0/Dbusmenu-0.4.typelib |
---|
| 179 | |
---|
| 180 | %files devel |
---|
| 181 | %defattr(-,root,root,-) |
---|
| 182 | %doc _docs/examples |
---|
| 183 | %dir %{_includedir}/libdbusmenu-glib-0.4/ |
---|
| 184 | %dir %{_includedir}/libdbusmenu-glib-0.4/libdbusmenu-glib/ |
---|
| 185 | %{_includedir}/libdbusmenu-glib-0.4/libdbusmenu-glib/*.h |
---|
| 186 | %{_libdir}/libdbusmenu-glib.so |
---|
| 187 | %{_libdir}/pkgconfig/dbusmenu-glib-0.4.pc |
---|
| 188 | %{_datadir}/gir-1.0/Dbusmenu-0.4.gir |
---|
| 189 | %{_datadir}/vala/vapi/Dbusmenu-0.4.vapi |
---|
| 190 | |
---|
| 191 | %files gtk |
---|
| 192 | %defattr(-,root,root,-) |
---|
[11638] | 193 | %{_libdir}/libdbusmenu-gtk3.so.* |
---|
| 194 | %{_libdir}/girepository-1.0/DbusmenuGtk3-0.4.typelib |
---|
[9055] | 195 | |
---|
| 196 | %files gtk-devel |
---|
| 197 | %defattr(-,root,root,-) |
---|
[11638] | 198 | %dir %{_includedir}/libdbusmenu-gtk3-0.4 |
---|
| 199 | %dir %{_includedir}/libdbusmenu-gtk3-0.4/libdbusmenu-gtk |
---|
| 200 | %{_includedir}/libdbusmenu-gtk3-0.4/libdbusmenu-gtk/*.h |
---|
| 201 | %{_libdir}/libdbusmenu-gtk3.so |
---|
| 202 | %{_libdir}/pkgconfig/dbusmenu-gtk3-0.4.pc |
---|
| 203 | %{_datadir}/gir-1.0/DbusmenuGtk3-0.4.gir |
---|
| 204 | %{_datadir}/vala/vapi/DbusmenuGtk3-0.4.vapi |
---|
[9055] | 205 | |
---|
| 206 | %files jsonloader |
---|
| 207 | %defattr(-,root,root,-) |
---|
| 208 | %{_libdir}/libdbusmenu-jsonloader.so.* |
---|
| 209 | |
---|
| 210 | %files jsonloader-devel |
---|
| 211 | %defattr(-,root,root,-) |
---|
| 212 | %dir %{_includedir}/libdbusmenu-glib-0.4/ |
---|
| 213 | %dir %{_includedir}/libdbusmenu-glib-0.4/libdbusmenu-jsonloader/ |
---|
| 214 | %{_includedir}/libdbusmenu-glib-0.4/libdbusmenu-jsonloader/*.h |
---|
| 215 | %{_libdir}/libdbusmenu-jsonloader.so |
---|
| 216 | %{_libdir}/pkgconfig/dbusmenu-jsonloader-0.4.pc |
---|
| 217 | |
---|
| 218 | %files doc |
---|
| 219 | %doc README COPYING COPYING.2.1 AUTHORS |
---|
| 220 | %dir %{_datadir}/gtk-doc/ |
---|
| 221 | %{_datadir}/gtk-doc/* |
---|
| 222 | |
---|
| 223 | %files tools |
---|
| 224 | %defattr(-,root,root,-) |
---|
| 225 | %doc _docs/README.dbusmenu-bench |
---|
| 226 | %{_libexecdir}/dbusmenu-* |
---|
| 227 | %{_datadir}/libdbusmenu/json/test-gtk-label.json |
---|
| 228 | |
---|
[12446] | 229 | |
---|
[9055] | 230 | %changelog |
---|
[12446] | 231 | * Tue Aug 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 16.04.0-1 |
---|
| 232 | - new upstream release. |
---|
| 233 | |
---|
[11638] | 234 | * Sun May 20 2018 IWAI, Masaharu <iwaim.sub@gmail.com> 12.10.2-2 |
---|
| 235 | - build with GTK3 |
---|
| 236 | |
---|
[9055] | 237 | * Mon Nov 3 2014 Ryoichi INAAGKI <ryo1@toki.waseda.jp> 12.10.2-1 |
---|
| 238 | - updated to 12.10.2 |
---|
| 239 | - renamed to libdbusmenu |
---|
| 240 | |
---|
| 241 | * Sun Feb 27 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3.16-2 |
---|
| 242 | - add BuildRequires: gtk2-devel, libxml2-devel |
---|
| 243 | |
---|
| 244 | * Thu Feb 17 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.3.16-1 |
---|
| 245 | - Initial build for VineLinux |
---|
| 246 | |
---|