- updated to 9a
[packages/crossmingw32-libjpeg.git] / crossmingw32-libjpeg.spec
CommitLineData
18578b4b 1%define realname libjpeg
b5a53fde
JB
2Summary: Library for handling different jpeg files - MinGW32 cross version
3Summary(pl.UTF-8): Biblioteka do manipulacji plikami w formacie jpeg - wersja skrośna dla MinGW32
18578b4b 4Name: crossmingw32-%{realname}
e934179f 5Version: 9a
6df73332 6Release: 1
18578b4b 7License: distributable
0599bc26 8Group: Development/Libraries
6df73332 9Source0: http://www.ijg.org/files/jpegsrc.v%{version}.tar.gz
e934179f 10# Source0-md5: 3353992aecaee1805ef4109aadd433e7
6df73332 11Patch0: %{realname}-maxmem-sysconf.patch
18578b4b 12URL: http://www.ijg.org/
8a111c55
JB
13BuildRequires: autoconf >= 2.50
14BuildRequires: automake
18578b4b 15BuildRequires: crossmingw32-gcc
8a111c55 16BuildRequires: libtool
0599bc26 17Requires: crossmingw32-runtime
18578b4b 18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%define no_install_post_strip 1
21
d6a8eeef 22%define target i386-mingw32
23%define target_platform i386-pc-mingw32
d6a8eeef 24
25%define _sysprefix /usr
26%define _prefix %{_sysprefix}/%{target}
04555392 27%define _libdir %{_prefix}/lib
0599bc26 28%define _dlldir /usr/share/wine/windows/system
d6a8eeef 29%define __cc %{target}-gcc
30%define __cxx %{target}-g++
18578b4b 31
8a111c55
JB
32%ifnarch %{ix86}
33# arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
0e391455 34%define optflags -O2
35%endif
6c0f9c6d
JB
36
37# -z options are invalid for mingw linker, most of -f options are Linux-specific
6df73332 38%define filterout_ld -Wl,-z,.*
6c0f9c6d 39%define filterout_c -f[-a-z0-9=]*
0e391455 40
18578b4b 41%description
42The libjpeg package contains a library of functions for manipulating
43JPEG images.
44
0599bc26
JB
45This package contains the cross version for Win32.
46
b1b4f4e2
JR
47%description -l pl.UTF-8
48Ten pakiet zawiera bibliotekę funkcji do manipulacji plikami jpeg.
18578b4b 49
0599bc26
JB
50Ten pakiet zawiera wersję skrośną dla Win32.
51
52%package static
b5a53fde
JB
53Summary: Static libjpeg library (cross MinGW32 version)
54Summary(pl.UTF-8): Statyczna biblioteka libjpeg (wersja skrośna MinGW32)
0599bc26
JB
55Group: Development/Libraries
56Requires: %{name} = %{version}-%{release}
57
58%description static
b5a53fde 59Static libjpeg library (cross MinGW32 version).
0599bc26
JB
60
61%description static -l pl.UTF-8
b5a53fde 62Statyczna biblioteka libjpeg (wersja skrośna MinGW32).
0599bc26 63
120dba18 64%package dll
65Summary: libjpeg - DLL library for Windows
908fb225 66Summary(pl.UTF-8): libjpeg - biblioteka DLL dla Windows
120dba18 67Group: Applications/Emulators
0599bc26 68Requires: wine
120dba18 69
70%description dll
71libjpeg - DLL library for Windows.
72
b1b4f4e2 73%description dll -l pl.UTF-8
120dba18 74libjpeg - biblioteka DLL dla Windows.
75
18578b4b 76%prep
77%setup -q -n jpeg-%{version}
78%patch0 -p1
8a111c55 79
18578b4b 80%build
18578b4b 81%configure \
82 --target=%{target} \
83 --host=%{target} \
6df73332 84 --disable-silent-rules
d6a8eeef 85
8a111c55 86%{__make}
d6a8eeef 87
8a111c55
JB
88%install
89rm -rf $RPM_BUILD_ROOT
d6a8eeef 90
6df73332 91%{__make} install \
8a111c55 92 DESTDIR=$RPM_BUILD_ROOT
d6a8eeef 93
6df73332
JB
94install jversion.h $RPM_BUILD_ROOT%{_includedir}
95
96# remove HAVE_STD{DEF,LIB}_H
97# (not necessary but may generate warnings confusing autoconf)
98sed -i -e 's#.*HAVE_STD..._H.*##g' $RPM_BUILD_ROOT%{_includedir}/jconfig.h
99
8a111c55
JB
100install -d $RPM_BUILD_ROOT%{_dlldir}
101mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
d6a8eeef 102
9e9be21b 103%if 0%{!?debug:1}
8a111c55
JB
104%{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
105%{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
9e9be21b 106%endif
18578b4b 107
18578b4b 108%clean
109rm -rf $RPM_BUILD_ROOT
110
111%files
112%defattr(644,root,root,755)
8a111c55 113%doc README change.log
0599bc26
JB
114%{_libdir}/libjpeg.dll.a
115%{_libdir}/libjpeg.la
8a111c55
JB
116%{_includedir}/jconfig.h
117%{_includedir}/jerror.h
118%{_includedir}/jmorecfg.h
119%{_includedir}/jpeglib.h
6df73332 120%{_includedir}/jversion.h
0599bc26
JB
121
122%files static
123%defattr(644,root,root,755)
124%{_libdir}/libjpeg.a
120dba18 125
126%files dll
127%defattr(644,root,root,755)
6c0f9c6d 128%{_dlldir}/libjpeg-9.dll
This page took 0.13676 seconds and 4 git commands to generate.