[521] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | |
---|
| 3 | Name: jasper |
---|
[3473] | 4 | Summary: implementation of the JPEG-2000 standard, Part 1 |
---|
[521] | 5 | Version: 1.900.1 |
---|
[9253] | 6 | Release: 10%{?_dist_release} |
---|
[3473] | 7 | |
---|
| 8 | Group: Applications/Graphics |
---|
| 9 | License: Modified BSD (see LICENSE) |
---|
[521] | 10 | URL: http://www.ece.uvic.ca/~mdadams/jasper/ |
---|
[3473] | 11 | |
---|
[521] | 12 | Source: %{name}-%{version}.zip |
---|
| 13 | |
---|
[9253] | 14 | Patch1: jasper-1.701.0-GL.patch |
---|
| 15 | # autoconf/automake bits of patch1 |
---|
| 16 | Patch2: jasper-1.701.0-GL-ac.patch |
---|
| 17 | # CVE-2007-2721 (bug #240397) |
---|
| 18 | # borrowed from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=413041;msg=88 |
---|
| 19 | Patch3: patch-libjasper-stepsizes-overflow.diff |
---|
| 20 | # borrowed from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469786 |
---|
| 21 | Patch4: jpc_dec.c.patch |
---|
| 22 | # OpenBSD hardening patches addressing couple of possible integer overflows |
---|
| 23 | # during the memory allocations |
---|
| 24 | # https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2008-3520 |
---|
| 25 | Patch5: jasper-1.900.1-CVE-2008-3520.patch |
---|
| 26 | # https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2008-3522 |
---|
| 27 | Patch6: jasper-1.900.1-CVE-2008-3522.patch |
---|
| 28 | # add pkg-config support |
---|
| 29 | Patch7: jasper-pkgconfig.patch |
---|
| 30 | |
---|
| 31 | Patch8: jasper-1.900.1-CVE-2011-4516-CVE-2011-4517-CERT-VU-887409.patch |
---|
| 32 | |
---|
| 33 | Patch9: jasper-CVE-2014-9029.patch |
---|
| 34 | Patch10: jasper-CVE-2014-8137.patch |
---|
| 35 | Patch11: jasper-CVE-2014-8138.patch |
---|
| 36 | |
---|
| 37 | # Issues found by static analysis of code |
---|
| 38 | Patch110: jasper-1.900.1-Coverity-BAD_SIZEOF.patch |
---|
| 39 | Patch111: jasper-1.900.1-Coverity-CHECKED_RETURN.patch |
---|
| 40 | Patch112: jasper-1.900.1-Coverity-FORWARD_NULL.patch |
---|
| 41 | Patch113: jasper-1.900.1-Coverity-NULL_RETURNS.patch |
---|
| 42 | Patch114: jasper-1.900.1-Coverity-RESOURCE_LEAK.patch |
---|
| 43 | Patch115: jasper-1.900.1-Coverity-UNREACHABLE.patch |
---|
| 44 | Patch116: jasper-1.900.1-Coverity-UNUSED_VALUE.patch |
---|
| 45 | |
---|
[521] | 46 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[9253] | 47 | BuildRequires: autoconf automake libtool |
---|
[521] | 48 | BuildRequires: freeglut-devel |
---|
[9253] | 49 | BuildRequires: libGLU-devel |
---|
| 50 | BuildRequires: libjpeg-devel |
---|
| 51 | BuildRequires: pkgconfig |
---|
| 52 | |
---|
[521] | 53 | Requires: %{name}-libs = %{version}-%{release} |
---|
| 54 | |
---|
| 55 | Vendor: Project Vine |
---|
| 56 | Distribution: Vine Linux |
---|
| 57 | |
---|
| 58 | %description |
---|
| 59 | JasPer is a collection of software (i.e., a library and application |
---|
| 60 | programs) for the coding and manipulation of images. This software |
---|
| 61 | can handle image data in a variety of formats. One such format |
---|
| 62 | supported by JasPer is the JPEG-2000 format defined in ISO/IEC 15444-1. |
---|
| 63 | |
---|
| 64 | %package devel |
---|
| 65 | Summary: Include Files and Documentation for jasper |
---|
| 66 | Group: Development/Libraries |
---|
| 67 | Requires: %{name}-libs = %{version}-%{release} |
---|
| 68 | Requires: libjpeg-devel |
---|
| 69 | |
---|
| 70 | %description devel |
---|
| 71 | This package contains libjasper, a library implementing the JPEG-2000 |
---|
| 72 | image compression standard Part 1. |
---|
| 73 | |
---|
| 74 | %package libs |
---|
| 75 | Summary: Runtime libraries for %{name} |
---|
| 76 | Group: System Environment/Libraries |
---|
| 77 | |
---|
| 78 | %description libs |
---|
| 79 | This package contains runtime libraries for JasPer. |
---|
| 80 | |
---|
| 81 | # compat32 |
---|
| 82 | %package -n compat32-%{name}-devel |
---|
| 83 | Summary: Include Files and Documentation for jasper |
---|
| 84 | Group: Development/Libraries |
---|
| 85 | Requires: %{name}-libs = %{version}-%{release} |
---|
| 86 | Requires: compat32-libjpeg-devel |
---|
| 87 | |
---|
| 88 | %description -n compat32-%{name}-devel |
---|
| 89 | This package contains libjasper, a library implementing the JPEG-2000 |
---|
| 90 | image compression standard Part 1. |
---|
| 91 | |
---|
| 92 | %package -n compat32-%{name}-libs |
---|
| 93 | Summary: Runtime libraries for %{name} |
---|
| 94 | Group: System Environment/Libraries |
---|
| 95 | |
---|
| 96 | %description -n compat32-%{name}-libs |
---|
| 97 | This package contains runtime libraries for JasPer. |
---|
| 98 | |
---|
| 99 | |
---|
| 100 | %prep |
---|
[9253] | 101 | %setup -q -n %{name}-%{version} |
---|
[521] | 102 | |
---|
[9253] | 103 | %patch1 -p1 -b .GL |
---|
| 104 | %patch2 -p1 -b .GL-ac |
---|
| 105 | %patch3 -p1 -b .CVE-2007-2721 |
---|
| 106 | %patch4 -p1 -b .jpc_dec_assertion |
---|
| 107 | %patch5 -p1 -b .CVE-2008-3520 |
---|
| 108 | %patch6 -p1 -b .CVE-2008-3522 |
---|
| 109 | %patch7 -p1 -b .pkgconfig |
---|
| 110 | %patch8 -p1 -b .CVE-2011-4516-4517 |
---|
| 111 | %patch9 -p1 -b .CVE-2014-9029 |
---|
| 112 | %patch10 -p1 -b .CVE-2014-8137-variant2 |
---|
| 113 | %patch11 -p1 -b .CVE-2014-8138 |
---|
[521] | 114 | |
---|
[9253] | 115 | %patch110 -p1 -b .BAD_SIZEOF |
---|
| 116 | %patch111 -p1 -b .CHECKED_RETURN |
---|
| 117 | %patch112 -p1 -b .FORWARD_NULL |
---|
| 118 | %patch113 -p1 -b .NULL_RETURNS |
---|
| 119 | %patch114 -p1 -b .RESOURCE_LEAK |
---|
| 120 | %patch115 -p1 -b .UNREACHABLE |
---|
| 121 | %patch116 -p1 -b .UNUSED_VALUE |
---|
| 122 | |
---|
| 123 | autoreconf --verbose --force --install |
---|
| 124 | |
---|
[521] | 125 | %build |
---|
[9253] | 126 | CFLAGS="%{optflags} -fno-strict-overflow" \ |
---|
| 127 | %configure --enable-shared --disable-static |
---|
[521] | 128 | |
---|
[9253] | 129 | make %{?_smp_mflags} |
---|
| 130 | |
---|
[521] | 131 | %install |
---|
| 132 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT |
---|
| 133 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 134 | |
---|
| 135 | # remove .la |
---|
| 136 | rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la |
---|
| 137 | |
---|
| 138 | %clean |
---|
| 139 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT |
---|
| 140 | |
---|
| 141 | %post libs -p /sbin/ldconfig |
---|
| 142 | |
---|
| 143 | %postun libs -p /sbin/ldconfig |
---|
| 144 | |
---|
| 145 | %post -n compat32-%{name}-libs -p /sbin/ldconfig |
---|
| 146 | |
---|
| 147 | %postun -n compat32-%{name}-libs -p /sbin/ldconfig |
---|
| 148 | |
---|
| 149 | %files |
---|
| 150 | %defattr(-,root,root) |
---|
| 151 | %doc COPYRIGHT ChangeLog INSTALL LICENSE NEWS README doc |
---|
| 152 | %{_bindir}/* |
---|
| 153 | %{_mandir}/man1/* |
---|
| 154 | |
---|
| 155 | %files libs |
---|
| 156 | %defattr(-,root,root) |
---|
| 157 | %{_libdir}/libjasper*.so.* |
---|
| 158 | |
---|
| 159 | %files devel |
---|
| 160 | %defattr(-,root,root) |
---|
| 161 | %{_includedir}/jasper |
---|
| 162 | %{_libdir}/libjasper*.so |
---|
[9253] | 163 | %{_libdir}/pkgconfig/jasper.pc |
---|
[521] | 164 | |
---|
| 165 | # compat32 |
---|
| 166 | %if %{build_compat32} |
---|
| 167 | %files -n compat32-%{name}-libs |
---|
| 168 | %defattr(-,root,root) |
---|
| 169 | %{_libdir}/libjasper*.so.* |
---|
| 170 | |
---|
| 171 | %files -n compat32-%{name}-devel |
---|
| 172 | %defattr(-,root,root) |
---|
| 173 | %{_libdir}/libjasper*.so |
---|
[9253] | 174 | %{_libdir}/pkgconfig/jasper.pc |
---|
[521] | 175 | %endif |
---|
| 176 | |
---|
| 177 | %changelog |
---|
[9253] | 178 | * Wed Dec 24 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.900.1-10 |
---|
| 179 | - imported all patches from RawHide. |
---|
| 180 | |
---|
[8835] | 181 | * Tue Jul 15 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.900.1-9 |
---|
| 182 | - rebuild with libpng-1.6.12 |
---|
| 183 | |
---|
[3473] | 184 | * Thu Apr 14 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.900.1-8 |
---|
| 185 | - rebuilt with current VineSeed |
---|
| 186 | |
---|
[521] | 187 | * Sat May 02 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.900.1-7 |
---|
| 188 | - added compat32 subpackage for x86_64 arch support. |
---|
| 189 | |
---|
| 190 | * Sat Sep 06 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.900.1-6 |
---|
| 191 | - splited out runtime library to sub package |
---|
| 192 | - enable opengl again, add BuildRequires: freeglut-devel |
---|
| 193 | |
---|
| 194 | * Wed Jun 25 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.900.1-5 |
---|
| 195 | - remove .la |
---|
| 196 | - add --disable-static to configure option |
---|
| 197 | |
---|
| 198 | * Sun Jun 24 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.900.1-0vl4 |
---|
| 199 | - added Patch0 from VinePlus/4.0 |
---|
| 200 | * Thu Jun 21 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.900.1-0vl2.1 |
---|
| 201 | - add patch100 for fix CVE-2007-2721 |
---|
| 202 | - add Vendor/Distributin Tag |
---|
| 203 | |
---|
| 204 | * Fri May 25 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.900.1-0vl3 |
---|
| 205 | - remove BuildPrereq: freeglut-devel and Requires freeglut |
---|
| 206 | - add --disable-opengl to configure option |
---|
| 207 | |
---|
| 208 | * Fri Mar 16 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.900.1-0vl2 |
---|
| 209 | - add BuildPreReq: unzip (used in the %%pre section) |
---|
| 210 | |
---|
| 211 | * Thu Mar 15 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.900.1-0vl1 |
---|
| 212 | - new upstream release |
---|
| 213 | |
---|
| 214 | * Tue Jan 16 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.900.0-0vl1 |
---|
| 215 | - new upstream release |
---|
| 216 | - changed Group to System Environment/Libraries |
---|
| 217 | - added --mandir=%{_mandir} |
---|
| 218 | - added %post and %postun section |
---|
| 219 | |
---|
| 220 | * Thu Sep 07 2006 NAKAMURA Kenta <kenta@vinelinux.org> 1.701.0-0vl3 |
---|
| 221 | - added --libdir=%{_libdir} configure option |
---|
| 222 | |
---|
| 223 | * Tue Sep 5 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.701.0-0vl2 |
---|
| 224 | - build with freeglut |
---|
| 225 | - change BuildPrereq and Requires |
---|
| 226 | |
---|
| 227 | * Tue Dec 14 2004 Satoshi MACHINO <machino@vinelinux.org> 1.701.0-0vl1 |
---|
| 228 | - new upstream version (jasper-1.701.0) |
---|
| 229 | |
---|
| 230 | * Sat Nov 15 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.700.5-0vl2 |
---|
| 231 | - rebuild for VineSeedPlus |
---|
| 232 | |
---|
| 233 | * Sat Nov 15 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.700.5-0vl1 |
---|
| 234 | - source upgrade |
---|
| 235 | - change spec to build for VineLinux |
---|
| 236 | |
---|
| 237 | * Fri Oct 25 2002 Alexander D. Karaivanov <adk@medical-insight.com> |
---|
| 238 | - spec file created |
---|