source: spec/trunk/SPECS/libjpeg.spec@ 256

Last change on this file since 256 was 256, checked in by Yuri Dario, 14 years ago

spec: jpeg initial build.

File size: 2.6 KB
Line 
1Summary: A library for manipulating JPEG image format files
2Name: libjpeg
3Version: 8c
4Release: 1%{?dist}
5License: IJG
6Group: System Environment/Libraries
7URL: http://www.ijg.org/
8
9Source0: ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v%{version}.tar.gz
10
11Patch1: jpeg-os2.diff
12
13#BuildRequires: autoconf libtool
14BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
15
16%description
17The libjpeg package contains a library of functions for manipulating
18JPEG images, as well as simple client programs for accessing the
19libjpeg functions. Libjpeg client programs include cjpeg, djpeg,
20jpegtran, rdjpgcom and wrjpgcom. Cjpeg compresses an image file into
21JPEG format. Djpeg decompresses a JPEG file into a regular image
22file. Jpegtran can perform various useful transformations on JPEG
23files. Rdjpgcom displays any text comments included in a JPEG file.
24Wrjpgcom inserts text comments into a JPEG file.
25
26%package devel
27Summary: Development tools for programs which will use the libjpeg library
28Group: Development/Libraries
29Requires: libjpeg = %{version}-%{release}
30
31%description devel
32The libjpeg-devel package includes the header files and documentation
33necessary for developing programs which will manipulate JPEG files using
34the libjpeg library.
35
36If you are going to develop programs which will manipulate JPEG images,
37you should install libjpeg-devel. You'll also need to have the libjpeg
38package installed.
39
40%package static
41Summary: Static JPEG image format file library
42Group: Development/Libraries
43Requires: libjpeg-devel = %{version}-%{release}
44
45%description static
46The libjpeg-static package contains the statically linkable version of libjpeg.
47Linking to static libraries is discouraged for most applications, but it is
48necessary for some boot packages.
49
50%prep
51%setup -q -n jpeg-%{version}
52
53%patch1 -p1 -b .os2~
54
55%build
56export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
57export CFLAGS="$RPM_OPT_FLAGS"
58export 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
63make %{?_smp_mflags}
64
65%install
66rm -rf $RPM_BUILD_ROOT
67
68%makeinstall
69
70install -m 755 jpeg.dll $RPM_BUILD_ROOT/%{_libdir}
71install -m 755 .libs/jpeg_s.a $RPM_BUILD_ROOT/%{_libdir}
72
73# We don't ship .la files.
74rm $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
94rm -rf $RPM_BUILD_ROOT
95
96%changelog
97* Mon Dec 19 2011 yd
98- initial build.
Note: See TracBrowser for help on using the repository browser.