| 1 | Summary: A library for manipulating JPEG image format files
|
|---|
| 2 | Name: libjpeg
|
|---|
| 3 | Version: 8c
|
|---|
| 4 | Release: 1%{?dist}
|
|---|
| 5 | License: IJG
|
|---|
| 6 | Group: System Environment/Libraries
|
|---|
| 7 | URL: http://www.ijg.org/
|
|---|
| 8 |
|
|---|
| 9 | Source0: ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v%{version}.tar.gz
|
|---|
| 10 |
|
|---|
| 11 | Patch1: jpeg-os2.diff
|
|---|
| 12 |
|
|---|
| 13 | #BuildRequires: autoconf libtool
|
|---|
| 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|---|
| 15 |
|
|---|
| 16 | %description
|
|---|
| 17 | The libjpeg package contains a library of functions for manipulating
|
|---|
| 18 | JPEG images, as well as simple client programs for accessing the
|
|---|
| 19 | libjpeg functions. Libjpeg client programs include cjpeg, djpeg,
|
|---|
| 20 | jpegtran, rdjpgcom and wrjpgcom. Cjpeg compresses an image file into
|
|---|
| 21 | JPEG format. Djpeg decompresses a JPEG file into a regular image
|
|---|
| 22 | file. Jpegtran can perform various useful transformations on JPEG
|
|---|
| 23 | files. Rdjpgcom displays any text comments included in a JPEG file.
|
|---|
| 24 | Wrjpgcom inserts text comments into a JPEG file.
|
|---|
| 25 |
|
|---|
| 26 | %package devel
|
|---|
| 27 | Summary: Development tools for programs which will use the libjpeg library
|
|---|
| 28 | Group: Development/Libraries
|
|---|
| 29 | Requires: libjpeg = %{version}-%{release}
|
|---|
| 30 |
|
|---|
| 31 | %description devel
|
|---|
| 32 | The libjpeg-devel package includes the header files and documentation
|
|---|
| 33 | necessary for developing programs which will manipulate JPEG files using
|
|---|
| 34 | the libjpeg library.
|
|---|
| 35 |
|
|---|
| 36 | If you are going to develop programs which will manipulate JPEG images,
|
|---|
| 37 | you should install libjpeg-devel. You'll also need to have the libjpeg
|
|---|
| 38 | package installed.
|
|---|
| 39 |
|
|---|
| 40 | %package static
|
|---|
| 41 | Summary: Static JPEG image format file library
|
|---|
| 42 | Group: Development/Libraries
|
|---|
| 43 | Requires: libjpeg-devel = %{version}-%{release}
|
|---|
| 44 |
|
|---|
| 45 | %description static
|
|---|
| 46 | The libjpeg-static package contains the statically linkable version of libjpeg.
|
|---|
| 47 | Linking to static libraries is discouraged for most applications, but it is
|
|---|
| 48 | necessary for some boot packages.
|
|---|
| 49 |
|
|---|
| 50 | %prep
|
|---|
| 51 | %setup -q -n jpeg-%{version}
|
|---|
| 52 |
|
|---|
| 53 | %patch1 -p1 -b .os2~
|
|---|
| 54 |
|
|---|
| 55 | %build
|
|---|
| 56 | export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
|
|---|
| 57 | export CFLAGS="$RPM_OPT_FLAGS"
|
|---|
| 58 | export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 59 | %configure \
|
|---|
| 60 | --disable-shared --enable-static \
|
|---|
| 61 | "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
|
|---|
| 62 |
|
|---|
| 63 | make %{?_smp_mflags}
|
|---|
| 64 |
|
|---|
| 65 | %install
|
|---|
| 66 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 67 |
|
|---|
| 68 | %makeinstall
|
|---|
| 69 |
|
|---|
| 70 | install -m 755 jpeg.dll $RPM_BUILD_ROOT/%{_libdir}
|
|---|
| 71 | install -m 755 .libs/jpeg_s.a $RPM_BUILD_ROOT/%{_libdir}
|
|---|
| 72 |
|
|---|
| 73 | # We don't ship .la files.
|
|---|
| 74 | rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
|---|
| 75 |
|
|---|
| 76 | %files
|
|---|
| 77 | %defattr(-,root,root)
|
|---|
| 78 | %doc usage.txt README
|
|---|
| 79 | %{_libdir}/jpeg*.dll
|
|---|
| 80 | %{_bindir}/*
|
|---|
| 81 | %{_mandir}/*/*
|
|---|
| 82 |
|
|---|
| 83 | %files devel
|
|---|
| 84 | %defattr(-,root,root)
|
|---|
| 85 | %doc libjpeg.txt coderules.txt structure.txt wizard.txt example.c
|
|---|
| 86 | %{_libdir}/jpeg.a
|
|---|
| 87 | %{_includedir}/*.h
|
|---|
| 88 |
|
|---|
| 89 | %files static
|
|---|
| 90 | %defattr(-,root,root)
|
|---|
| 91 | %{_libdir}/jpeg_s.a
|
|---|
| 92 |
|
|---|
| 93 | %clean
|
|---|
| 94 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 95 |
|
|---|
| 96 | %changelog
|
|---|
| 97 | * Mon Dec 19 2011 yd
|
|---|
| 98 | - initial build.
|
|---|