Blame SPECS/mingw-gdk-pixbuf.spec

Packit 940286
%?mingw_package_header
Packit 940286
Packit 940286
# first two digits of version
Packit 940286
%global release_version %(echo %{version} | awk -F. '{print $1"."$2}')
Packit 940286
Packit 940286
Name:           mingw-gdk-pixbuf
Packit 940286
Version:        2.36.11
Packit 940286
Release:        3%{?dist}
Packit 940286
Summary:        MinGW Windows GDK Pixbuf library
Packit 940286
Packit 940286
License:        LGPLv2+
Packit 940286
URL:            http://www.gtk.org
Packit 940286
Source0:        http://download.gnome.org/sources/gdk-pixbuf/%{release_version}/gdk-pixbuf-%{version}.tar.xz
Packit 940286
Packit 940286
# If you want to rebuild this, do:
Packit 940286
# wine /usr/i686-w64-mingw32/sys-root/mingw/bin/gdk-pixbuf-query-loaders.exe | sed s@'Z:/usr/i686-w64-mingw32/sys-root/mingw'@'..'@ > gdk-pixbuf.loaders
Packit 940286
Source1:        gdk-pixbuf.loaders
Packit 940286
Packit 940286
BuildArch:      noarch
Packit 940286
ExclusiveArch:  %{ix86} x86_64 %{arm}
Packit 940286
Packit 940286
BuildRequires:  mingw32-filesystem >= 95
Packit 940286
BuildRequires:  mingw64-filesystem >= 95
Packit 940286
BuildRequires:  mingw32-gcc
Packit 940286
BuildRequires:  mingw64-gcc
Packit 940286
BuildRequires:  mingw32-binutils
Packit 940286
BuildRequires:  mingw64-binutils
Packit 940286
Packit 940286
BuildRequires:  mingw32-glib2
Packit 940286
BuildRequires:  mingw64-glib2
Packit 940286
BuildRequires:  mingw32-jasper
Packit 940286
BuildRequires:  mingw64-jasper
Packit 940286
BuildRequires:  mingw32-libjpeg
Packit 940286
BuildRequires:  mingw64-libjpeg
Packit 940286
BuildRequires:  mingw32-libpng
Packit 940286
BuildRequires:  mingw64-libpng
Packit 940286
BuildRequires:  mingw32-libtiff
Packit 940286
BuildRequires:  mingw64-libtiff
Packit 940286
Packit 940286
# Native one for msgfmt
Packit 940286
BuildRequires:  gettext
Packit 940286
# Native one for glib-genmarsjal
Packit 940286
BuildRequires:  glib2-devel
Packit 940286
# Native one for gtk-update-icon-cache
Packit 940286
BuildRequires:  gtk2
Packit 940286
# Native one for gdk-pixbuf-csource
Packit 940286
BuildRequires:  gtk2-devel
Packit 940286
Packit 940286
%description
Packit 940286
MinGW Windows GDK Pixbuf library.
Packit 940286
Packit 940286
Packit 940286
%package -n mingw32-gdk-pixbuf
Packit 940286
Summary:        MinGW Windows GDK Pixbuf library
Packit 940286
Packit 940286
%description -n mingw32-gdk-pixbuf
Packit 940286
MinGW Windows GDK Pixbuf library.
Packit 940286
Packit 940286
Packit 940286
%package -n mingw64-gdk-pixbuf
Packit 940286
Summary:        MinGW Windows GDK Pixbuf library
Packit 940286
Packit 940286
%description -n mingw64-gdk-pixbuf
Packit 940286
MinGW Windows GDK Pixbuf library.
Packit 940286
Packit 940286
Packit 940286
%?mingw_debug_package
Packit 940286
Packit 940286
Packit 940286
%prep
Packit 940286
%setup -q -n gdk-pixbuf-%{version}
Packit 940286
Packit 940286
Packit 940286
%build
Packit 940286
%mingw_configure \
Packit 940286
  --enable-relocations \
Packit 940286
  --with-included-loaders=gdip-bmp,gdip-emf,gdip-gif,gdip-ico,gdip-jpeg,gdip-tiff,gdip-wmf,png \
Packit 940286
  --with-libjasper
Packit 940286
Packit 940286
# Copy the loaders.cache file to the source tree
Packit 940286
install -m 0644 %{SOURCE1} build_win32/gdk-pixbuf/loaders.cache
Packit 940286
install -m 0644 %{SOURCE1} build_win64/gdk-pixbuf/loaders.cache
Packit 940286
Packit 940286
%mingw_make %{?_smp_mflags} V=1
Packit 940286
Packit 940286
Packit 940286
%install
Packit 940286
%mingw_make DESTDIR=$RPM_BUILD_ROOT install
Packit 940286
Packit 940286
# The .def files are only used while compiling the libraries themselves
Packit 940286
# (they contain a list of functions which need to be exported by the linker)
Packit 940286
# so they serve no purpose for other libraries and applications
Packit 940286
rm -f $RPM_BUILD_ROOT%{mingw32_libdir}/gdk_pixbuf-2.0.def
Packit 940286
rm -f $RPM_BUILD_ROOT%{mingw64_libdir}/gdk_pixbuf-2.0.def
Packit 940286
Packit 940286
# The .dll.a files are import libraries, but as the regular .dll's are
Packit 940286
# only dlopen'ed by GTK they provide no additional value so they can be dropped
Packit 940286
rm -f $RPM_BUILD_ROOT%{mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/*.dll.a
Packit 940286
rm -f $RPM_BUILD_ROOT%{mingw64_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/*.dll.a
Packit 940286
Packit 940286
# Drop all .la files
Packit 940286
find $RPM_BUILD_ROOT -name "*.la" -delete
Packit 940286
Packit 940286
# The gtk-doc documentation and man pages can also be dropped as they're
Packit 940286
# already provided by the native package
Packit 940286
rm -rf $RPM_BUILD_ROOT%{mingw32_datadir}/gtk-doc
Packit 940286
rm -rf $RPM_BUILD_ROOT%{mingw64_datadir}/gtk-doc
Packit 940286
rm -rf $RPM_BUILD_ROOT%{mingw32_mandir}
Packit 940286
rm -rf $RPM_BUILD_ROOT%{mingw64_mandir}
Packit 940286
Packit 940286
# Install the loaders.cache file
Packit 940286
install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders.cache
Packit 940286
install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{mingw64_libdir}/gdk-pixbuf-2.0/2.10.0/loaders.cache
Packit 940286
Packit 940286
%mingw_find_lang %{name} --all-name
Packit 940286
Packit 940286
Packit 940286
%files -n mingw32-gdk-pixbuf -f mingw32-%{name}.lang
Packit 940286
%license COPYING
Packit 940286
%{mingw32_bindir}/gdk-pixbuf-csource.exe
Packit 940286
%{mingw32_bindir}/gdk-pixbuf-pixdata.exe
Packit 940286
%{mingw32_bindir}/gdk-pixbuf-query-loaders.exe
Packit 940286
%{mingw32_bindir}/gdk-pixbuf-thumbnailer.exe
Packit 940286
%{mingw32_bindir}/libgdk_pixbuf-2.0-0.dll
Packit 940286
%dir %{mingw32_libdir}/gdk-pixbuf-2.0
Packit 940286
%dir %{mingw32_libdir}/gdk-pixbuf-2.0/2.10.0
Packit 940286
%dir %{mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders
Packit 940286
%{mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders.cache
Packit 940286
%{mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-ani.dll
Packit 940286
%{mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-icns.dll
Packit 940286
%{mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-jasper.dll
Packit 940286
%{mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-pnm.dll
Packit 940286
%{mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-qtif.dll
Packit 940286
%{mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-tga.dll
Packit 940286
%{mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xbm.dll
Packit 940286
%{mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.dll
Packit 940286
%{mingw32_libdir}/libgdk_pixbuf-2.0.dll.a
Packit 940286
%{mingw32_libdir}/pkgconfig/gdk-pixbuf-2.0.pc
Packit 940286
%{mingw32_includedir}/gdk-pixbuf-2.0/
Packit 940286
%{mingw32_datadir}/thumbnailers/
Packit 940286
Packit 940286
%files -n mingw64-gdk-pixbuf -f mingw64-%{name}.lang
Packit 940286
%license COPYING
Packit 940286
%{mingw64_bindir}/gdk-pixbuf-csource.exe
Packit 940286
%{mingw64_bindir}/gdk-pixbuf-pixdata.exe
Packit 940286
%{mingw64_bindir}/gdk-pixbuf-query-loaders.exe
Packit 940286
%{mingw64_bindir}/gdk-pixbuf-thumbnailer.exe
Packit 940286
%{mingw64_bindir}/libgdk_pixbuf-2.0-0.dll
Packit 940286
%dir %{mingw64_libdir}/gdk-pixbuf-2.0
Packit 940286
%dir %{mingw64_libdir}/gdk-pixbuf-2.0/2.10.0
Packit 940286
%dir %{mingw64_libdir}/gdk-pixbuf-2.0/2.10.0/loaders
Packit 940286
%{mingw64_libdir}/gdk-pixbuf-2.0/2.10.0/loaders.cache
Packit 940286
%{mingw64_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-ani.dll
Packit 940286
%{mingw64_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-icns.dll
Packit 940286
%{mingw64_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-jasper.dll
Packit 940286
%{mingw64_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-pnm.dll
Packit 940286
%{mingw64_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-qtif.dll
Packit 940286
%{mingw64_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-tga.dll
Packit 940286
%{mingw64_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xbm.dll
Packit 940286
%{mingw64_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.dll
Packit 940286
%{mingw64_libdir}/libgdk_pixbuf-2.0.dll.a
Packit 940286
%{mingw64_libdir}/pkgconfig/gdk-pixbuf-2.0.pc
Packit 940286
%{mingw64_includedir}/gdk-pixbuf-2.0/
Packit 940286
%{mingw64_datadir}/thumbnailers/
Packit 940286
Packit 940286
Packit 940286
%changelog
Packit 940286
* Thu Aug 16 2018 Eduardo Lima (Etrunko) <etrunko@redhat.com> - 2.36.11-3
Packit 940286
- ExclusiveArch: i686, x86_64
Packit 940286
  Related: rhbz#1615874
Packit 940286
Packit 940286
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.36.11-2
Packit 940286
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Packit 940286
Packit 940286
* Sun Oct 15 2017 Kalev Lember <klember@redhat.com> - 2.36.11-1
Packit 940286
- Update to 2.36.11
Packit 940286
Packit 940286
* Mon Aug 21 2017 Kalev Lember <klember@redhat.com> - 2.36.9-1
Packit 940286
- Update to 2.36.9
Packit 940286
Packit 940286
* Fri Aug 11 2017 Kalev Lember <klember@redhat.com> - 2.36.8-1
Packit 940286
- Update to 2.36.8
Packit 940286
Packit 940286
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.36.7-2
Packit 940286
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
Packit 940286
Packit 940286
* Wed Jul 19 2017 Kalev Lember <klember@redhat.com> - 2.36.7-1
Packit 940286
- Update to 2.36.7
Packit 940286
Packit 940286
* Mon Jun 19 2017 Kalev Lember <klember@redhat.com> - 2.36.6-1
Packit 940286
- Update to 2.36.6
Packit 940286
Packit 940286
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.36.0-3
Packit 940286
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
Packit 940286
Packit 940286
* Wed Nov 23 2016 Michael Cronenworth <mike@cchtml.com> - 2.36.0-2
Packit 940286
- Rebuilt for mingw-jasper update
Packit 940286
Packit 940286
* Fri Sep 23 2016 Kalev Lember <klember@redhat.com> - 2.36.0-1
Packit 940286
- Update to 2.36.0
Packit 940286
Packit 940286
* Fri Sep 23 2016 Kalev Lember <klember@redhat.com> - 2.34.0-1
Packit 940286
- Update to 2.34.0
Packit 940286
- Don't set group tags
Packit 940286
Packit 940286
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.32.3-3
Packit 940286
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
Packit 940286
Packit 940286
* Tue Jan 05 2016 Richard Jones <rjones@redhat.com> - 2.32.3-2
Packit 940286
- Use global instead of define.
Packit 940286
Packit 940286
* Thu Dec 17 2015 Kalev Lember <klember@redhat.com> - 2.32.3-1
Packit 940286
- Update to 2.32.3
Packit 940286
Packit 940286
* Wed Nov 18 2015 Kalev Lember <klember@redhat.com> - 2.32.2-1
Packit 940286
- Update to 2.32.2
Packit 940286
Packit 940286
* Sat Sep 26 2015 Kalev Lember <klember@redhat.com> - 2.32.1-1
Packit 940286
- Update to 2.32.1
Packit 940286
Packit 940286
* Fri Sep 25 2015 Kalev Lember <klember@redhat.com> - 2.32.0-1
Packit 940286
- Update to 2.32.0
Packit 940286
Packit 940286
* Sat Aug 22 2015 Kalev Lember <klember@redhat.com> - 2.31.6-1
Packit 940286
- Update to 2.31.6
Packit 940286
Packit 940286
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.31.3-2
Packit 940286
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
Packit 940286
Packit 940286
* Mon Apr 20 2015 Kalev Lember <kalevlember@gmail.com> - 2.31.3-1
Packit 940286
- Update to 2.31.3
Packit 940286
- Use license macro for the COPYING file
Packit 940286
Packit 940286
* Tue Oct 14 2014 Kalev Lember <kalevlember@gmail.com> - 2.31.1-1
Packit 940286
- Update to 2.31.1
Packit 940286
Packit 940286
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.30.8-2
Packit 940286
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
Packit 940286
Packit 940286
* Thu May 29 2014 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.30.8-1
Packit 940286
- Update to 2.30.8
Packit 940286
Packit 940286
* Sat Mar 29 2014 Kalev Lember <kalevlember@gmail.com> - 2.30.7-1
Packit 940286
- Update to 2.30.7
Packit 940286
Packit 940286
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.28.2-4
Packit 940286
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
Packit 940286
Packit 940286
* Sat Jul 13 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.28.2-3
Packit 940286
- Rebuild against libpng 1.6
Packit 940286
Packit 940286
* Sun Jun 16 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.28.2-2
Packit 940286
- Rebuild to resolve InterlockedCompareExchange regression in mingw32 libraries
Packit 940286
Packit 940286
* Sun Jun 09 2013 Kalev Lember <kalevlember@gmail.com> - 2.28.2-1
Packit 940286
- Update to 2.28.2
Packit 940286
Packit 940286
* Tue Mar 26 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.28.0-1
Packit 940286
- Update to 2.28.0
Packit 940286
Packit 940286
* Sun Mar 24 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.27.3-1
Packit 940286
- Update to 2.27.3
Packit 940286
Packit 940286
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.26.4-2
Packit 940286
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
Packit 940286
Packit 940286
* Sun Oct 07 2012 Kalev Lember <kalevlember@gmail.com> - 2.26.4-1
Packit 940286
- Update to 2.26.4
Packit 940286
Packit 940286
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.26.1-2
Packit 940286
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
Packit 940286
Packit 940286
* Mon Apr 16 2012 Kalev Lember <kalevlember@gmail.com> - 2.26.1-1
Packit 940286
- Update to 2.26.1
Packit 940286
Packit 940286
* Mon Mar 26 2012 Kalev Lember <kalevlember@gmail.com> - 2.26.0-1
Packit 940286
- Update to 2.26.0
Packit 940286
Packit 940286
* Wed Mar 14 2012 Kalev Lember <kalevlember@gmail.com> - 2.25.2-5
Packit 940286
- Build 64 bit Windows binaries
Packit 940286
Packit 940286
* Tue Mar 06 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.25.2-4
Packit 940286
- Renamed the source package to mingw-gdk-pixbuf (RHBZ #800383)
Packit 940286
- Use mingw macros without leading underscore
Packit 940286
Packit 940286
* Tue Feb 28 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.25.2-3
Packit 940286
- Rebuild against the mingw-w64 toolchain
Packit 940286
Packit 940286
* Sun Feb 19 2012 Kalev Lember <kalevlember@gmail.com> - 2.25.2-2
Packit 940286
- Include all GDI+ loaders in the main DLL (#795152)
Packit 940286
- Also include the PNG loader, for consistency with native gdk-pixbuf2 package
Packit 940286
Packit 940286
* Wed Feb 08 2012 Kalev Lember <kalevlember@gmail.com> - 2.25.2-1
Packit 940286
- Update to 2.25.2
Packit 940286
- Dropped upstreamed patches
Packit 940286
Packit 940286
* Tue Jan 31 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.25.0-1
Packit 940286
- Update to 2.25.0
Packit 940286
- Rebuild against libpng 1.5
Packit 940286
Packit 940286
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.24.0-2
Packit 940286
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
Packit 940286
Packit 940286
* Sat Aug 27 2011 Kalev Lember <kalevlember@gmail.com> - 2.24.0-1
Packit 940286
- Update to 2.24.0
Packit 940286
Packit 940286
* Wed Jul  6 2011 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.23.5-1
Packit 940286
- Update to 2.23.5
Packit 940286
- Rebuild against win-iconv
Packit 940286
Packit 940286
* Fri Jun  3 2011 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.23.3-2
Packit 940286
- Rebuild for libjpeg-turbo
Packit 940286
Packit 940286
* Wed Apr 27 2011 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.23.3-1
Packit 940286
- Update to 2.23.3
Packit 940286
- Dropped the configure argument --enable-gdiplus as it's enabled by default
Packit 940286
- Dropped upstreamed patch
Packit 940286
- Dropped the proxy-libintl pieces
Packit 940286
Packit 940286
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.22.0-3
Packit 940286
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
Packit 940286
Packit 940286
* Mon Nov  8 2010 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.22.0-2
Packit 940286
- Rebuild in order to have soft dependency on libintl
Packit 940286
- Bump the BR: mingw32-filesystem to >= 61 because of mingw32(gdiplus.dll) provides
Packit 940286
Packit 940286
* Thu Sep 23 2010 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.22.0-1
Packit 940286
- Update to 2.22.0
Packit 940286
Packit 940286
* Mon Sep 20 2010 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.21.7-2
Packit 940286
- Fixed a bug which caused the path /usr/i686-pc-mingw32/sys-root/mingw to get hardcoded
Packit 940286
  in the resulting library resulting in runtime failures on Win32 environments
Packit 940286
- Moved the file %%{_mingw32_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders to
Packit 940286
  %%{_mingw32_libdir}/gdk-pixbuf-2.0/2.10.0/loaders.cache
Packit 940286
Packit 940286
* Sun Sep 12 2010 Erik van Pienbroek <epienbro@fedoraproject.org> - 2.21.7-1
Packit 940286
- Initial release (split off from the mingw32-gtk2 package)
Packit 940286
- Dropped the -static subpackage as it provides no added value
Packit 940286
- Dropped all the .dll.a and .la files from the loaders as they provide no added value
Packit 940286
- Dropped the libpng 1.4 hack as upstream has provided a proper fix
Packit 940286