/[packages]/updates/2/libtiff/current/SPECS/libtiff.spec
ViewVC logotype

Contents of /updates/2/libtiff/current/SPECS/libtiff.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 327675 - (show annotations) (download)
Fri Dec 7 00:24:19 2012 UTC (8 years, 9 months ago) by luigiwalser
File size: 3645 byte(s)
add upstream patch to fix CVE-2012-5581
1 %define major 5
2 %define libname %mklibname tiff %{major}
3 %define develname %mklibname tiff -d
4 %define staticdevelname %mklibname tiff -d -s
5
6 Summary: A library of functions for manipulating TIFF format image files
7 Name: libtiff
8 Version: 4.0.1
9 %define subrel 5
10 Release: %mkrel 2
11 License: BSD-like
12 Group: System/Libraries
13 URL: http://www.remotesensing.org/libtiff/
14 Source0: ftp://ftp.remotesensing.org/pub/libtiff/tiff-%{version}.tar.gz
15 Patch1: tiff-4.0.1-CVE-2012-1173.diff
16 Patch2: tiff-4.0.1-CVE-2012-2113.diff
17 Patch3: tiff-4.0.2-CVE-2012-3401.diff
18 Patch4: tiff-4.0.1-CVE-2012-4447.diff
19 Patch5: tiff-4.0.3-CVE-2012-4564.diff
20 Patch6: tiff-4.0.1-CVE-2012-5581.diff
21 BuildRequires: jbig-devel
22 BuildRequires: libjpeg-devel
23 BuildRequires: freeglut-devel
24 BuildRequires: zlib-devel
25 BuildRequires: lzma-devel
26
27 %description
28 The libtiff package contains a library of functions for manipulating TIFF
29 (Tagged Image File Format) image format files. TIFF is a widely used file
30 format for bitmapped images. TIFF files usually end in the .tif extension
31 and they are often quite large.
32
33 %package progs
34 Summary: Binaries needed to manipulate TIFF format image files
35 Group: Graphics
36 Requires: %{libname} = %{version}
37 Obsoletes: libtiff3-progs
38 Provides: libtiff3-progs = %{version}-%{release}
39
40 %description progs
41 This package provides binaries needed to manipulate TIFF format image files.
42
43 %package -n %{libname}
44 Summary: A library of functions for manipulating TIFF format image files
45 Group: System/Libraries
46 Obsoletes: %{name} < %{version}
47 Provides: %{name} = %{version}-%{release}
48
49 %description -n %{libname}
50 The libtiff package contains a library of functions for manipulating TIFF
51 (Tagged Image File Format) image format files. TIFF is a widely used file
52 format for bitmapped images. TIFF files usually end in the .tif extension
53 and they are often quite large.
54
55 %package -n %{develname}
56 Summary: Development tools for programs which will use the libtiff library
57 Group: Development/C
58 Requires: %{libname} = %{version}
59 Provides: %{name}-devel = %{version}-%{release}
60 Provides: tiff-devel = %{version}-%{release}
61 Obsoletes: %{mklibname tiff 3 -d}
62
63 %description -n %{develname}
64 This package contains the header files and .so libraries for developing
65 programs which will manipulate TIFF format image files using the libtiff
66 library.
67
68 %package -n %{staticdevelname}
69 Summary: Static libraries for programs which will use the libtiff library
70 Group: Development/C
71 Requires: %{develname} = %{version}
72 Provides: %{name}-static-devel = %{version}-%{release}
73 Provides: tiff-static-devel = %{version}-%{release}
74 Obsoletes: %{mklibname tiff 3 -d -s}
75
76 %description -n %{staticdevelname}
77 This package contains the static libraries for developing
78 programs which will manipulate TIFF format image files using the libtiff
79 library.
80
81 %prep
82 %setup -q -n tiff-%{version}
83 %patch1 -p1 -b .CVE-2012-1173
84 %patch2 -p1 -b .CVE-2012-2113
85 %patch3 -p1 -b .CVE-2012-3401
86 %patch4 -p1 -b .CVE-2012-4447
87 %patch5 -p0 -b .CVE-2012-4564
88 %patch6 -p1 -b .CVE-2012-5581
89
90 %build
91 %configure2_5x --enable-static --with-docdir=%{_datadir}/doc/%{develname} --enable-ld-version-script
92 %make
93
94 %check
95 make check
96
97 %install
98 %makeinstall_std
99
100 rm -f %{buildroot}%{_libdir}/*.la
101
102 # multiarch policy
103 %multiarch_includes %{buildroot}%{_includedir}/tiffconf.h
104
105 %files progs
106 %{_bindir}/*
107 %{_mandir}/man1/*
108
109 %files -n %{libname}
110 %{_libdir}/*.so.%{major}*
111
112 %files -n %{develname}
113 %doc %{_datadir}/doc/%{develname}
114 %{_includedir}/*.h*
115 %{multiarch_includedir}/tiffconf.h
116 %{_libdir}/*.so
117 %{_libdir}/pkgconfig/*.pc
118 %{_mandir}/man3/*
119
120 %files -n %{staticdevelname}
121 %doc COPYRIGHT README TODO VERSION
122 %{_libdir}/*.a

  ViewVC Help
Powered by ViewVC 1.1.28