2013-11-25 21:47:49 +01:00
|
|
|
#
|
2013-12-18 21:51:22 +01:00
|
|
|
# spec file for package libdbusmenu-qt5
|
2013-11-25 21:47:49 +01:00
|
|
|
#
|
2014-02-06 03:45:52 +01:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2013-11-25 21:47:49 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2013-12-18 21:51:22 +01:00
|
|
|
|
2013-11-25 21:54:08 +01:00
|
|
|
%define rname libdbusmenu-qt
|
2013-11-25 21:47:49 +01:00
|
|
|
|
2013-11-25 21:54:08 +01:00
|
|
|
Name: libdbusmenu-qt5
|
2014-09-15 21:45:41 +02:00
|
|
|
Version: 0.9.3+14.10.20140619
|
2013-11-25 21:47:49 +01:00
|
|
|
Release: 0
|
|
|
|
Url: https://launchpad.net/libdbusmenu-qt/
|
|
|
|
Summary: A Qt implementation of the DBusMenu protocol
|
|
|
|
License: LGPL-2.0+
|
|
|
|
Group: System/Libraries
|
2014-09-15 21:45:41 +02:00
|
|
|
Source: http://archive.ubuntu.com/ubuntu/pool/main/libd/%{rname}/%{rname}_%{version}.orig.tar.gz
|
|
|
|
Source1: baselibs.conf
|
2013-11-25 21:47:49 +01:00
|
|
|
# PATCH-FIX-UPSTREAM noqDebug-qWarnings.patch -- libdbusmenu uses it's own qDebug's and qWarnings,
|
|
|
|
# which are useless, and annoy users, so this patch just disables them in release mode
|
|
|
|
Patch1: noqDebug-qWarnings.patch
|
2014-09-15 22:11:44 +02:00
|
|
|
# PATCH-FIX-UPSTREAM full_include_dir.patch -- CMake 2.8.12 creates a fatal error on relative include dirs for a target. silence that policy
|
|
|
|
Patch2: full_include_dir.patch
|
2013-11-25 21:47:49 +01:00
|
|
|
#Needed for DISABLE_FIND_PACKAGE
|
|
|
|
BuildRequires: cmake >= 2.8.6
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: pkgconfig(Qt5Core)
|
2014-02-06 03:45:52 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5DBus)
|
|
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
2013-12-18 21:51:22 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-11-25 21:47:49 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
This library provides a Qt implementation of the DBusMenu protocol.
|
|
|
|
|
|
|
|
The DBusMenu protocol makes it possible for applications to export and import
|
2013-11-25 21:54:08 +01:00
|
|
|
their menus over DBus. Qt5 library
|
2013-11-25 21:47:49 +01:00
|
|
|
|
|
|
|
%package -n libdbusmenu-qt5-2
|
|
|
|
Summary: Development package for dbusmenu-qt5
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libdbusmenu-qt5-2
|
|
|
|
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. Qt5 library
|
|
|
|
|
|
|
|
%package -n libdbusmenu-qt5-devel
|
|
|
|
Summary: Development package for libdbusmenu-qt5
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
Requires: libdbusmenu-qt5-2 = %{version}
|
|
|
|
Requires: pkgconfig(Qt5Core)
|
|
|
|
|
|
|
|
%description -n libdbusmenu-qt5-devel
|
|
|
|
This package contains development files for libdbusmenu-qt5.
|
|
|
|
|
|
|
|
%prep
|
2013-11-25 21:54:08 +01:00
|
|
|
%setup -q -n %{rname}-%{version}
|
2013-11-25 21:47:49 +01:00
|
|
|
%patch1 -p1
|
2014-09-15 22:11:44 +02:00
|
|
|
%if 0%{?suse_version} <= 1310
|
2014-09-15 21:56:38 +02:00
|
|
|
%patch2 -p1
|
2014-09-15 22:11:44 +02:00
|
|
|
%endif
|
2013-11-25 21:47:49 +01:00
|
|
|
|
|
|
|
# Remove build time references so build-compare can do its work
|
|
|
|
sed -i "s/HTML_TIMESTAMP = YES/HTML_TIMESTAMP = NO/" Doxyfile.in
|
|
|
|
|
|
|
|
%build
|
2013-11-25 21:54:08 +01:00
|
|
|
mkdir build
|
|
|
|
pushd build
|
2013-11-25 21:47:49 +01:00
|
|
|
export CFLAGS="%{optflags} -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_WARNING_OUTPUT"
|
|
|
|
export CXXFLAGS="%{optflags} -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_WARNING_OUTPUT"
|
|
|
|
export LDFLAGS="-Wl,-Bsymbolic-functions $LDFLAGS"
|
|
|
|
_libsuffix=$(echo %{_lib} | cut -b4-)
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
|
|
|
|
-DLIB_SUFFIX="$_libsuffix" \
|
|
|
|
-DUSE_QT5=ON \
|
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_QJSON=TRUE \
|
|
|
|
-DCMAKE_BUILD_TYPE=release ..
|
|
|
|
make %{?_smp_mflags} VERBOSE=1
|
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
2013-11-25 21:54:08 +01:00
|
|
|
%makeinstall -C build
|
2013-11-25 21:47:49 +01:00
|
|
|
|
|
|
|
# Install the documentation in the correct location
|
|
|
|
mkdir -p %{buildroot}%{_docdir}/libdbusmenu-qt5-devel
|
|
|
|
mv %{buildroot}%{_datadir}/doc/libdbusmenu-qt5-doc/ %{buildroot}%{_docdir}/libdbusmenu-qt5-devel/html/
|
|
|
|
# Install additional documentation
|
|
|
|
install -pm 0644 COPYING NEWS README %{buildroot}%{_docdir}/libdbusmenu-qt5-devel/
|
|
|
|
|
|
|
|
%fdupes -s %{buildroot}%{_docdir}/libdbusmenu-qt5-devel/
|
|
|
|
|
|
|
|
%post -n libdbusmenu-qt5-2 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libdbusmenu-qt5-2 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libdbusmenu-qt5-2
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/libdbusmenu-qt5.so.2*
|
|
|
|
|
|
|
|
%files -n libdbusmenu-qt5-devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc %{_docdir}/libdbusmenu-qt5-devel/
|
|
|
|
%{_libdir}/libdbusmenu-qt5.so
|
|
|
|
%{_includedir}/dbusmenu-qt5/
|
|
|
|
%{_libdir}/pkgconfig/dbusmenu-qt5.pc
|
2013-12-18 22:09:56 +01:00
|
|
|
%{_libdir}/cmake/dbusmenu-qt5/
|
2013-11-25 21:47:49 +01:00
|
|
|
|
|
|
|
%changelog
|