]> git.pld-linux.org Git - packages/crossmingw32-gdk-pixbuf2.git/blame_incremental - crossmingw32-gdk-pixbuf2.spec
- updated to 2.42.11
[packages/crossmingw32-gdk-pixbuf2.git] / crossmingw32-gdk-pixbuf2.spec
... / ...
CommitLineData
1#
2# Conditional build:
3%bcond_without gdiplus # use libjpeg and libtiff instead of system GDIPLUS
4#
5Summary: An image loading and scaling library - cross MinGW32 version
6Summary(pl.UTF-8): Biblioteka ładująca i skalująca obrazki - wersja skrośna MinGW32
7Name: crossmingw32-gdk-pixbuf2
8Version: 2.36.11
9Release: 1
10License: LGPL v2+
11Group: Development/Libraries
12Source0: http://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/2.36/gdk-pixbuf-%{version}.tar.xz
13# Source0-md5: 6e84e5485c17ce7c25df77fe76eb2d6a
14Patch0: gdk-pixbuf2-png-nodep.patch
15Patch1: gdk-pixbuf2-gdip.patch
16URL: https://developer.gnome.org/gdk-pixbuf/
17BuildRequires: autoconf >= 2.63
18BuildRequires: automake >= 1:1.11
19BuildRequires: crossmingw32-gcc
20BuildRequires: crossmingw32-glib2 >= 2.48.0
21BuildRequires: crossmingw32-jasper
22BuildRequires: crossmingw32-libpng >= 1.0
23BuildRequires: gettext-tools >= 0.19
24BuildRequires: gtk-doc >= 1.20
25BuildRequires: libtool >= 2:2.2.6
26BuildRequires: pkgconfig >= 1:0.15
27BuildRequires: sed >= 4.0
28BuildRequires: tar >= 1:1.22
29BuildRequires: xz
30%if %{without gdiplus}
31BuildRequires: crossmingw32-libjpeg
32BuildRequires: crossmingw32-libtiff
33%endif
34Requires: crossmingw32-glib2 >= 2.48.0
35Conflicts: crossmingw32-gtk+2 < 2.22.0
36BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38%define abiver 2.10.0
39
40%define no_install_post_strip 1
41
42%define target i386-mingw32
43%define target_platform i386-pc-mingw32
44
45%define _sysprefix /usr
46%define _prefix %{_sysprefix}/%{target}
47%define _libdir %{_prefix}/lib
48%define _pkgconfigdir %{_prefix}/lib/pkgconfig
49%define _dlldir /usr/share/wine/windows/system
50%define __cc %{target}-gcc
51%define __cxx %{target}-g++
52%define __pkgconfig_provides %{nil}
53%define __pkgconfig_requires %{nil}
54
55#define filterout_ld (-Wl,)?-as-needed.*
56
57%ifnarch %{ix86}
58# arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
59%define optflags -O2
60%endif
61# -z options are invalid for mingw linker, most of -f options are Linux-specific
62%define filterout_ld -Wl,-z,.*
63%define filterout_c -f[-a-z0-9=]*
64
65%description
66gdk-pixbuf is an image loading and scaling library that can be
67extended by loadable modules for new image formats.
68
69This package contains the cross version for Win32.
70
71%description -l pl.UTF-8
72gdk-pixbuf to biblioteka ładująca i skalująca obrazki, której
73funkcjonalność może być rozszerzana o obsługę nowych formatów poprzez
74ładowane moduły.
75
76Ten pakiet zawiera wersję skrośną dla Win32.
77
78%package dll
79Summary: DLL gdk-pixbuf libraries for Windows
80Summary(pl.UTF-8): Biblioteki DLL gdk-pixbuf dla Windows
81Group: Applications/Emulators
82Requires: crossmingw32-glib2-dll >= 2.48.0
83Requires: wine
84Conflicts: crossmingw32-gtk+2-dll < 2.22.0
85
86%description dll
87DLL gdk-pixbuf libraries for Windows.
88
89%description dll -l pl.UTF-8
90Biblioteki DLL gdk-pixbuf dla Windows.
91
92%prep
93%setup -q -n gdk-pixbuf-%{version}
94%patch0 -p1
95%patch1 -p1
96
97# disable thumbnailer (unwanted, generates files using built library/binary)
98%{__sed} -i -e '/^SUBDIRS/s/ thumbnailer / /' Makefile.am
99
100%build
101%{__gettextize}
102%{__libtoolize}
103%{__aclocal}
104%{__autoconf}
105%{__autoheader}
106%{__automake}
107export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
108%configure \
109 --target=%{target} \
110 --host=%{target} \
111 --disable-gtk-doc \
112 --disable-man \
113 --disable-silent-rules \
114 --with-libjasper \
115 %{!?with_gdiplus:--without-gdiplus}
116
117%{__make}
118
119%install
120rm -rf $RPM_BUILD_ROOT
121
122%{__make} install \
123 DESTDIR=$RPM_BUILD_ROOT
124
125install -d $RPM_BUILD_ROOT%{_dlldir}
126%{__mv} $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
127
128%if 0%{!?debug:1}
129%{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll \
130 $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/*.dll
131%{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
132%endif
133
134# shut up check-files
135%{__rm} $RPM_BUILD_ROOT%{_bindir}/*.exe
136%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{gtk-doc,locale,man}
137%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/*.{la,dll.a}
138
139%clean
140rm -rf $RPM_BUILD_ROOT
141
142%files
143%defattr(644,root,root,755)
144%{_libdir}/libgdk_pixbuf-2.0.dll.a
145%{_libdir}/libgdk_pixbuf-2.0.la
146%{_includedir}/gdk-pixbuf-2.0
147%{_pkgconfigdir}/gdk-pixbuf-2.0.pc
148
149%files dll
150%defattr(644,root,root,755)
151%{_dlldir}/libgdk_pixbuf-2.0-*.dll
152%dir %{_libdir}/gdk-pixbuf-2.0
153%dir %{_libdir}/gdk-pixbuf-2.0/%{abiver}
154%dir %{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders
155%{_libdir}/gdk-pixbuf-2.0/%{abiver}/loaders/libpixbufloader-*.dll
This page took 0.096497 seconds and 4 git commands to generate.