]> git.pld-linux.org Git - packages/crossmingw32-libjpeg.git/blame - crossmingw32-libjpeg.spec
- tabs in preamble
[packages/crossmingw32-libjpeg.git] / crossmingw32-libjpeg.spec
CommitLineData
18578b4b 1%define realname libjpeg
dbea029a 2Summary: Library for handling different jpeg files - Mingw32 cross version
908fb225 3Summary(pl.UTF-8): Biblioteka do manipulacji plikami w formacie jpeg - wersja skrośna dla Mingw32
18578b4b 4Name: crossmingw32-%{realname}
5Version: 6b
9b8c3476 6Release: 5
18578b4b 7License: distributable
8Group: Libraries
9Source0: ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v%{version}.tar.gz
10# Source0-md5: dbd5f3b47ed13132f04c685d608a7547
11Patch0: %{realname}-DESTDIR.patch
12Patch1: %{realname}-include.patch
13Patch2: %{realname}-c++.patch
120dba18 14Patch3: %{name}-shared.patch
18578b4b 15URL: http://www.ijg.org/
d54af035 16Requires: crossmingw32-runtime
18578b4b 17BuildRequires: crossmingw32-gcc
18BuildRequires: crossmingw32-w32api
19BuildRequires: libtool
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%define no_install_post_strip 1
23
24%define target i386-mingw32
25%define target_platform i386-pc-mingw32
26%define arch %{_prefix}/%{target}
27%define gccarch %{_prefix}/lib/gcc-lib/%{target}
28%define gcclib %{_prefix}/lib/gcc-lib/%{target}/%{version}
29
30%define __cc %{target}-gcc
31%define __cxx %{target}-g++
32
0e391455 33%ifarch alpha sparc sparc64 sparcv9
34%define optflags -O2
35%endif
36
18578b4b 37%description
38The libjpeg package contains a library of functions for manipulating
39JPEG images.
40
b1b4f4e2
JR
41%description -l pl.UTF-8
42Ten pakiet zawiera bibliotekę funkcji do manipulacji plikami jpeg.
18578b4b 43
120dba18 44%package dll
45Summary: libjpeg - DLL library for Windows
908fb225 46Summary(pl.UTF-8): libjpeg - biblioteka DLL dla Windows
120dba18 47Group: Applications/Emulators
48
49%description dll
50libjpeg - DLL library for Windows.
51
b1b4f4e2 52%description dll -l pl.UTF-8
120dba18 53libjpeg - biblioteka DLL dla Windows.
54
18578b4b 55%prep
56%setup -q -n jpeg-%{version}
57%patch0 -p1
58%patch1 -p1
59%patch2 -p1
120dba18 60%patch3 -p1
18578b4b 61
62%build
63CC=%{target}-gcc ; export CC
64CXX=%{target}-g++ ; export CXX
65LD=%{target}-ld ; export LD
66AR=%{target}-ar ; export AR
67AS=%{target}-as ; export AS
68CROSS_COMPILE=1 ; export CROSS_COMPILE
69CPPFLAGS="-I%{arch}/include" ; export CPPFLAGS
70RANLIB=%{target}-ranlib ; export RANLIB
71LDSHARED="%{target}-gcc -shared" ; export LDSHARED
72TARGET="%{target}" ; export TARGET
73
74%configure \
75 --target=%{target} \
76 --host=%{target} \
77 --build=i386-linux \
78 --prefix=%{arch}
79
80%{__make}
120dba18 81%{__make} jpeg.dll
82
83%{target}-strip jpeg.dll
84%{target}-strip -g -R.comment -R.note *.a
18578b4b 85
86%install
87rm -rf $RPM_BUILD_ROOT
88install -d $RPM_BUILD_ROOT%{arch}/{include,lib}
120dba18 89install -d $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
18578b4b 90
18578b4b 91install jconfig.h jerror.h jmorecfg.h jpeglib.h jversion.h $RPM_BUILD_ROOT%{arch}/include
120dba18 92install *.a $RPM_BUILD_ROOT%{arch}/lib
93install jpeg.dll $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
18578b4b 94
95%clean
96rm -rf $RPM_BUILD_ROOT
97
98%files
99%defattr(644,root,root,755)
100%{arch}/include/*
101%{arch}/lib/*
120dba18 102
103%files dll
104%defattr(644,root,root,755)
105%{_datadir}/wine/windows/system/*
This page took 0.106249 seconds and 4 git commands to generate.