a398c92
%?mingw_package_header
a398c92
a398c92
%global _pkg_name libgsf
a398c92
a398c92
Summary:	MinGW build of structured file editing library
a398c92
Name:		mingw-%{_pkg_name}
e5c0a55
Version:	1.14.29
c73e13a
Release:	1%{?dist}
a398c92
License:	LGPLv2+
a398c92
URL:		http://www.gnome.org/
a398c92
Source:		ftp://ftp.gnome.org/pub/gnome/sources/libgsf/1.14/libgsf-%{version}.tar.xz
a398c92
Source101:	config64.cache
a398c92
a398c92
BuildArch:	noarch
a398c92
a398c92
BuildRequires:	mingw32-zlib
a398c92
BuildRequires:	mingw32-glib2
a398c92
BuildRequires:	mingw32-libxml2
a398c92
BuildRequires:	mingw32-gettext
a398c92
BuildRequires:	mingw32-bzip2
a398c92
BuildRequires:	mingw32-filesystem >= 95
a398c92
BuildRequires:	mingw32-gcc
a398c92
BuildRequires:	mingw32-gcc-c++
a398c92
BuildRequires:	mingw32-binutils
a398c92
a398c92
BuildRequires:	mingw64-zlib
a398c92
BuildRequires:	mingw64-glib2
a398c92
BuildRequires:	mingw64-libxml2
a398c92
BuildRequires:	mingw64-gettext
a398c92
BuildRequires:	mingw64-bzip2
a398c92
BuildRequires:	mingw64-filesystem >= 95
a398c92
BuildRequires:	mingw64-gcc
a398c92
BuildRequires:	mingw64-gcc-c++
a398c92
BuildRequires:	mingw64-binutils
a398c92
a398c92
BuildRequires:	autoconf
a398c92
BuildRequires:	automake
a398c92
BuildRequires:	libtool
a398c92
BuildRequires:	intltool
a398c92
BuildRequires:	gtk-doc
a398c92
a398c92
a398c92
%description
a398c92
MinGW Windows port of the library for reading and writing structured files.
a398c92
a398c92
a398c92
# Win32
a398c92
%package -n mingw32-%{_pkg_name}
a398c92
Summary:	%{summary}
a398c92
a398c92
%description -n mingw32-%{_pkg_name}
a398c92
MinGW Windows port of the library for reading and writing structured files.
a398c92
a398c92
%package -n mingw32-%{_pkg_name}-static
a398c92
Summary:	%{summary}
a398c92
Requires:	mingw32-%{_pkg_name} = %{version}-%{release}
a398c92
a398c92
%description -n mingw32-%{_pkg_name}-static
a398c92
Static version of the MinGW Windows libgsf library.
a398c92
a398c92
# Win64
a398c92
%package -n mingw64-%{_pkg_name}
a398c92
Summary:	%{summary}
a398c92
a398c92
%description -n mingw64-%{_pkg_name}
a398c92
MinGW Windows port of the library for reading and writing structured files.
a398c92
a398c92
%package -n mingw64-%{_pkg_name}-static
a398c92
Summary:	%{summary}
a398c92
Requires:	mingw64-%{_pkg_name} = %{version}-%{release}
a398c92
a398c92
%description -n mingw64-%{_pkg_name}-static
a398c92
Static version of the MinGW Windows libgsf library.
a398c92
a398c92
a398c92
%{?mingw_debug_package}
a398c92
a398c92
a398c92
%prep
a398c92
%setup -q -n %{_pkg_name}-%{version}
a398c92
a398c92
cp %{SOURCE101} .
a398c92
a398c92
%build
a398c92
MINGW64_CONFIGURE_ARGS="--cache=`pwd`/config64.cache"
a398c92
a398c92
%mingw_configure --enable-static --enable-shared \
a398c92
	--without-python
a398c92
%mingw_make %{?_smp_mflags}
a398c92
a398c92
a398c92
%install
a398c92
%mingw_make_install DESTDIR=$RPM_BUILD_ROOT
a398c92
a398c92
rm -r ${RPM_BUILD_ROOT}%{mingw32_mandir}/man1/
a398c92
rm -r ${RPM_BUILD_ROOT}%{mingw64_mandir}/man1/
a398c92
a398c92
# Drop all .la files
a398c92
find $RPM_BUILD_ROOT -name "*.la" -delete
a398c92
a398c92
%mingw_find_lang %{_pkg_name}
a398c92
a398c92
# Win32
a398c92
%files -n mingw32-%{_pkg_name} -f mingw32-%{_pkg_name}.lang
a398c92
%doc COPYING.LIB README ChangeLog
a398c92
%{mingw32_bindir}/libgsf-1-114.dll
a398c92
%{mingw32_bindir}/libgsf-win32-1-114.dll
a398c92
%{mingw32_bindir}/gsf.exe
a398c92
%{mingw32_bindir}/gsf-office-thumbnailer.exe
a398c92
%{mingw32_bindir}/gsf-vba-dump.exe
a398c92
%{mingw32_libdir}/libgsf-1.dll.a
a398c92
%{mingw32_libdir}/libgsf-win32-1.dll.a
a398c92
%{mingw32_libdir}/pkgconfig/libgsf-1.pc
a398c92
%{mingw32_libdir}/pkgconfig/libgsf-win32-1.pc
a398c92
%{mingw32_includedir}/libgsf-1/gsf
a398c92
%{mingw32_includedir}/libgsf-1/gsf-win32
a398c92
%{mingw32_datadir}/thumbnailers/gsf-office.thumbnailer
a398c92
a398c92
%files -n mingw32-%{_pkg_name}-static
a398c92
%{mingw32_libdir}/libgsf-win32-1.a
a398c92
%{mingw32_libdir}/libgsf-1.a
a398c92
a398c92
# Win64
a398c92
%files -n mingw64-%{_pkg_name} -f mingw64-%{_pkg_name}.lang
a398c92
%doc COPYING.LIB README ChangeLog
a398c92
%{mingw64_bindir}/libgsf-1-114.dll
a398c92
%{mingw64_bindir}/libgsf-win32-1-114.dll
a398c92
%{mingw64_bindir}/gsf.exe
a398c92
%{mingw64_bindir}/gsf-office-thumbnailer.exe
a398c92
%{mingw64_bindir}/gsf-vba-dump.exe
a398c92
%{mingw64_libdir}/libgsf-1.dll.a
a398c92
%{mingw64_libdir}/libgsf-win32-1.dll.a
a398c92
%{mingw64_libdir}/pkgconfig/libgsf-1.pc
a398c92
%{mingw64_libdir}/pkgconfig/libgsf-win32-1.pc
a398c92
%{mingw64_includedir}/libgsf-1/gsf
a398c92
%{mingw64_includedir}/libgsf-1/gsf-win32
a398c92
%{mingw64_datadir}/thumbnailers/gsf-office.thumbnailer
a398c92
a398c92
%files -n mingw64-%{_pkg_name}-static
a398c92
%{mingw64_libdir}/libgsf-win32-1.a
a398c92
%{mingw64_libdir}/libgsf-1.a
a398c92
a398c92
a398c92
%changelog
e5c0a55
* Mon Jan 06 2014 Greg Hellings <greg.hellings@gmail.com> - 1.14.29-1
e5c0a55
- Updated to new upstream version
e5c0a55
c73e13a
* Tue Sep 03 2013 Greg Hellings <greg.hellings@gmail.com> - 1.14.28-1
e5c0a55
- Updated to new upstream version
c73e13a
88afe3f
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.14.27-2
88afe3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
88afe3f
f20dee0
* Wed Jul 17 2013 Greg Hellings <greg.hellings@gmail.com> - 1.14.27-1
f20dee0
- Updated to new upstream version
f20dee0
6a82a07
* Sun Jun 16 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 1.14.26-2
6a82a07
- Rebuild to resolve InterlockedCompareExchange regression in mingw32 libraries
6a82a07
8cbb6cf
* Mon May 6 2013 Greg Hellings <greg.hellings@gmail.com> - 1.14.26-1
8cbb6cf
- Updated to new upstream version
8cbb6cf
66e7bec
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.14.25-2
66e7bec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
66e7bec
a398c92
* Tue Nov 20 2012 Greg Hellings <greg.hellings@gmail.com> - 1.14.25-1
a398c92
- Updated to reflect better Fedora/MinGW packaging adherence
a398c92
- Updated to new upstream version
a398c92
- Migrated to mingw_find_lang instead of explicit file inclusion
a398c92
a398c92
* Thu Aug 23 2012 Greg Hellings <greg.hellings@gmail.com> - 1.14.23-1
a398c92
- Initial import