File mingw64-dbus-1.spec of Package mingw64-dbus-1
#
# spec file for package mingw64-dbus-1
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#
Name: mingw64-dbus-1
Version: 1.14.10
Release: 0
Summary: D-Bus Message Bus System
License: GPL-2.0-or-later or AFL-2.1
Group: Development/Libraries/C and C++
Url: http://dbus.freedesktop.org/
Source: http://dbus.freedesktop.org/releases/dbus/dbus-%{version}.tar.xz
Patch0: dbus-1.14.4-add-enable-relocation-force.patch
#!BuildIgnore: post-build-checks
BuildRequires: autoconf
BuildRequires: autoconf-archive
BuildRequires: automake
BuildRequires: libtool
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-libexpat-devel
BuildRequires: mingw64-win_iconv-devel
%_mingw64_package_header_debug
BuildArch: noarch
%description
D-Bus is a message bus system, a simple way for applications to talk to
one another. D-Bus supplies both a system daemon and a
per-user-login-session daemon.
%package -n mingw64-libdbus-1-3
Summary: MinGW Windows port of the D-Bus library
Group: System/Libraries
%description -n mingw64-libdbus-1-3
D-Bus is a message bus system, a simple way for applications to talk to
one another. D-Bus supplies both a system daemon and a
per-user-login-session daemon. Also, the message bus is built on top of
a general one-to-one message passing framework, which can be used by
any two apps to communicate directly (without going through the message
bus daemon).
%package devel
Summary: Developer package for D-Bus
Group: Development/Libraries/C and C++
Requires: mingw64-libdbus-1-3 = %{version}
%description devel
D-Bus is a message bus system, a simple way for applications to talk to
one another. D-Bus supplies both a system daemon and a
per-user-login-session daemon. Also, the message bus is built on top of
a general one-to-one message passing framework, which can be used by
any two apps to communicate directly (without going through the message
bus daemon).
%package tests
Summary: Tests package for D-Bus
Group: Development/Libraries/C and C++
%description tests
D-Bus is a message bus system, a simple way for applications to talk to
one another. D-Bus supplies both a system daemon and a
per-user-login-session daemon. Also, the message bus is built on top of
a general one-to-one message passing framework, which can be used by
any two apps to communicate directly (without going through the message
bus daemon).
%_mingw64_debug_package
%prep
%autosetup -p1 -n dbus-%{version}
%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
./autogen.sh --no-configure
# configure for install path limited session bus see https://bugs.freedesktop.org/show_bug.cgi?id=92080
%{_mingw64_configure} \
--enable-maintainer-mode --disable-static \
--enable-verbose-mode --enable-embedded-tests \
--enable-checks --enable-asserts \
--disable-xml-docs --disable-doxygen-docs \
--enable-relocation=force \
"--with-dbus-session-bus-listen-address=autolaunch:scope=*install-path" \
"--with-dbus-session-bus-connect-address=autolaunch:scope=*install-path;autolaunch:"
make %{?_smp_mflags} || make
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
mkdir -p %{buildroot}%{_mingw64_datadir}/dbus-1/interfaces
cp test/test-*.exe %{buildroot}%{_mingw64_bindir}
cp test/manual-*.exe %{buildroot}%{_mingw64_bindir}
# cp -a test %%{buildroot}/%%{_mingw64_datadir}/dbus-1/test
# fix E: env-script-interpreter
chmod 644 %{buildroot}/%{_mingw64_datadir}/doc/dbus/examples/GetAllMatchRules.py
# qt dynamic dbus support requires dll name 'dbus-1.dll'
(cd %{buildroot}%{_mingw64_bindir}; ln -s libdbus-1-3.dll dbus-1.dll)
%files
%defattr(-,root,root)
%doc COPYING README NEWS
%{_mingw64_bindir}/dbus-daemon.exe
%{_mingw64_bindir}/dbus-launch.exe
%{_mingw64_bindir}/dbus-monitor.exe
%{_mingw64_bindir}/dbus-run-session.exe
%{_mingw64_bindir}/dbus-send.exe
%{_mingw64_bindir}/dbus-update-activation-environment.exe
%{_mingw64_sysconfdir}/dbus-1/session.conf
%{_mingw64_datadir}/dbus-1/session.conf
%files -n mingw64-libdbus-1-3
%defattr(-,root,root)
%{_mingw64_bindir}/libdbus-1-3.dll
%{_mingw64_bindir}/dbus-1.dll
%dir %{_mingw64_datadir}/dbus-1/
%dir %{_mingw64_datadir}/dbus-1/interfaces
%dir %{_mingw64_datadir}/dbus-1/services
%dir %{_mingw64_datadir}/dbus-1/session.d
%dir %{_mingw64_localstatedir}/lib/dbus
%files devel
%defattr(-,root,root)
%{_mingw64_includedir}/dbus-1.0/dbus/*.h
%{_mingw64_libdir}/libdbus-1.dll.a
%{_mingw64_libdir}/pkgconfig/dbus-1.pc
%{_mingw64_libdir}/dbus-1.0/include/dbus/dbus-arch-deps.h
%dir %{_mingw64_libdir}/cmake/DBus1
%{_mingw64_libdir}/cmake/DBus1
%dir %{_mingw64_datadir}/xml/dbus-1/
%{_mingw64_datadir}/xml/dbus-1/
%{_mingw64_datadir}/xml/dbus-1
%{_mingw64_datadir}/doc/dbus/diagram.png
%{_mingw64_datadir}/doc/dbus/diagram.svg
%{_mingw64_datadir}/doc/dbus/system-activation.txt
%{_mingw64_datadir}/doc/dbus/examples/*
%files tests
%defattr(-,root,root)
%{_mingw64_bindir}/dbus-test-tool.exe
%{_mingw64_bindir}/manual-*.exe
%{_mingw64_bindir}/test-*.exe
# %%{_mingw64_datadir}/dbus-1/test
%changelog