]>
Commit | Line | Data |
---|---|---|
8ce4543c JB |
1 | Summary: Library for handling different JPEG files - 12-bit version |
2 | Summary(pl.UTF-8): Biblioteka do manipulacji plikami w formacie JPEG - wersja 12-bitowa | |
3 | Name: libjpeg12 | |
16b64150 | 4 | Version: 9a |
8ce4543c JB |
5 | Release: 1 |
6 | License: distributable | |
7 | Group: Libraries | |
8 | Source0: http://www.ijg.org/files/jpegsrc.v%{version}.tar.gz | |
16b64150 | 9 | # Source0-md5: 3353992aecaee1805ef4109aadd433e7 |
8ce4543c JB |
10 | Patch0: libjpeg-maxmem-sysconf.patch |
11 | Patch1: libjpeg-12bit.patch | |
12 | URL: http://www.ijg.org/ | |
13 | BuildRequires: autoconf >= 2.50 | |
14 | BuildRequires: automake | |
15 | BuildRequires: libtool | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | The libjpeg package contains a library of functions for manipulating | |
20 | JPEG images. This package is built with 12 bits per sample. | |
21 | ||
22 | %description -l pl.UTF-8 | |
23 | Ten pakiet zawiera bibliotekę funkcji do manipulacji plikami JPEG. Ta | |
24 | wersja została zbudowana z 12-bitową rozdzielczością próbkowania. | |
25 | ||
26 | %package devel | |
27 | Summary: Headers for developing programs using libjpeg12 | |
28 | Summary(pl.UTF-8): Pliki nagłówkowe libjpeg12 | |
29 | Group: Development/Libraries | |
30 | Requires: %{name} = %{version}-%{release} | |
31 | ||
32 | %description devel | |
33 | This package includes the header files necessary for developing | |
34 | programs which will manipulate JPEG files using the libjpeg | |
35 | library. This version is built with 12 bits per sample. | |
36 | ||
37 | %description devel -l pl.UTF-8 | |
38 | Ten pakiet zawiera pliki potrzebne do programowania z wykorzystaniem | |
39 | biblioteki libjpeg. Ta wersja została zbudowana z 12-bitową | |
40 | rozdzielczością próbkowania. | |
41 | ||
42 | %package static | |
43 | Summary: Static library for developing programs using libjpeg12 | |
44 | Summary(pl.UTF-8): Biblioteka statyczna libjpeg12 | |
45 | Group: Development/Libraries | |
46 | Requires: %{name}-devel = %{version}-%{release} | |
47 | ||
48 | %description static | |
49 | Static library for developing programs using libjpeg12. | |
50 | ||
51 | %description static -l pl.UTF-8 | |
52 | Statyczna biblioteka libjpeg12. | |
53 | ||
54 | %prep | |
55 | %setup -q -n jpeg-%{version} | |
56 | %patch0 -p1 | |
57 | %patch1 -p1 | |
58 | ||
59 | %build | |
60 | %{__libtoolize} | |
61 | %{__aclocal} | |
62 | %{__autoconf} | |
63 | %{__autoheader} | |
64 | %{__automake} | |
65 | %configure \ | |
66 | --includedir=%{_includedir}/libjpeg12 \ | |
67 | --disable-silent-rules \ | |
68 | --enable-shared \ | |
69 | --enable-static | |
70 | ||
71 | %{__make} | |
72 | ||
73 | %install | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %{__make} install \ | |
77 | DESTDIR=$RPM_BUILD_ROOT | |
78 | ||
79 | install jversion.h $RPM_BUILD_ROOT%{_includedir}/libjpeg12 | |
80 | ||
81 | # remove HAVE_STD{DEF,LIB}_H | |
82 | # (not necessary but may generate warnings confusing autoconf) | |
83 | sed -i -e 's#.*HAVE_STD..._H.*##g' $RPM_BUILD_ROOT%{_includedir}/libjpeg12/jconfig.h | |
84 | ||
85 | # tools packaged in generic libjpeg | |
86 | %{__rm} -r $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} | |
87 | ||
88 | %clean | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %post -p /sbin/ldconfig | |
92 | %postun -p /sbin/ldconfig | |
93 | ||
94 | %files | |
95 | %defattr(644,root,root,755) | |
96 | %doc README change.log | |
97 | %attr(755,root,root) %{_libdir}/libjpeg12.so.*.*.* | |
09100f12 | 98 | %attr(755,root,root) %ghost %{_libdir}/libjpeg12.so.9 |
8ce4543c JB |
99 | |
100 | %files devel | |
101 | %defattr(644,root,root,755) | |
102 | %doc libjpeg.txt structure.txt | |
103 | %attr(755,root,root) %{_libdir}/libjpeg12.so | |
104 | %{_libdir}/libjpeg12.la | |
105 | %{_includedir}/libjpeg12 | |
106 | ||
107 | %files static | |
108 | %defattr(644,root,root,755) | |
109 | %{_libdir}/libjpeg12.a |