File mingw-gnome-vfs2.spec of Package mingw-gnome-vfs2

%?mingw_package_header

%global mingw_build_win32 1
%global mingw_build_win64 1

Name:           mingw-gnome-vfs2
Version:        2.24.4
Release:        1%{?dist}
Summary:        MinGW Windows port of the GNOME 2.x Desktop Virtual File System Libraries

License:        LGPLv2 or MPLv1.1
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
Source100:	config32.cache
Source101:	config64.cache
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
Group:          Development/Libraries

BuildArch:      noarch

BuildRequires:  mingw32-filesystem >= 95
BuildRequires:  mingw32-gcc
BuildRequires:  mingw32-binutils
BuildRequires:  mingw32-pkg-config
BuildRequires:  mingw32-glib2
BuildRequires:  mingw32-GConf2
BuildRequires:  mingw32-bzip2
BuildRequires:  mingw32-libxml2
BuildRequires:  mingw32-gettext
BuildRequires:  mingw32-zlib
BuildRequires:  mingw32-gnome-mime-data

BuildRequires:  mingw64-filesystem >= 95
BuildRequires:  mingw64-gcc
BuildRequires:  mingw64-binutils
BuildRequires:  mingw64-pkg-config
BuildRequires:  mingw64-glib2
BuildRequires:  mingw64-GConf2
BuildRequires:  mingw64-bzip2
BuildRequires:  mingw64-libxml2
BuildRequires:  mingw64-gettext
BuildRequires:  mingw64-zlib
BuildRequires:  mingw64-gnome-mime-data

BuildRequires:  autoconf automake libtool gtk-doc
BuildRequires:  gnome-common intltool GConf2-devel GConf2
BuildRequires:  ORBit2 ORBit2-devel libIDL libIDL-devel


%description
MinGW Windows port of the GNOME 2.x Desktop Virtual File System Libraries.

# Dynamic
%package -n mingw32-gnome-vfs2
Summary:	MinGW Windows port of the GNOME 2.x Desktop Virtual File System Libraries

%description -n mingw32-gnome-vfs2
MinGW Windows port of the GNOME 2.x Desktop Virtual File System Libraries.

%package -n mingw64-gnome-vfs2
Summary:	MinGW Windows port of the GNOME 2.x Desktop Virtual File System Libraries

%description -n mingw64-gnome-vfs2
MinGW Windows port of the GNOME 2.x Desktop Virtual File System Libraries.

# Static
%package -n mingw32-gnome-vfs2-static
Summary:	MinGW Windows port of the GNOME 2.x Desktop Virtual File System Libraries
Requires:	mingw32-gnome-vfs2 = %{version}-%{release}

%description -n mingw32-gnome-vfs2-static
MinGW Windows port of the GNOME 2.x Desktop Virtual File System Libraries.

%package -n mingw64-gnome-vfs2-static
Summary:	MinGW Windows port of the GNOME 2.x Desktop Virtual File System Libraries
Requires:	mingw64-gnome-vfs2 = %{version}-%{release}

%description -n mingw64-gnome-vfs2-static
MinGW Windows port of the GNOME 2.x Desktop Virtual File System Libraries.

%?mingw_debug_package

%prep
%setup -q -n gnome-vfs-%{version}

%patch0 -p0 -b .xdgmime_win32
%patch1 -p1 -b .build
%patch2 -p0 -b .w2k

cp %{SOURCE100} %{SOURCE101} .

%build
MINGW32_CONFIGURE_ARGS="--cache=`pwd`/config32.cache"
MINGW64_CONFIGURE_ARGS="--cache=`pwd`/config64.cache"

ORBIT_IDL=`which orbit-idl-2`; export ORBIT_IDL
%mingw_configure --without-x --disable-samba \
 	--disable-openssl --disable-avahi \
	--disable-howl --disable-hal \
	--enable-shared --enable-static
%mingw_make %{?_smp_mflags} || %mingw_make


%install
%mingw_make_install DESTDIR=$RPM_BUILD_ROOT

find $RPM_BUILD_ROOT -name '*.la' -delete

%files -n mingw32-gnome-vfs2
%{mingw32_sysconfdir}/gconf/schemas
%{mingw32_sysconfdir}/gnome-vfs-2.0/modules
%{mingw32_bindir}/gnomevfs-*.exe
%{mingw32_bindir}/libgnomevfs-2-0.dll
%{mingw32_includedir}/gnome-vfs-module-2.0/libgnomevfs/
%{mingw32_includedir}/gnome-vfs-2.0/libgnomevfs/
%{mingw32_libdir}/gnome-vfs-2.0/modules/*.dll
%{mingw32_libdir}/gnome-vfs-2.0/modules/*.dll.a
%{mingw32_libdir}/pkgconfig/gnome-vfs-2.0.pc
%{mingw32_libdir}/pkgconfig/gnome-vfs-module-2.0.pc
%{mingw32_libdir}/libgnomevfs-2.dll.a
%{mingw32_libdir}/gnome-vfs-2.0/include/gnome-vfs-file-size.h
%{mingw32_datadir}/dbus-1/services/gnome-vfs-daemon.service
%{mingw32_datadir}/locale/
%{mingw32_datadir}/gtk-doc/

%files -n mingw32-gnome-vfs2-static
%{mingw32_libdir}/libgnomevfs-2.a
%{mingw32_libdir}/gnome-vfs-2.0/modules/libvfs-test.a
%{mingw32_libdir}/gnome-vfs-2.0/modules/libtar.a
%{mingw32_libdir}/gnome-vfs-2.0/modules/libgzip.a
%{mingw32_libdir}/gnome-vfs-2.0/modules/libfile.a
%{mingw32_libdir}/gnome-vfs-2.0/modules/libbzip2.a

%files -n mingw64-gnome-vfs2
%{mingw64_sysconfdir}/gconf/schemas
%{mingw64_sysconfdir}/gnome-vfs-2.0/modules
%{mingw64_bindir}/gnomevfs-*.exe
%{mingw64_bindir}/libgnomevfs-2-0.dll
%{mingw64_includedir}/gnome-vfs-module-2.0/libgnomevfs/
%{mingw64_includedir}/gnome-vfs-2.0/libgnomevfs/
%{mingw64_libdir}/gnome-vfs-2.0/modules/*.dll
%{mingw64_libdir}/gnome-vfs-2.0/modules/*.dll.a
%{mingw64_libdir}/pkgconfig/gnome-vfs-2.0.pc
%{mingw64_libdir}/pkgconfig/gnome-vfs-module-2.0.pc
%{mingw64_libdir}/libgnomevfs-2.dll.a
%{mingw64_libdir}/gnome-vfs-2.0/include/gnome-vfs-file-size.h
%{mingw64_datadir}/dbus-1/services/gnome-vfs-daemon.service
%{mingw64_datadir}/locale/
%{mingw64_datadir}/gtk-doc/

%files -n mingw64-gnome-vfs2-static
%{mingw64_libdir}/libgnomevfs-2.a
%{mingw64_libdir}/gnome-vfs-2.0/modules/libvfs-test.a
%{mingw64_libdir}/gnome-vfs-2.0/modules/libtar.a
%{mingw64_libdir}/gnome-vfs-2.0/modules/libgzip.a
%{mingw64_libdir}/gnome-vfs-2.0/modules/libfile.a
%{mingw64_libdir}/gnome-vfs-2.0/modules/libbzip2.a

%changelog
* Wed Aug 22 2012 Greg Hellings <greg.hellings@gmail.com> - 2.24.4-1
- Initial build
openSUSE Build Service is sponsored by