|
|
|
|
|
|
|
%if 0%{?rhel} == 6
|
|
|
|
%define cmake_pkg cmake28
|
|
|
|
%else
|
|
|
|
%define cmake_pkg cmake
|
|
|
|
%endif
|
|
|
|
|
|
|
|
Summary: A Qt implementation of the DBusMenu protocol
|
|
|
|
Name: dbusmenu-qt
|
|
|
|
Version: 0.9.2
|
|
|
|
Release: 8%{?dist}
|
|
|
|
|
|
|
|
License: LGPLv2+
|
|
|
|
URL: https://launchpad.net/libdbusmenu-qt/
|
|
|
|
Source0 https://launchpad.net/libdbusmenu-qt/trunk/%{version}/+download/libdbusmenu-qt-%{version}.tar.bz2
|
|
|
|
|
|
|
|
## upstream patches
|
|
|
|
|
|
|
|
BuildRequires: %{cmake_pkg}
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig(QJson)
|
|
|
|
BuildRequires: pkgconfig(QtDBus) pkgconfig(QtGui)
|
|
|
|
# test-suite
|
|
|
|
BuildRequires: xorg-x11-server-Xvfb dbus-x11
|
|
|
|
|
|
|
|
Provides: libdbusmenu-qt = %{version}-%{release}
|
|
|
|
|
|
|
|
%description
|
|
|
|
This library provides a Qt implementation of the DBusMenu protocol.
|
|
|
|
|
|
|
|
The DBusMenu protocol makes it possible for applications to export and import
|
|
|
|
their menus over DBus.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Provides: libdbusmenu-devel = %{version}-%{release}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
%description devel
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n libdbusmenu-qt-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
mkdir -p %{_target_platform}
|
|
|
|
pushd %{_target_platform}
|
|
|
|
%{?cmake28}%{!?cmake28:%{?cmake}} \
|
|
|
|
..
|
|
|
|
popd
|
|
|
|
|
|
|
|
make %{?_smp_mflags} -C %{_target_platform}
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
|
|
|
|
|
|
|
|
# unpackaged files
|
|
|
|
rm -rfv %{buildroot}%{_docdir}/dbusmenu-qt
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
# verify pkg-config version
|
|
|
|
export PKG_CONFIG_PATH=%{buildroot}%{_datadir}/pkgconfig:%{buildroot}%{_libdir}/pkgconfig
|
|
|
|
test "$(pkg-config --modversion dbusmenu-qt)" = "%{version}"
|
|
|
|
# test suite
|
|
|
|
xvfb-run -a dbus-launch --exit-with-session make -C %{_target_platform} check ARGS="--output-on-failure" ||:
|
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc COPYING README
|
|
|
|
%{_libdir}/libdbusmenu-qt.so.2*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%doc %{_target_platform}/html/
|
|
|
|
%{_includedir}/dbusmenu-qt/
|
|
|
|
%{_libdir}/libdbusmenu-qt.so
|
|
|
|
%{_libdir}/pkgconfig/dbusmenu-qt.pc
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.2-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.2-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
|
|
|
* Fri Jan 24 2014 Rex Dieter <rdieter@fedoraproject.org> 0.9.2-6
|
|
|
|
- .spec cleanup, %%check harder
|
|
|
|
|
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.2-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
|
|
|
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.2-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
|
|
|
* Mon Oct 08 2012 Than Ngo <than@redhat.com> - 0.9.2-3
|
|
|
|
- fix url
|
|
|
|
|
|
|
|
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
|
|
|
* Mon Apr 30 2012 Rex Dieter <rdieter@fedoraproject.org> 0.9.2-1
|
|
|
|
- 0.9.2
|
|
|
|
|
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
|
|
|
* Tue Dec 27 2011 Rex Dieter <rdieter@fedoraproject.org> 0.9.0-2
|
|
|
|
- fix %%check
|
|
|
|
|
|
|
|
* Sat Oct 01 2011 Rex Dieter <rdieter@fedoraproject.org> 0.9.0-1
|
|
|
|
- 0.9.0
|
|
|
|
- pkgconfig-style deps
|
|
|
|
|
|
|
|
* Thu Jun 16 2011 Rex Dieter <rdieter@fedoraproject.org> 0.8.2-2
|
|
|
|
- rebuild
|
|
|
|
|
|
|
|
* Fri May 20 2011 Rex Dieter <rdieter@fedoraproject.org> 0.8.2-1
|
|
|
|
- 0.8.2
|
|
|
|
|
|
|
|
* Fri May 20 2011 Rex Dieter <rdieter@fedoraproject.org> 0.6.6-1
|
|
|
|
- 0.6.6
|
|
|
|
|
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
|
|
|
* Wed Sep 29 2010 jkeating - 0.6.3-2
|
|
|
|
- Rebuilt for gcc bug 634757
|
|
|
|
|
|
|
|
* Tue Sep 21 2010 Rex Dieter <rdieter@fedoraproject.org> 0.6.3-1
|
|
|
|
- dbusmenu-qt-0.6.3
|
|
|
|
- include kubuntu_00_external_contributions.diff
|
|
|
|
|
|
|
|
* Fri Aug 06 2010 Rex Dieter <rdieter@fedoraproject.org> 0.5.2-1
|
|
|
|
- dbusmenu-qt-0.5.2
|
|
|
|
|
|
|
|
* Fri May 21 2010 Rex Dieter <rdieter@fedoraproject.org> 0.3.3-1
|
|
|
|
- dbusmenu-qt-0.3.3
|
|
|
|
|
|
|
|
* Sun Apr 25 2010 Rex Dieter <rdieter@fedoraproject.org> 0.3.2-2
|
|
|
|
- pkg rename s/libdbusmenu-qt/dbusmenu-qt/
|
|
|
|
- Provides: libdbusmenu-qt(-devel)
|
|
|
|
|
|
|
|
* Sun Apr 25 2010 Rex Dieter <rdieter@fedoraproject.org> 0.3.2-1
|
|
|
|
- dbusmenu-qt-0.3.2
|
|
|
|
|