File mingw64-libnotify.spec of Package mingw64-libnotify

#
# spec file for package mingw64-libnotify
#
# 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-libnotify
Version:        0.7.4
Release:        0
Summary:        Notifications Library
License:        LGPL-2.1-or-later
Group:          Development/Libraries/C and C++
Url:            http://developer.gnome.org/projects/gap/
Source:         http://download.gnome.org/sources/libnotify/1.32/libnotify-%{version}.tar.bz2
Patch0:         libnotify-0.7.4-windows.patch
# Need native one too for  glib-genmarshal
BuildRequires:  glib2-devel
#!BuildIgnore: post-build-checks
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem
BuildRequires:  mingw64-gdk-pixbuf-devel
BuildRequires:  mingw64-glib2-devel
BuildRequires:  mingw64-gtk3-devel
%_mingw64_package_header_debug
BuildArch:      noarch

%description
D-BUS notifications library.

%package -n mingw64-libnotify4
Summary:        Notifications Library
Group:          System/Libraries
Obsoletes:      %{name}
Provides:       %{name}

%description -n mingw64-libnotify4
D-BUS notifications library.

%package devel
Summary:        Notifications Library (development files)
Group:          Development/Libraries/C and C++

%description devel
D-BUS notifications library.

%package tools
Summary:        Notifications Library (development files)
Group:          Development/Libraries

%description tools
D-BUS notifications library.

%_mingw64_debug_package

%prep
%setup -q -n libnotify-%{version}
%patch -P 0 -p1 -b .windows

%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} --disable-static --enable-shared
make %{?_smp_mflags} || make

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}

%files -n mingw64-libnotify4
%defattr(-,root,root)
%{_mingw64_bindir}/libnotify-4.dll

%files devel
%defattr(-,root,root)
%{_mingw64_includedir}/libnotify
%{_mingw64_libdir}/libnotify.dll.a
%{_mingw64_libdir}/pkgconfig/libnotify.pc
%{_mingw64_datadir}/gtk-doc/html/libnotify

%files tools
%defattr(-,root,root)
%{_mingw64_bindir}/notify-send.exe

%changelog
openSUSE Build Service is sponsored by