- summary
[packages/crossmingw32-libjpeg.git] / crossmingw32-libjpeg.spec
1 %define         realname        libjpeg
2 Summary:        Library for handling different jpeg files - Mingw32 cross version
3 Summary(pl):    Biblioteka do manipulacji plikami w formacie jpeg - wersja skro¬∂na dla Mingw32
4 Name:           crossmingw32-%{realname}
5 Version:        6b
6 Release:        1
7 License:        distributable
8 Group:          Libraries
9 Source0:        ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v%{version}.tar.gz
10 # Source0-md5:  dbd5f3b47ed13132f04c685d608a7547
11 Patch0:         %{realname}-DESTDIR.patch
12 Patch1:         %{realname}-include.patch
13 Patch2:         %{realname}-c++.patch
14 URL:            http://www.ijg.org/
15 BuildRequires:  crossmingw32-gcc
16 BuildRequires:  crossmingw32-w32api
17 BuildRequires:  libtool
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         no_install_post_strip   1
21
22 %define         target          i386-mingw32
23 %define         target_platform i386-pc-mingw32
24 %define         arch            %{_prefix}/%{target}
25 %define         gccarch         %{_prefix}/lib/gcc-lib/%{target}
26 %define         gcclib          %{_prefix}/lib/gcc-lib/%{target}/%{version}
27
28 %define         __cc            %{target}-gcc
29 %define         __cxx           %{target}-g++
30
31 %description
32 The libjpeg package contains a library of functions for manipulating
33 JPEG images.
34
35 %description -l pl
36 Ten pakiet zawiera bibliotek√™ funkcji do manipulacji plikami jpeg.
37
38 %prep
39 %setup -q -n jpeg-%{version}
40 %patch0 -p1
41 %patch1 -p1
42 %patch2 -p1
43
44 %build
45 CC=%{target}-gcc ; export CC
46 CXX=%{target}-g++ ; export CXX
47 LD=%{target}-ld ; export LD
48 AR=%{target}-ar ; export AR
49 AS=%{target}-as ; export AS
50 CROSS_COMPILE=1 ; export CROSS_COMPILE
51 CPPFLAGS="-I%{arch}/include" ; export CPPFLAGS
52 RANLIB=%{target}-ranlib ; export RANLIB
53 LDSHARED="%{target}-gcc -shared" ; export LDSHARED
54 TARGET="%{target}" ; export TARGET
55
56 %configure \
57         --target=%{target} \
58         --host=%{target} \
59         --build=i386-linux \
60         --prefix=%{arch}
61
62 %{__make}
63
64 %install
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT%{arch}/{include,lib}
67
68 %{target}-strip -g -R.comment -R.note libjpeg.a
69
70 install libjpeg.a $RPM_BUILD_ROOT%{arch}/lib
71 install jconfig.h jerror.h jmorecfg.h jpeglib.h jversion.h $RPM_BUILD_ROOT%{arch}/include
72
73 %clean
74 rm -rf $RPM_BUILD_ROOT
75
76 %files
77 %defattr(644,root,root,755)
78 %{arch}/include/*
79 %{arch}/lib/*
This page took 0.051979 seconds and 4 git commands to generate.