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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 318244 - (show annotations) (download)
Thu Nov 15 17:54:35 2012 UTC (8 years, 10 months ago) by luigiwalser
File size: 4286 byte(s)
add patch from redhat to fix CVE-2012-4564
1 %define major 3
2 %define libname %mklibname tiff %{major}
3 %define develname %mklibname tiff -d
4 %define staticdevelname %mklibname tiff -d -s
5
6 %define subrel 7
7
8 Summary: A library of functions for manipulating TIFF format image files
9 Name: libtiff
10 Version: 3.9.5
11 Release: %mkrel 1
12 License: BSD-like
13 Group: System/Libraries
14 URL: http://www.remotesensing.org/libtiff/
15 Source0: ftp://ftp.remotesensing.org/pub/libtiff/tiff-%{version}.tar.gz
16 Patch1: tiff-3.9.1-no_contrib.diff
17 Patch10: tiff-3.9.2-libjpeg7+.diff
18 Patch11: tiff-3.9.1-CVE-2011-0191.diff
19 Patch12: tiff-3.9.5-CVE-2012-1173.diff
20 Patch13: tiff-3.9.6-CVE-2012-2088.diff
21 Patch14: tiff-3.9.6-CVE-2012-2113.diff
22 Patch15: tiff-4.0.2-CVE-2012-3401.diff
23 Patch16: tiff-3.9.4-CVE-2012-4447.diff
24 Patch17: tiff-4.0.3-CVE-2012-4564.diff
25 BuildRequires: jbig-devel
26 BuildRequires: libjpeg-devel
27 BuildRequires: mesaglut-devel
28 BuildRequires: zlib-devel
29
30 %description
31 The libtiff package contains a library of functions for manipulating TIFF
32 (Tagged Image File Format) image format files. TIFF is a widely used file
33 format for bitmapped images. TIFF files usually end in the .tif extension
34 and they are often quite large.
35
36 %package progs
37 Summary: Binaries needed to manipulate TIFF format image files
38 Group: Graphics
39 Requires: %{libname} = %{version}
40 Obsoletes: libtiff3-progs
41 Provides: libtiff3-progs = %{version}-%{release}
42
43 %description progs
44 This package provides binaries needed to manipulate TIFF format image files.
45
46 %package -n %{libname}
47 Summary: A library of functions for manipulating TIFF format image files
48 Group: System/Libraries
49 Obsoletes: %{name}
50 Provides: %{name} = %{version}-%{release}
51
52 %description -n %{libname}
53 The libtiff package contains a library of functions for manipulating TIFF
54 (Tagged Image File Format) image format files. TIFF is a widely used file
55 format for bitmapped images. TIFF files usually end in the .tif extension
56 and they are often quite large.
57
58 %package -n %{develname}
59 Summary: Development tools for programs which will use the libtiff library
60 Group: Development/C
61 Requires: %{libname} = %{version}
62 Provides: %{name}-devel = %{version}-%{release}
63 Provides: tiff-devel = %{version}-%{release}
64 Obsoletes: %{mklibname tiff 3 -d}
65
66 %description -n %{develname}
67 This package contains the header files and .so libraries for developing
68 programs which will manipulate TIFF format image files using the libtiff
69 library.
70
71 %package -n %{staticdevelname}
72 Summary: Static libraries for programs which will use the libtiff library
73 Group: Development/C
74 Requires: %{develname} = %{version}
75 Provides: %{name}-static-devel = %{version}-%{release}
76 Provides: tiff-static-devel = %{version}-%{release}
77 Obsoletes: %{mklibname tiff 3 -d -s}
78
79 %description -n %{staticdevelname}
80 This package contains the static libraries for developing
81 programs which will manipulate TIFF format image files using the libtiff
82 library.
83
84 %prep
85
86 %setup -q -n tiff-%{version}
87 %patch1 -p1
88 %patch10 -p0 -b .libjpeg7
89 %patch11 -p0 -b .CVE-2011-0191
90 %patch12 -p1 -b .CVE-2012-1173
91 %patch13 -p1 -b .CVE-2012-2088
92 %patch14 -p1 -b .CVE-2012-2113
93 %patch15 -p1 -b .CVE-2012-3401
94 %patch16 -p1 -b .CVE-2012-4447
95 %patch17 -p0 -b .CVE-2012-4564
96
97 # cleanup
98 for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
99 if [ -e "$i" ]; then rm -rf $i; fi >&/dev/null
100 done
101
102 %build
103 export LDFLAGS="%{ldflags}"
104 export CFLAGS="%{optflags}"
105 export CXXFLAGS="%{optflags}"
106
107 %configure2_5x
108
109 %make
110
111 %check
112 make check
113
114 %install
115 rm -rf %{buildroot}
116
117 mkdir -p %{buildroot}/{%{_bindir},%{_datadir}}
118
119 rm -rf installed_docs
120
121 %makeinstall LIBTIFF_DOCDIR=`pwd`/installed_docs
122
123 install -m0644 libtiff/tiffiop.h %{buildroot}%{_includedir}/
124 install -m0644 libtiff/tif_dir.h %{buildroot}%{_includedir}/
125
126 # multiarch policy
127 %multiarch_includes %{buildroot}%{_includedir}/tiffconf.h
128
129 %clean
130 rm -rf %{buildroot}
131
132 %files progs
133 %defattr(-,root,root,-)
134 %{_bindir}/*
135 %{_mandir}/man1/*
136
137 %files -n %{libname}
138 %defattr(-,root,root,-)
139 %{_libdir}/*.so.%{major}*
140
141 %files -n %{develname}
142 %defattr(-,root,root,755)
143 %doc installed_docs/*
144 %{_includedir}/*.h*
145 %{multiarch_includedir}/tiffconf.h
146 %{_libdir}/*.la
147 %{_libdir}/*.so
148 %{_mandir}/man3/*
149
150 %files -n %{staticdevelname}
151 %defattr(-,root,root,-)
152 %doc COPYRIGHT README TODO VERSION
153 %{_libdir}/*.a
154
155

  ViewVC Help
Powered by ViewVC 1.1.28