File mingw64-gconf2.spec of Package mingw64-gconf2

#
# spec file for package mingw64-gconf2
#
# 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-gconf2
Version:        2.29.1
Release:        0
Summary:        MinGW Windows port of the GNOME 2.x Desktop Configuration Database System
License:        LGPL-2.0-only or MPL-1.1
Group:          Development/Libraries
Url:            ftp://ftp.gnome.org/pub/gnome/sources/GConf
Source0:        http://git.moblin.org/cgit.cgi/gconf-dbus/snapshot/gconf-dbus-%{version}.tar.bz2
Source1000:     %{name}-rpmlintrc
Patch0:         gconf-dbus-2.29.1-windows.patch
#!BuildIgnore: post-build-checks
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  glib2-devel
BuildRequires:  gnome-common
BuildRequires:  gtk-doc
BuildRequires:  intltool
BuildRequires:  libtool
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-dbus-1-devel
BuildRequires:  mingw64-dbus-1-glib-devel
BuildRequires:  mingw64-filesystem >= 23
BuildRequires:  mingw64-glib2-devel
BuildRequires:  mingw64-gtk2-devel
BuildRequires:  mingw64-libxml2-devel
Requires:       %{name}-lang = %{version}
%_mingw64_package_header_debug
BuildArch:      noarch

%description
MinGW Windows port of GConf, the GNOME configuration database. It is used by the GNOME 2.x
Desktop platform.

%package devel
Summary:        MinGW Windows port of the GNOME 2.x Desktop Configuration Database System (development files)
Group:          Development/Libraries

%description devel
MinGW Windows port of GConf, the GNOME configuration database. It is used by the GNOME 2.x
Desktop platform (development files).

%_mingw64_debug_package

%lang_package

%prep
%setup -q -n gconf-dbus-%{version}

%patch -P 0 -p1 -b .windows

%build
AUTOMAKE=`which automake` \
NOCONFIGURE=indeed ./autogen.sh --no-configure
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
PATH="%{_mingw64_bindir}:$PATH" \
%{_mingw64_configure} \
	--enable-shared --disable-static \
	--without-openldap --disable-defaults-service
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}

%install

%{_mingw64_make} DESTDIR=%{buildroot} install

rm -f %{buildroot}%{_mingw64_libdir}/GConf-dbus/2/*.dll.a

%find_lang GConf2

%files
%defattr(-,root,root)
%{_mingw64_sysconfdir}/gconf/2/path
%{_mingw64_sysconfdir}/gconf/gconf.xml.*
%{_mingw64_bindir}/gconf-merge-tree.exe
%{_mingw64_bindir}/gconftool-2.exe
%{_mingw64_bindir}/libgconf-2-4.dll
%{_mingw64_libexecdir}/gconf-sanity-check-2.exe
%{_mingw64_libexecdir}/gconfd-2.exe
%{_mingw64_libdir}/GConf-dbus/2/libgconfbackend-oldxml.dll
%{_mingw64_libdir}/GConf-dbus/2/libgconfbackend-xml.dll
%{_mingw64_datadir}/dbus-1/services/gconf.service
%{_mingw64_mandir}/man1
%{_mingw64_datadir}/sgml/gconf/gconf-1.0.dtd

%files lang -f GConf2.lang
%defattr(-,root,root)

%files devel
%defattr(-,root,root)
%{_mingw64_includedir}/gconf/2/gconf
%{_mingw64_libdir}/libgconf-2.dll.a
%{_mingw64_libdir}/pkgconfig/gconf-2.0.pc
%{_mingw64_datadir}/aclocal/gconf-2.m4
#%{_mingw64_datadir}/gtk-doc/html/gconf

%changelog
openSUSE Build Service is sponsored by