File mingw64-dbus-1-installer.spec of Package mingw64-dbus-1

#
# spec file for package mingw64-dbus-1-installer
#
# 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/
#


%define _name   dbus-1
Name:           mingw64-%{_name}-installer
Version:        1.14.10
Release:        0
Summary:        DBus - Message Bus System
License:        GPL-2.0-only and AFL-2.1
Group:          Development/Tools/Other
Url:            http://dbus.freedesktop.org/
Source:         dbus-%{version}.tar.xz
BuildRequires:  mingw64-installer-base
BuildRequires:  mingw64-%{_name}
BuildRequires:  mingw64-%{_name}-devel
# debug packages
BuildRequires:  mingw64-%{_name}-debug
BuildRequires:  mingw64-expat-debug

BuildRequires:  mingw64-libdbus-1-3
BuildRequires:  mingw64-libqt4
BuildRequires:  mingw64-libqt4-tools-dbus
BuildArch:      noarch

%description
This package contains a setup installer of DBus, a message bus system

%_mingw64_installer_package -n mingw64-%{_name} -p DBus-1 -P "DBus-1, a message bus system"

%prep
%_mingw64_installer_prep 

%build
# replace ยง, which is unsupported by nsis
license_file=$PWD/COPYING.txt
sed 's,\xc3\x82\xc2\xa7,clause,g' /usr/share/doc/packages/mingw64-dbus-1/COPYING > $license_file
%_mingw64_installer_build -p dbus-1 -P DBus-1 -l $license_file -r mingw64-%{_name} -s %{SOURCE0}

%install
%_mingw64_installer_install

%changelog
openSUSE Build Service is sponsored by