File mingw64-gnome-vfs2.spec of Package mingw64-gnome-vfs2
#
# spec file for package mingw64-gnome-vfs2
#
# 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-gnome-vfs2
Version: 2.24.4
Release: 0
Summary: MinGW Windows port of the GNOME 2.x Desktop Virtual File System Libraries
License: LGPL-2.0-only or MPL-1.1
Group: Development/Libraries
Url: ftp://ftp.gnome.org/pub/gnome/sources/gnome-vfs
Source0: ftp://ftp.gnome.org/pub/gnome/sources/gnome-vfs/2.24/gnome-vfs-%{version}.tar.bz2
Source1000: %{name}-rpmlintrc
Patch0: gnome-vfs-2.24.2-xdgmime_win32.patch
Patch1: gnome-vfs-2.24.0-build.patch
Patch2: gnome-vfs-2.24.1-w2k.patch
Patch3: gnome-vfs-2.24.4-gthread.patch
Patch4: gnome-vfs-2.24.4-nosrcdir.patch
Patch5: gnome-vfs-2.24.4-memmove.patch
#!BuildIgnore: post-build-checks
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gconf2
BuildRequires: gconf2-devel
BuildRequires: gnome-common
BuildRequires: gtk-doc
BuildRequires: intltool
BuildRequires: libidl
BuildRequires: libidl-devel
BuildRequires: libtool
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem >= 23
BuildRequires: mingw64-gconf2-devel
BuildRequires: mingw64-gettext-tools
BuildRequires: mingw64-glib2-devel
BuildRequires: mingw64-gnome-mime-data
BuildRequires: mingw64-libbz2-devel
BuildRequires: mingw64-libxml2-devel
BuildRequires: mingw64-zlib-devel
BuildRequires: orbit2
BuildRequires: orbit2-devel
Requires: %{name}-lang = %{version}
%_mingw64_package_header_debug
BuildArch: noarch
%description
MinGW Windows port of the GNOME 2.x Desktop Virtual File System Libraries.
%package devel
Summary: MinGWMinGW Windows port of the GNOME 2.x Desktop Virtual File System Libraries (development files)
Group: Development/Libraries
%description devel
MinGW Windows port of the GNOME 2.x Desktop Virtual File System Libraries (development files).
%_mingw64_debug_package
%lang_package
%prep
%setup -q -n gnome-vfs-%{version}
%patch -P 0 -b .xdgmime_win32
%patch -P 1 -p1 -b .build
%patch -P 2 -b .w2k
%patch -P 3 -p1 -b .gthread
%patch -P 4 -p1 -b .nosrcdir
%patch -P 5 -p1 -b .memmove
%build
ACLOCAL_FLAGS="-I %{_mingw64_datadir}/aclocal" AUTOMAKE="automake" NOCONFIGURE="indeed" ./autogen.sh
(echo "ne_cv_fmt_off_t=I64d"
echo "ne_cv_fmt_size_t=I64u"
echo "ne_cv_fmt_ssize_t=I64d"
echo "lt_cv_deplibs_check_method='pass_all'") >>%{_mingw64_cache}
ORBIT_IDL=`which orbit-idl-2`; export ORBIT_IDL
%{_mingw64_configure} --without-x --disable-samba \
--disable-openssl --disable-avahi \
--disable-howl --disable-hal \
--enable-shared --disable-static
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}
%install
%{_mingw64_make} DESTDIR=%{buildroot} install
rm -f %{buildroot}%{_mingw64_libdir}/gnome-vfs-2.0/modules/*.dll.a
rm -f %{buildroot}%{_mingw64_libdir}/gnome-vfs-2.0/modules/*.la
%find_lang gnome-vfs-2.0
%files
%defattr(-,root,root)
%{_mingw64_sysconfdir}/gconf/schemas
%{_mingw64_sysconfdir}/gnome-vfs-2.0/modules
%{_mingw64_bindir}/gnomevfs-*.exe
%{_mingw64_libdir}/gnome-vfs-2.0/modules/*.dll
%{_mingw64_bindir}/libgnomevfs-2-0.dll
%{_mingw64_datadir}/dbus-1/services/gnome-vfs-daemon.service
%files lang -f gnome-vfs-2.0.lang
%defattr(-,root,root)
%files devel
%defattr(-,root,root)
%{_mingw64_includedir}/gnome-vfs-2.0/libgnomevfs
%{_mingw64_includedir}/gnome-vfs-module-2.0/libgnomevfs
%{_mingw64_libdir}/gnome-vfs-2.0/include
%{_mingw64_libdir}/libgnomevfs-2.dll.a
%{_mingw64_libdir}/pkgconfig/gnome-vfs-2.0.pc
%{_mingw64_libdir}/pkgconfig/gnome-vfs-module-2.0.pc
%{_mingw64_datadir}/gtk-doc/html/gnome-vfs-2.0
%changelog