|
|
@ -9,7 +9,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
Name: libdbusmenu
|
|
|
|
Name: libdbusmenu
|
|
|
|
Version: %{ubuntu_release}.0
|
|
|
|
Version: %{ubuntu_release}.0
|
|
|
|
Release: 19%{?dist}
|
|
|
|
Release: 12%{?dist}
|
|
|
|
Summary: Library for passing menus over DBus
|
|
|
|
Summary: Library for passing menus over DBus
|
|
|
|
|
|
|
|
|
|
|
|
# All files installed in final rpms use C sources with dual licensing headers.
|
|
|
|
# All files installed in final rpms use C sources with dual licensing headers.
|
|
|
@ -18,17 +18,15 @@ Summary: Library for passing menus over DBus
|
|
|
|
License: LGPLv3 or LGPLv2 and GPLv3
|
|
|
|
License: LGPLv3 or LGPLv2 and GPLv3
|
|
|
|
URL: https://launchpad.net/libdbusmenu
|
|
|
|
URL: https://launchpad.net/libdbusmenu
|
|
|
|
Source0: https://launchpad.net/libdbusmenu/%{ubuntu_release}/%{version}/+download/%{name}-%{version}.tar.gz
|
|
|
|
Source0: https://launchpad.net/libdbusmenu/%{ubuntu_release}/%{version}/+download/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
Patch0: dbusmenu-bench-python3.patch
|
|
|
|
|
|
|
|
Patch1: covscan.patch
|
|
|
|
|
|
|
|
|
|
|
|
# patch to remove -Werror flag - fixes build despite usage of deprecated things
|
|
|
|
|
|
|
|
Patch0: 00-no-werror.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
|
|
|
BuildRequires: atk-devel
|
|
|
|
BuildRequires: atk-devel
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: gettext
|
|
|
|
BuildRequires: gettext
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: gtk-doc
|
|
|
|
BuildRequires: gnome-common
|
|
|
|
BuildRequires: intltool
|
|
|
|
BuildRequires: intltool
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: libxslt
|
|
|
|
BuildRequires: libxslt
|
|
|
@ -38,18 +36,17 @@ BuildRequires: pkgconfig(gio-2.0) >= 2.35.4
|
|
|
|
BuildRequires: pkgconfig(gio-unix-2.0) >= 2.24
|
|
|
|
BuildRequires: pkgconfig(gio-unix-2.0) >= 2.24
|
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.35.4
|
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.35.4
|
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 0.10
|
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 0.10
|
|
|
|
BuildRequires: pkgconfig(gtk+-2.0) >= 2.16
|
|
|
|
|
|
|
|
BuildRequires: pkgconfig(gtk+-3.0) >= 2.91
|
|
|
|
BuildRequires: pkgconfig(gtk+-3.0) >= 2.91
|
|
|
|
BuildRequires: pkgconfig(json-glib-1.0) >= 0.13.4
|
|
|
|
BuildRequires: pkgconfig(json-glib-1.0) >= 0.13.4
|
|
|
|
BuildRequires: pkgconfig(x11) >= 1.3
|
|
|
|
BuildRequires: pkgconfig(x11) >= 1.3
|
|
|
|
BuildRequires: vala
|
|
|
|
BuildRequires: vala-devel
|
|
|
|
|
|
|
|
BuildRequires: vala-tools
|
|
|
|
|
|
|
|
|
|
|
|
# pkgconfig file is checked for valgrind, but is actually only used for tests
|
|
|
|
# pkgconfig file is checked for valgrind, but is actually only used for tests
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1262274
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1262274
|
|
|
|
# BuildRequires: pkgconfig(valgrind)
|
|
|
|
# BuildRequires: pkgconfig(valgrind)
|
|
|
|
%if 0%{?with_tests}
|
|
|
|
%if 0%{?with_tests}
|
|
|
|
BuildRequires: dbus-test-runner
|
|
|
|
BuildRequires: dbus-test-runner
|
|
|
|
BuildRequires: python2
|
|
|
|
|
|
|
|
BuildRequires: valgrind
|
|
|
|
BuildRequires: valgrind
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
@ -67,13 +64,6 @@ Requires: dbus-glib-devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%package gtk2
|
|
|
|
|
|
|
|
Summary: %{summary} - GTK+2 version
|
|
|
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description gtk2
|
|
|
|
|
|
|
|
Shared libraries for the %{name}-gtk2 library.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package gtk3
|
|
|
|
%package gtk3
|
|
|
|
Summary: %{summary} - GTK+3 version
|
|
|
|
Summary: %{summary} - GTK+3 version
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
@ -81,17 +71,6 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
%description gtk3
|
|
|
|
%description gtk3
|
|
|
|
Shared libraries for the %{name}-gtk3 library.
|
|
|
|
Shared libraries for the %{name}-gtk3 library.
|
|
|
|
|
|
|
|
|
|
|
|
%package gtk2-devel
|
|
|
|
|
|
|
|
Summary: Development files for %{name}-gtk2
|
|
|
|
|
|
|
|
Requires: %{name}-gtk2%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
Requires: gtk2-devel
|
|
|
|
|
|
|
|
Requires: dbus-glib-devel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description gtk2-devel
|
|
|
|
|
|
|
|
The %{name}-gtk2-devel package contains libraries and header files for
|
|
|
|
|
|
|
|
developing applications that use %{name}-gtk2.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package gtk3-devel
|
|
|
|
%package gtk3-devel
|
|
|
|
Summary: Development files for %{name}-gtk3
|
|
|
|
Summary: Development files for %{name}-gtk3
|
|
|
|
Requires: %{name}-gtk3%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: %{name}-gtk3%{?_isa} = %{version}-%{release}
|
|
|
@ -139,39 +118,24 @@ that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version} -c
|
|
|
|
%setup -q -n %{name}-%{version} -c
|
|
|
|
|
|
|
|
%patch0 -p1 -b .python3
|
|
|
|
pushd %{name}-%{version}
|
|
|
|
%patch1 -p1 -b .covscan
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
autoreconf -fiv
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cp -a %{name}-%{version}/{README,COPYING,COPYING.2.1,COPYING-GPL3,AUTHORS,ChangeLog} .
|
|
|
|
cp -a %{name}-%{version}/{README,COPYING,COPYING.2.1,COPYING-GPL3,AUTHORS,ChangeLog} .
|
|
|
|
cp -a %{name}-%{version} %{name}-gtk3-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
build(){
|
|
|
|
build(){
|
|
|
|
%configure --disable-static --disable-dumper --enable-introspection $*
|
|
|
|
autoreconf -vif
|
|
|
|
|
|
|
|
%configure --disable-static --disable-dumper $*
|
|
|
|
%make_build
|
|
|
|
%make_build
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
pushd %{name}-gtk3-%{version}
|
|
|
|
|
|
|
|
sed -i -e 's@^#!.*python$@#!/usr/bin/python2@' tools/dbusmenu-bench
|
|
|
|
|
|
|
|
build --with-gtk=3
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pushd %{name}-%{version}
|
|
|
|
pushd %{name}-%{version}
|
|
|
|
sed -i -e 's@^#!.*python$@#!/usr/bin/python2@' tools/dbusmenu-bench
|
|
|
|
build --with-gtk=3
|
|
|
|
build --with-gtk=2
|
|
|
|
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
pushd %{name}-gtk3-%{version}
|
|
|
|
|
|
|
|
%make_install
|
|
|
|
|
|
|
|
find %{buildroot} -name '*.la' -delete
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pushd %{name}-%{version}
|
|
|
|
pushd %{name}-%{version}
|
|
|
|
%make_install
|
|
|
|
%make_install
|
|
|
|
find %{buildroot} -name '*.la' -delete
|
|
|
|
find %{buildroot} -name '*.la' -delete
|
|
|
@ -180,21 +144,14 @@ popd
|
|
|
|
# Let rpmbuild pick the documents in the files section
|
|
|
|
# Let rpmbuild pick the documents in the files section
|
|
|
|
rm -fr %{buildroot}%{_docdir}/%{name}
|
|
|
|
rm -fr %{buildroot}%{_docdir}/%{name}
|
|
|
|
|
|
|
|
|
|
|
|
# Remove benchmarking tool written in python2
|
|
|
|
|
|
|
|
rm %{buildroot}/%{_libexecdir}/dbusmenu-bench
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_tests}
|
|
|
|
%if 0%{?with_tests}
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
for variant in %{name}-gtk3-%{version} %{name}-%{version}; do
|
|
|
|
pushd %{name}-%{version}
|
|
|
|
pushd $variant
|
|
|
|
|
|
|
|
make check V=1
|
|
|
|
make check V=1
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
done
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
%ldconfig_scriptlets gtk2
|
|
|
|
|
|
|
|
%ldconfig_scriptlets gtk3
|
|
|
|
%ldconfig_scriptlets gtk3
|
|
|
|
%ldconfig_scriptlets jsonloader
|
|
|
|
%ldconfig_scriptlets jsonloader
|
|
|
|
|
|
|
|
|
|
|
@ -228,10 +185,6 @@ done
|
|
|
|
%{_libdir}/libdbusmenu-gtk3.so.*
|
|
|
|
%{_libdir}/libdbusmenu-gtk3.so.*
|
|
|
|
%{_libdir}/girepository-1.0/DbusmenuGtk3-0.4.typelib
|
|
|
|
%{_libdir}/girepository-1.0/DbusmenuGtk3-0.4.typelib
|
|
|
|
|
|
|
|
|
|
|
|
%files gtk2
|
|
|
|
|
|
|
|
%{_libdir}/libdbusmenu-gtk.so.*
|
|
|
|
|
|
|
|
%{_libdir}/girepository-1.0/DbusmenuGtk-0.4.typelib
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files gtk3-devel
|
|
|
|
%files gtk3-devel
|
|
|
|
%dir %{_includedir}/libdbusmenu-gtk3-0.4
|
|
|
|
%dir %{_includedir}/libdbusmenu-gtk3-0.4
|
|
|
|
%dir %{_includedir}/libdbusmenu-gtk3-0.4/libdbusmenu-gtk
|
|
|
|
%dir %{_includedir}/libdbusmenu-gtk3-0.4/libdbusmenu-gtk
|
|
|
@ -241,68 +194,41 @@ done
|
|
|
|
%{_datadir}/gir-1.0/DbusmenuGtk3-0.4.gir
|
|
|
|
%{_datadir}/gir-1.0/DbusmenuGtk3-0.4.gir
|
|
|
|
%{_datadir}/vala/vapi/DbusmenuGtk3-0.4.vapi
|
|
|
|
%{_datadir}/vala/vapi/DbusmenuGtk3-0.4.vapi
|
|
|
|
|
|
|
|
|
|
|
|
%files gtk2-devel
|
|
|
|
|
|
|
|
%dir %{_includedir}/libdbusmenu-gtk-0.4
|
|
|
|
|
|
|
|
%dir %{_includedir}/libdbusmenu-gtk-0.4/libdbusmenu-gtk
|
|
|
|
|
|
|
|
%{_includedir}/libdbusmenu-gtk-0.4/libdbusmenu-gtk/*.h
|
|
|
|
|
|
|
|
%{_libdir}/libdbusmenu-gtk.so
|
|
|
|
|
|
|
|
%{_libdir}/pkgconfig/dbusmenu-gtk-0.4.pc
|
|
|
|
|
|
|
|
%{_datadir}/gir-1.0/DbusmenuGtk-0.4.gir
|
|
|
|
|
|
|
|
%{_datadir}/vala/vapi/DbusmenuGtk-0.4.vapi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%files doc
|
|
|
|
%dir %{_datadir}/gtk-doc/
|
|
|
|
%dir %{_datadir}/gtk-doc/
|
|
|
|
%{_datadir}/gtk-doc/*
|
|
|
|
%{_datadir}/gtk-doc/*
|
|
|
|
|
|
|
|
|
|
|
|
%files tools
|
|
|
|
%files tools
|
|
|
|
|
|
|
|
%doc %{name}-%{version}/tools/README.dbusmenu-bench
|
|
|
|
|
|
|
|
%{_libexecdir}/dbusmenu-bench
|
|
|
|
%{_libexecdir}/dbusmenu-testapp
|
|
|
|
%{_libexecdir}/dbusmenu-testapp
|
|
|
|
%dir %{_datadir}/%{name}/
|
|
|
|
%dir %{_datadir}/%{name}/
|
|
|
|
%dir %{_datadir}/%{name}/json/
|
|
|
|
%dir %{_datadir}/%{name}/json/
|
|
|
|
%{_datadir}/%{name}/json/test-gtk-label.json
|
|
|
|
%{_datadir}/%{name}/json/test-gtk-label.json
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 16.04.0-19
|
|
|
|
* Tue Oct 09 2018 Tomas Popela <tpopela@redhat.com> - 16.04.0-12
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
- Fix Coverity scan issues
|
|
|
|
|
|
|
|
- Resolves: rhbz#1637532
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 16.04.0-18
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 16.04.0-17
|
|
|
|
* Mon Jul 02 2018 Charalampos Stratakis <cstratak@redhat.com> - 16.04.0-11
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
- Remove gnome-doc-utils build dependency
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 16.04.0-16
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 16.04.0-15
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Sep 09 2019 Fabio Valentini <decathorpe@gmail.com> - 16.04.0-14
|
|
|
|
|
|
|
|
- Remove benchmarking tool, drop python2 dependency.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Sep 09 2019 Fabio Valentini <decathorpe@gmail.com> - 16.04.0-13
|
|
|
|
|
|
|
|
- Remove -Werror flag to fix build despite usage of deprecated things.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 16.04.0-12
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Feb 26 2019 Kalev Lember <klember@redhat.com> - 16.04.0-11
|
|
|
|
|
|
|
|
- Explicitly enable gobject-introspection support
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Feb 04 2019 Kalev Lember <klember@redhat.com> - 16.04.0-10
|
|
|
|
* Fri Jun 15 2018 Tomas Popela <tpopela@redhat.com> - 16.04.0-10
|
|
|
|
- Update BRs for vala packaging changes
|
|
|
|
- Port dbusmenu-bench to python3
|
|
|
|
|
|
|
|
- Resolves: rhbz#1591714
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 16.04.0-9
|
|
|
|
* Thu Jun 07 2018 Tomas Popela <tpopela@redhat.com> - 16.04.0-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
- Remove gtk2 support
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 16.04.0-8
|
|
|
|
* Fri May 25 2018 Tomas Popela <tpopela@redhat.com> - 16.04.0-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
- Move to ldcondif_scriptlets
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 02 2018 Charalampos Stratakis <cstratak@redhat.com> - 16.04.0-7
|
|
|
|
* Fri May 25 2018 Tomas Popela <tpopela@redhat.com> - 16.04.0-7
|
|
|
|
- Remove gnome-doc-utils build dependency
|
|
|
|
- Fix jsonloader subpackage requires (backport from RHEL 7)
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Feb 07 2018 Iryna Shcherbina <ishcherb@redhat.com> - 16.04.0-6
|
|
|
|
* Fri May 25 2018 Tomas Popela <tpopela@redhat.com> - 16.04.0-6
|
|
|
|
- Update Python 2 dependency declarations to new packaging standards
|
|
|
|
- Require python2 as a BR
|
|
|
|
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 16.04.0-5
|
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 16.04.0-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|