File mingw32-dbus-1.spec of Package mingw32-dbus-1

%define __strip %{_mingw32_strip}
%define __objdump %{_mingw32_objdump}
%define _use_internal_dependency_generator 0
%define __find_requires %{_mingw32_findrequires}
%define __find_provides %{_mingw32_findprovides}
%define __os_install_post %{_mingw32_debug_install_post} \
                          %{_mingw32_install_post}

Name:           mingw32-dbus-1
Version:        1.4.16
Release:        0
Summary:        D-Bus Message Bus System

License:        Dual GPLv2 or AFLv2.1
Group:          Development/Libraries
Url:            http://dbus.freedesktop.org/
Source:         http://dbus.freedesktop.org/releases/dbus/dbus-%{version}.tar.gz
Patch0:         dbus-1.4.0-filename.patch
Patch1:         dbus-1.4.0-interface.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildArch:      noarch
#!BuildIgnore: post-build-checks

BuildRequires:  mingw32-filesystem
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-pkg-config
BuildRequires:  mingw32-win_iconv-devel
BuildRequires:  mingw32-libexpat-devel

%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. 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

%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).


%{_mingw32_debug_package}

%prep
%setup -q -n dbus-%{version}
# %%patch0 -p0 -b .filename
%patch1 -p1 -b .interface


%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
%{_mingw32_configure} \
	--enable-maintainer-mode --disable-static \
	--enable-verbose-mode --disable-tests \
	--enable-checks --enable-asserts
make %{?_smp_mflags} || make


%install
make DESTDIR=$RPM_BUILD_ROOT install

rm -f $RPM_BUILD_ROOT%{_mingw32_mandir}/man1/dbus-uuidgen.1*
rm -f $RPM_BUILD_ROOT%{_mingw32_mandir}/man1/dbus-cleanup-sockets.1*


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root)
%{_mingw32_bindir}/libdbus-1-3.dll
%{_mingw32_bindir}/dbus-monitor.exe
%{_mingw32_bindir}/dbus-launch.exe
%{_mingw32_bindir}/dbus-send.exe
%{_mingw32_bindir}/dbus-daemon.exe
%{_mingw32_mandir}/man1/dbus-send.1*
%{_mingw32_mandir}/man1/dbus-launch.1*
%{_mingw32_mandir}/man1/dbus-monitor.1*
%{_mingw32_mandir}/man1/dbus-daemon.1*
%{_mingw32_sysconfdir}/dbus-1/session.conf
%dir %{_mingw32_sysconfdir}/dbus-1/session.d
%{_mingw32_sysconfdir}/dbus-1/system.conf
%dir %{_mingw32_sysconfdir}/dbus-1/system.d
%dir %{_mingw32_datadir}/dbus-1/services
%dir %{_mingw32_datadir}/dbus-1/system-services
%dir %{_mingw32_localstatedir}/lib/dbus
%dir %{_mingw32_localstatedir}/run/dbus

%files devel
%defattr(-,root,root)
%{_mingw32_includedir}/dbus-1.0/dbus/*.h
%{_mingw32_libdir}/libdbus-1.dll.a
%{_mingw32_libdir}/pkgconfig/dbus-1.pc
%{_mingw32_libdir}/dbus-1.0/include/dbus/dbus-arch-deps.h

%{_mingw32_datadir}/doc/dbus/dbus-faq.html
%{_mingw32_datadir}/doc/dbus/dbus-specification.html
%{_mingw32_datadir}/doc/dbus/dbus-test-plan.html
%{_mingw32_datadir}/doc/dbus/dbus-tutorial.html
%{_mingw32_datadir}/doc/dbus/diagram.png
%{_mingw32_datadir}/doc/dbus/diagram.svg
%{_mingw32_datadir}/doc/dbus/system-activation.txt

%changelog
openSUSE Build Service is sponsored by