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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.28