|
|
@ -7,22 +7,15 @@
|
|
|
|
# Set to 1 to run testsuite
|
|
|
|
# Set to 1 to run testsuite
|
|
|
|
%global with_tests 0
|
|
|
|
%global with_tests 0
|
|
|
|
|
|
|
|
|
|
|
|
# No gtk2 in RHEL 10
|
|
|
|
|
|
|
|
%if 0%{?rhel} > 9
|
|
|
|
|
|
|
|
%bcond_with gtk2
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%bcond_without gtk2
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: libdbusmenu
|
|
|
|
Name: libdbusmenu
|
|
|
|
Version: %{ubuntu_release}.0
|
|
|
|
Version: %{ubuntu_release}.0
|
|
|
|
Release: 32%{?dist}
|
|
|
|
Release: 19%{?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.
|
|
|
|
# Tests compiled in the build process are licensed GPLv3
|
|
|
|
# Tests compiled in the build process are licensed GPLv3
|
|
|
|
|
|
|
|
|
|
|
|
License: (LGPL-3.0-only OR LGPL-2.1-only) AND GPL-3.0-only
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
@ -45,9 +38,7 @@ 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
|
|
|
|
%if %{with gtk2}
|
|
|
|
|
|
|
|
BuildRequires: pkgconfig(gtk+-2.0) >= 2.16
|
|
|
|
BuildRequires: pkgconfig(gtk+-2.0) >= 2.16
|
|
|
|
%endif
|
|
|
|
|
|
|
|
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
|
|
|
@ -70,19 +61,18 @@ makes building menus simple.
|
|
|
|
%package devel
|
|
|
|
%package devel
|
|
|
|
Summary: %{summary} - Development files
|
|
|
|
Summary: %{summary} - Development files
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
Requires: dbus-glib-devel
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
%description 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}.
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with gtk2}
|
|
|
|
|
|
|
|
%package gtk2
|
|
|
|
%package gtk2
|
|
|
|
Summary: %{summary} - GTK+2 version
|
|
|
|
Summary: %{summary} - GTK+2 version
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
%description gtk2
|
|
|
|
%description gtk2
|
|
|
|
Shared libraries for the %{name}-gtk2 library.
|
|
|
|
Shared libraries for the %{name}-gtk2 library.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package gtk3
|
|
|
|
%package gtk3
|
|
|
|
Summary: %{summary} - GTK+3 version
|
|
|
|
Summary: %{summary} - GTK+3 version
|
|
|
@ -91,23 +81,23 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
%description gtk3
|
|
|
|
%description gtk3
|
|
|
|
Shared libraries for the %{name}-gtk3 library.
|
|
|
|
Shared libraries for the %{name}-gtk3 library.
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with gtk2}
|
|
|
|
|
|
|
|
%package gtk2-devel
|
|
|
|
%package gtk2-devel
|
|
|
|
Summary: Development files for %{name}-gtk2
|
|
|
|
Summary: Development files for %{name}-gtk2
|
|
|
|
Requires: %{name}-gtk2%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: %{name}-gtk2%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: gtk2-devel
|
|
|
|
Requires: gtk2-devel
|
|
|
|
|
|
|
|
Requires: dbus-glib-devel
|
|
|
|
|
|
|
|
|
|
|
|
%description gtk2-devel
|
|
|
|
%description gtk2-devel
|
|
|
|
The %{name}-gtk2-devel package contains libraries and header files for
|
|
|
|
The %{name}-gtk2-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}-gtk2.
|
|
|
|
developing applications that use %{name}-gtk2.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%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}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: gtk3-devel
|
|
|
|
Requires: gtk3-devel
|
|
|
|
|
|
|
|
Requires: dbus-glib-devel
|
|
|
|
|
|
|
|
|
|
|
|
%description gtk3-devel
|
|
|
|
%description gtk3-devel
|
|
|
|
The %{name}-gtk3-devel package contains libraries and header files for
|
|
|
|
The %{name}-gtk3-devel package contains libraries and header files for
|
|
|
@ -146,20 +136,12 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
The %{name}-tools package contains helper tools for developing applications
|
|
|
|
The %{name}-tools package contains helper tools for developing applications
|
|
|
|
that use %{name}.
|
|
|
|
that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%package gtk3-tests
|
|
|
|
|
|
|
|
Summary: Test tools for the dbusmenu libraries
|
|
|
|
|
|
|
|
Requires: %{name}-gtk3%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description gtk3-tests
|
|
|
|
|
|
|
|
The %{name}-tests package contains test tools that use %{name}-gtk3.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version} -c
|
|
|
|
%setup -q -n %{name}-%{version} -c
|
|
|
|
|
|
|
|
|
|
|
|
pushd %{name}-%{version}
|
|
|
|
pushd %{name}-%{version}
|
|
|
|
%patch 0 -p1
|
|
|
|
%patch0 -p1
|
|
|
|
autoreconf -fiv
|
|
|
|
autoreconf -fiv
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
@ -176,36 +158,24 @@ build(){
|
|
|
|
pushd %{name}-gtk3-%{version}
|
|
|
|
pushd %{name}-gtk3-%{version}
|
|
|
|
sed -i -e 's@^#!.*python$@#!/usr/bin/python2@' tools/dbusmenu-bench
|
|
|
|
sed -i -e 's@^#!.*python$@#!/usr/bin/python2@' tools/dbusmenu-bench
|
|
|
|
build --with-gtk=3
|
|
|
|
build --with-gtk=3
|
|
|
|
cd tests
|
|
|
|
|
|
|
|
# Need dbus-test-runner package for other tests.
|
|
|
|
|
|
|
|
make test-glib-simple-items
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with gtk2}
|
|
|
|
|
|
|
|
pushd %{name}-%{version}
|
|
|
|
pushd %{name}-%{version}
|
|
|
|
sed -i -e 's@^#!.*python$@#!/usr/bin/python2@' tools/dbusmenu-bench
|
|
|
|
sed -i -e 's@^#!.*python$@#!/usr/bin/python2@' tools/dbusmenu-bench
|
|
|
|
build --with-gtk=2
|
|
|
|
build --with-gtk=2
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
pushd %{name}-gtk3-%{version}
|
|
|
|
pushd %{name}-gtk3-%{version}
|
|
|
|
%make_install
|
|
|
|
%make_install
|
|
|
|
find %{buildroot} -name '*.la' -delete
|
|
|
|
find %{buildroot} -name '*.la' -delete
|
|
|
|
install -pm 755 -D test-driver \
|
|
|
|
|
|
|
|
$RPM_BUILD_ROOT%{_libexecdir}/%{name}-gtk3/test-driver
|
|
|
|
|
|
|
|
install -pm 755 -D tests/.libs/test-glib-simple-items \
|
|
|
|
|
|
|
|
$RPM_BUILD_ROOT%{_libexecdir}/%{name}-gtk3/test-glib-simple-items
|
|
|
|
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with gtk2}
|
|
|
|
|
|
|
|
pushd %{name}-%{version}
|
|
|
|
pushd %{name}-%{version}
|
|
|
|
%make_install
|
|
|
|
%make_install
|
|
|
|
find %{buildroot} -name '*.la' -delete
|
|
|
|
find %{buildroot} -name '*.la' -delete
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 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}
|
|
|
@ -224,9 +194,7 @@ done
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
%if %{with gtk2}
|
|
|
|
|
|
|
|
%ldconfig_scriptlets gtk2
|
|
|
|
%ldconfig_scriptlets gtk2
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%ldconfig_scriptlets gtk3
|
|
|
|
%ldconfig_scriptlets gtk3
|
|
|
|
%ldconfig_scriptlets jsonloader
|
|
|
|
%ldconfig_scriptlets jsonloader
|
|
|
|
|
|
|
|
|
|
|
@ -260,11 +228,9 @@ 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
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with gtk2}
|
|
|
|
|
|
|
|
%files gtk2
|
|
|
|
%files gtk2
|
|
|
|
%{_libdir}/libdbusmenu-gtk.so.*
|
|
|
|
%{_libdir}/libdbusmenu-gtk.so.*
|
|
|
|
%{_libdir}/girepository-1.0/DbusmenuGtk-0.4.typelib
|
|
|
|
%{_libdir}/girepository-1.0/DbusmenuGtk-0.4.typelib
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files gtk3-devel
|
|
|
|
%files gtk3-devel
|
|
|
|
%dir %{_includedir}/libdbusmenu-gtk3-0.4
|
|
|
|
%dir %{_includedir}/libdbusmenu-gtk3-0.4
|
|
|
@ -275,7 +241,6 @@ 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
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with gtk2}
|
|
|
|
|
|
|
|
%files gtk2-devel
|
|
|
|
%files gtk2-devel
|
|
|
|
%dir %{_includedir}/libdbusmenu-gtk-0.4
|
|
|
|
%dir %{_includedir}/libdbusmenu-gtk-0.4
|
|
|
|
%dir %{_includedir}/libdbusmenu-gtk-0.4/libdbusmenu-gtk
|
|
|
|
%dir %{_includedir}/libdbusmenu-gtk-0.4/libdbusmenu-gtk
|
|
|
@ -284,7 +249,6 @@ done
|
|
|
|
%{_libdir}/pkgconfig/dbusmenu-gtk-0.4.pc
|
|
|
|
%{_libdir}/pkgconfig/dbusmenu-gtk-0.4.pc
|
|
|
|
%{_datadir}/gir-1.0/DbusmenuGtk-0.4.gir
|
|
|
|
%{_datadir}/gir-1.0/DbusmenuGtk-0.4.gir
|
|
|
|
%{_datadir}/vala/vapi/DbusmenuGtk-0.4.vapi
|
|
|
|
%{_datadir}/vala/vapi/DbusmenuGtk-0.4.vapi
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%files doc
|
|
|
|
%dir %{_datadir}/gtk-doc/
|
|
|
|
%dir %{_datadir}/gtk-doc/
|
|
|
@ -296,51 +260,7 @@ done
|
|
|
|
%dir %{_datadir}/%{name}/json/
|
|
|
|
%dir %{_datadir}/%{name}/json/
|
|
|
|
%{_datadir}/%{name}/json/test-gtk-label.json
|
|
|
|
%{_datadir}/%{name}/json/test-gtk-label.json
|
|
|
|
|
|
|
|
|
|
|
|
%files gtk3-tests
|
|
|
|
|
|
|
|
%{_libexecdir}/%{name}-gtk3/test-glib-simple-items
|
|
|
|
|
|
|
|
%{_libexecdir}/%{name}-gtk3/test-driver
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 16.04.0-32
|
|
|
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 12 2024 Takao Fujiwara <fujiwara@redhat.com> - 16.04.0-31
|
|
|
|
|
|
|
|
- Remove Xvfb dependency
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 16.04.0-30
|
|
|
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun May 12 2024 Takao Fujiwara <fujiwara@redhat.com> - 16.04.0-29
|
|
|
|
|
|
|
|
- Add gtk3-tests sub package
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat May 11 2024 Takao Fujiwara <fujiwara@redhat.com> - 16.04.0-28
|
|
|
|
|
|
|
|
- Add CI
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 16.04.0-27
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 16.04.0-26
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Nov 06 2023 Tomas Popela <tpopela@redhat.com> - 16.04.0-25
|
|
|
|
|
|
|
|
- Drop the requirements on dbus-glib as the project was migrated to GDBus
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Nov 02 2023 Tomas Popela <tpopela@redhat.com> - 16.04.0-24
|
|
|
|
|
|
|
|
- Build require GTK+ 2 conditionally (follow up fix for previous change)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Oct 10 2023 Takao Fujiwara <fujiwara@redhat.com> - 16.04.0-23
|
|
|
|
|
|
|
|
- Delete GTK2 sub packages for RHEL
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 16.04.0-22
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 16.04.0-21
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 16.04.0-20
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 16.04.0-19
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 16.04.0-19
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|