2004-12-08 16:40:10 +00:00
|
|
|
|
2006-12-08 17:30:56 +00:00
|
|
|
# NOTE: packages that can use jasper:
|
2004-12-08 16:40:10 +00:00
|
|
|
# ImageMagick
|
|
|
|
# netpbm
|
|
|
|
|
|
|
|
Summary: Implementation of the JPEG-2000 standard, Part 1
|
2005-03-03 21:56:40 +00:00
|
|
|
Name: jasper
|
|
|
|
Group: System Environment/Libraries
|
2007-03-29 18:57:04 +00:00
|
|
|
Version: 1.900.1
|
2011-12-09 11:44:44 +00:00
|
|
|
Release: 18%{?dist}
|
2005-04-06 22:12:02 +00:00
|
|
|
|
2007-08-17 15:15:28 +00:00
|
|
|
License: JasPer
|
2011-12-09 11:44:44 +00:00
|
|
|
URL: http://www.ece.uvic.ca/~frodo/jasper/
|
|
|
|
Source0: http://www.ece.uvic.ca/~frodo/jasper/software/jasper-%{version}.zip
|
2004-12-08 16:40:10 +00:00
|
|
|
|
2006-01-31 16:11:35 +00:00
|
|
|
Patch1: jasper-1.701.0-GL.patch
|
2006-03-01 18:12:26 +00:00
|
|
|
# autoconf/automake bits of patch1
|
|
|
|
Patch2: jasper-1.701.0-GL-ac.patch
|
2007-05-23 19:05:20 +00:00
|
|
|
# CVE-2007-2721 (bug #240397)
|
|
|
|
# borrowed from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=413041;msg=88
|
|
|
|
Patch3: patch-libjasper-stepsizes-overflow.diff
|
2009-01-25 16:15:31 +00:00
|
|
|
# borrowed from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469786
|
|
|
|
Patch4: jpc_dec.c.patch
|
2009-10-26 16:27:35 +00:00
|
|
|
# OpenBSD hardening patches addressing couple of possible integer overflows
|
|
|
|
# during the memory allocations
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2008-3520
|
|
|
|
Patch5: jasper-1.900.1-CVE-2008-3520.patch
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2008-3522
|
|
|
|
Patch6: jasper-1.900.1-CVE-2008-3522.patch
|
2009-10-29 17:49:43 +00:00
|
|
|
# add pkg-config support
|
|
|
|
Patch7: jasper-pkgconfig.patch
|
2006-01-31 16:11:35 +00:00
|
|
|
|
2011-12-09 11:44:44 +00:00
|
|
|
Patch8: jasper-1.900.1-CVE-2011-4516-CVE-2011-4517-CERT-VU-887409.patch
|
|
|
|
|
|
|
|
# Issues found by static analysis of code
|
|
|
|
Patch10: jasper-1.900.1-Coverity-BAD_SIZEOF.patch
|
|
|
|
Patch11: jasper-1.900.1-Coverity-CHECKED_RETURN.patch
|
|
|
|
Patch12: jasper-1.900.1-Coverity-FORWARD_NULL.patch
|
|
|
|
Patch13: jasper-1.900.1-Coverity-NULL_RETURNS.patch
|
|
|
|
Patch14: jasper-1.900.1-Coverity-RESOURCE_LEAK.patch
|
|
|
|
Patch15: jasper-1.900.1-Coverity-UNREACHABLE.patch
|
|
|
|
Patch16: jasper-1.900.1-Coverity-UNUSED_VALUE.patch
|
|
|
|
|
2009-10-29 17:49:43 +00:00
|
|
|
BuildRequires: automake libtool
|
2009-07-18 18:53:20 +00:00
|
|
|
BuildRequires: freeglut-devel
|
|
|
|
BuildRequires: libGLU-devel
|
2009-10-29 17:49:43 +00:00
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: pkgconfig
|
2004-12-08 16:40:10 +00:00
|
|
|
|
2011-12-09 11:44:44 +00:00
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
2007-09-17 18:20:25 +00:00
|
|
|
|
2004-12-08 16:40:10 +00:00
|
|
|
%description
|
|
|
|
This package contains an implementation of the image compression
|
|
|
|
standard JPEG-2000, Part 1. It consists of tools for conversion to and
|
|
|
|
from the JP2 and JPC formats.
|
|
|
|
|
|
|
|
%package devel
|
2007-10-15 13:34:58 +00:00
|
|
|
Summary: Header files, libraries and developer documentation
|
2004-12-08 16:40:10 +00:00
|
|
|
Group: Development/Libraries
|
2007-09-17 18:15:53 +00:00
|
|
|
Provides: libjasper-devel = %{version}-%{release}
|
2011-12-09 11:44:44 +00:00
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
2004-12-08 16:40:10 +00:00
|
|
|
Requires: libjpeg-devel
|
2009-10-29 17:49:43 +00:00
|
|
|
Requires: pkgconfig
|
2005-03-03 21:56:40 +00:00
|
|
|
%description devel
|
2005-10-17 16:04:07 +00:00
|
|
|
%{summary}.
|
2004-12-08 16:40:10 +00:00
|
|
|
|
2007-08-22 15:39:20 +00:00
|
|
|
%package libs
|
2007-10-15 13:34:58 +00:00
|
|
|
Summary: Runtime libraries for %{name}
|
|
|
|
Group: System Environment/Libraries
|
2009-07-18 18:53:20 +00:00
|
|
|
Conflicts: jasper < 1.900.1-4
|
2007-08-22 15:39:20 +00:00
|
|
|
%description libs
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%package utils
|
2007-10-15 13:34:58 +00:00
|
|
|
Summary: Nonessential utilities for %{name}
|
2007-08-22 15:39:20 +00:00
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2011-12-09 11:44:44 +00:00
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
2007-08-22 15:39:20 +00:00
|
|
|
%description utils
|
|
|
|
%{summary}, including jiv and tmrdemo.
|
|
|
|
|
|
|
|
|
2004-12-08 16:40:10 +00:00
|
|
|
|
|
|
|
%prep
|
2007-09-17 18:15:53 +00:00
|
|
|
%setup -q -n %{name}-%{version}
|
2004-12-08 16:40:10 +00:00
|
|
|
|
2006-01-31 16:11:35 +00:00
|
|
|
%patch1 -p1 -b .GL
|
2009-10-29 17:49:43 +00:00
|
|
|
%patch2 -p1 -b .GL-ac
|
2007-05-23 19:05:20 +00:00
|
|
|
%patch3 -p1 -b .CVE-2007-2721
|
2009-01-25 16:15:31 +00:00
|
|
|
%patch4 -p1 -b .jpc_dec_assertion
|
2009-10-26 16:27:35 +00:00
|
|
|
%patch5 -p1 -b .CVE-2008-3520
|
|
|
|
%patch6 -p1 -b .CVE-2008-3522
|
2009-10-29 17:49:43 +00:00
|
|
|
%patch7 -p1 -b .pkgconfig
|
2011-12-09 11:44:44 +00:00
|
|
|
%patch8 -p1 -b .CVE-2011-4516-4517
|
|
|
|
|
|
|
|
%patch10 -p1 -b .BAD_SIZEOF
|
|
|
|
%patch11 -p1 -b .CHECKED_RETURN
|
|
|
|
%patch12 -p1 -b .FORWARD_NULL
|
|
|
|
%patch13 -p1 -b .NULL_RETURNS
|
|
|
|
%patch14 -p1 -b .RESOURCE_LEAK
|
|
|
|
%patch15 -p1 -b .UNREACHABLE
|
|
|
|
%patch16 -p1 -b .UNUSED_VALUE
|
2009-10-29 17:49:43 +00:00
|
|
|
|
|
|
|
autoreconf -i
|
2006-01-31 16:11:35 +00:00
|
|
|
|
2007-05-23 19:05:20 +00:00
|
|
|
|
2004-12-08 16:40:10 +00:00
|
|
|
%build
|
2006-03-01 16:30:23 +00:00
|
|
|
|
2004-12-08 16:40:10 +00:00
|
|
|
%configure \
|
2005-10-18 13:10:42 +00:00
|
|
|
--enable-shared \
|
2005-10-17 16:04:07 +00:00
|
|
|
--disable-static
|
2004-12-08 16:40:10 +00:00
|
|
|
|
2005-03-03 21:56:40 +00:00
|
|
|
make %{?_smp_mflags}
|
2004-12-08 16:40:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2005-10-17 16:04:07 +00:00
|
|
|
|
2005-03-03 21:56:40 +00:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2004-12-08 16:40:10 +00:00
|
|
|
|
|
|
|
# Unpackaged files
|
|
|
|
rm -f doc/README
|
2005-10-17 16:04:07 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
|
2004-12-08 16:40:10 +00:00
|
|
|
|
|
|
|
|
2006-12-08 17:30:56 +00:00
|
|
|
%check
|
|
|
|
make check
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-10-15 13:34:58 +00:00
|
|
|
%post libs -p /sbin/ldconfig
|
2006-12-08 17:30:56 +00:00
|
|
|
|
2007-10-15 13:34:58 +00:00
|
|
|
%postun libs -p /sbin/ldconfig
|
2006-12-08 17:30:56 +00:00
|
|
|
|
|
|
|
|
2004-12-08 16:40:10 +00:00
|
|
|
%files
|
2006-01-31 16:11:35 +00:00
|
|
|
%{_bindir}/imgcmp
|
|
|
|
%{_bindir}/imginfo
|
2007-08-22 15:39:20 +00:00
|
|
|
%{_bindir}/jasper
|
|
|
|
%{_mandir}/man1/img*
|
|
|
|
%{_mandir}/man1/jasper.1*
|
2004-12-08 16:40:10 +00:00
|
|
|
|
2005-03-03 21:56:40 +00:00
|
|
|
%files devel
|
2004-12-08 16:40:10 +00:00
|
|
|
%doc doc/*
|
2006-03-01 16:30:23 +00:00
|
|
|
%{_includedir}/jasper/
|
2009-01-25 16:15:31 +00:00
|
|
|
%{_libdir}/libjasper.so
|
2009-10-29 17:49:43 +00:00
|
|
|
%{_libdir}/pkgconfig/jasper.pc
|
2004-12-08 16:40:10 +00:00
|
|
|
|
2007-08-22 15:39:20 +00:00
|
|
|
%files libs
|
2007-09-17 18:15:53 +00:00
|
|
|
%doc COPYRIGHT LICENSE NEWS README
|
2009-01-25 16:15:31 +00:00
|
|
|
%{_libdir}/libjasper.so.1*
|
2007-08-22 15:39:20 +00:00
|
|
|
|
|
|
|
%files utils
|
|
|
|
%{_bindir}/jiv
|
|
|
|
%{_bindir}/tmrdemo
|
|
|
|
%{_mandir}/man1/jiv.1*
|
|
|
|
|
2004-12-08 16:40:10 +00:00
|
|
|
|
2005-03-03 21:56:40 +00:00
|
|
|
%changelog
|
2011-12-09 11:44:44 +00:00
|
|
|
* Fri Dec 09 2011 Jiri Popelka <jpopelka@redhat.com> - 1.900.1-18
|
|
|
|
- CVE-2011-4516, CVE-2011-4517 jasper: heap buffer overflow flaws
|
|
|
|
lead to arbitrary code execution (CERT VU#887409) (#765660)
|
|
|
|
- Fixed problems found by static analysis of code (#761440)
|
|
|
|
- spec file modernized
|
|
|
|
|
2011-02-09 13:45:22 +00:00
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.900.1-17
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-07-01 03:17:52 +00:00
|
|
|
* Wed Jun 30 2010 Rex Dieter <rdieter@fedoraproject.org> - 1.900.1-16
|
|
|
|
- rebuild
|
|
|
|
|
2010-02-14 19:13:15 +00:00
|
|
|
* Sun Feb 14 2010 Rex Dieter <rdieter@fedoraproject.org> - 1.900.1-15
|
|
|
|
- FTBFS jasper-1.900.1-14.fc12: ImplicitDSOLinking (#564794)
|
|
|
|
|
2009-10-29 17:49:43 +00:00
|
|
|
* Thu Oct 29 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.900.1-14
|
|
|
|
- add pkgconfig support
|
|
|
|
|
2009-10-26 16:27:35 +00:00
|
|
|
* Mon Oct 13 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.900.1-13
|
|
|
|
- CVE-2008-3520 jasper: multiple integer overflows in jas_alloc calls (#461476)
|
|
|
|
- CVE-2008-3522 jasper: possible buffer overflow in
|
|
|
|
jas_stream_printf() (#461478)
|
|
|
|
|
2009-07-25 03:53:53 +00:00
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.900.1-12
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-07-18 18:53:20 +00:00
|
|
|
* Sat Jul 18 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.900.1-11
|
|
|
|
- FTBFS jasper-1.900.1-10.fc11 (#511743)
|
|
|
|
|
2009-02-25 08:57:53 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.900.1-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2009-01-25 16:15:31 +00:00
|
|
|
* Sun Jan 25 2009 Rex Dieter <rdieter@fedoraproject.org> 1.900.1-9
|
|
|
|
- patch for "jpc_dec_tiledecode: Assertion `dec->numcomps == 3' failed)
|
|
|
|
(#481284, #481291)
|
|
|
|
|
2008-02-08 21:24:17 +00:00
|
|
|
* Fri Feb 08 2008 Rex Dieter <rdieter@fedoraproject.org> 1.900.1-8
|
|
|
|
- respin (gcc43)
|
|
|
|
|
2007-10-15 13:34:58 +00:00
|
|
|
* Mon Oct 15 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.900.1-7
|
|
|
|
- -libs: %%post/%%postun -p /sbin/ldconfig
|
|
|
|
|
2007-09-17 18:20:25 +00:00
|
|
|
* Mon Sep 17 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.900.1-6
|
|
|
|
- -libs: -Requires: %%name
|
|
|
|
- -devel: +Provides: libjasper-devel
|
2007-09-17 18:15:53 +00:00
|
|
|
- drop (unused) geojasper bits
|
|
|
|
|
2007-08-22 15:39:20 +00:00
|
|
|
* Wed Aug 22 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.900.1-4
|
|
|
|
- -libs subpkg to be multilib friendlier
|
|
|
|
- -utils subpkg for non-essential binaries jiv, tmrdemo (#244153)
|
|
|
|
|
2007-08-17 15:15:28 +00:00
|
|
|
* Fri Aug 17 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.900.1-3
|
|
|
|
- License: JasPer
|
|
|
|
|
2007-05-23 19:05:20 +00:00
|
|
|
* Wed May 23 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.900.1-2
|
|
|
|
- CVE-2007-2721 (#240397)
|
|
|
|
|
2007-03-29 18:57:04 +00:00
|
|
|
* Thu Mar 29 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.900.1-1
|
|
|
|
- jasper-1.900.1
|
|
|
|
|
2006-12-09 04:12:31 +00:00
|
|
|
* Fri Dec 08 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.900.0-3
|
|
|
|
- omit deprecated memleak patch
|
|
|
|
|
2006-12-08 17:32:36 +00:00
|
|
|
* Fri Dec 08 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.900.0-2
|
2006-12-08 17:31:48 +00:00
|
|
|
- jasper-1.900.0 (#218947)
|
2006-10-04 19:21:42 +00:00
|
|
|
|
2006-09-18 20:49:57 +00:00
|
|
|
* Mon Sep 18 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.701.0-15
|
2006-09-18 20:17:57 +00:00
|
|
|
- memory leak (#207006)
|
|
|
|
|
2006-08-29 17:28:32 +00:00
|
|
|
* Tue Aug 29 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.701.0-13
|
|
|
|
- fc6 respin
|
|
|
|
|
2006-03-01 18:16:10 +00:00
|
|
|
* Wed Mar 1 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.701.0-12
|
2006-03-01 18:12:26 +00:00
|
|
|
- fixup build issues introduced by geojasper integration
|
|
|
|
|
2006-03-01 16:30:23 +00:00
|
|
|
* Wed Mar 1 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.701.0-10
|
|
|
|
- support/use geojasper (optional, default no)
|
|
|
|
- fc5: gcc/glibc respin
|
|
|
|
|
2006-02-10 13:56:56 +00:00
|
|
|
* Fri Feb 10 2006 Rex Dieter <rexdieter[AT]users.sf.net>
|
|
|
|
- fc5: gcc/glibc respin
|
|
|
|
|
2006-01-31 16:43:46 +00:00
|
|
|
* Tue Jan 31 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.701.0-9
|
|
|
|
- workaround "freeglut-devel should Requires: libGL-devel, libGLU-devel"
|
|
|
|
(#179464)
|
|
|
|
|
2006-01-31 16:11:35 +00:00
|
|
|
* Tue Jan 31 2006 Rex Dieter <rexdieter[AT]users.sf.net> 1.701.0-8
|
|
|
|
- revert jasper to jaspertool rename (#176773)
|
|
|
|
- actually use/apply GL patch
|
|
|
|
|
2005-10-18 13:10:42 +00:00
|
|
|
* Tue Oct 18 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.701.0-7
|
|
|
|
- GL patch to remove libGL dependancy (using only freeglut)
|
|
|
|
|
|
|
|
* Tue Oct 18 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.701.0-6
|
|
|
|
- token %%check section
|
|
|
|
- --enable-shared
|
|
|
|
|
2005-10-17 16:04:07 +00:00
|
|
|
* Mon Oct 17 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.701.0-5
|
|
|
|
- use %%{?dist}
|
2005-10-18 12:51:44 +00:00
|
|
|
- BR: libGL-devel
|
2005-10-17 16:04:07 +00:00
|
|
|
|
2005-04-06 22:12:02 +00:00
|
|
|
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
|
|
|
|
- rebuilt
|
|
|
|
|
2004-12-08 16:40:10 +00:00
|
|
|
* Sat Oct 23 2004 Rex Dieter <rexdieter at sf.net> 0:1.701.0-0.fdr.3
|
|
|
|
- Capitalize summary
|
|
|
|
- remove 0-length ChangeLog
|
|
|
|
|
|
|
|
* Fri Jun 04 2004 Rex Dieter <rexdieter at sf.net> 0:1.701.0-0.fdr.2
|
|
|
|
- nuke .la file
|
|
|
|
- BR: glut-devel -> freeglut-devel
|
|
|
|
|
|
|
|
* Tue Jun 01 2004 Rex Dieter <rexdieter at sf.net> 0:1.701.0-0.fdr.1
|
|
|
|
- 1.701.0
|
|
|
|
|
|
|
|
* Tue Jun 01 2004 Rex Dieter <rexdieter at sf.net> 0:1.700.5-0.fdr.2
|
|
|
|
- avoid conflicts with fc'2 tomcat by renaming /usr/bin/jasper -> jaspertool
|
|
|
|
|
|
|
|
* Mon Mar 08 2004 Rex Dieter <rexdieter at sf.net> 0:1.700.5-0.fdr.1
|
|
|
|
- use Epochs.
|
|
|
|
- -devel: Requires: %%name = %%epoch:%%version
|
|
|
|
|
|
|
|
* Thu Jan 22 2004 Rex Dieter <rexdieter at sf.net> 1.700.5-0.fdr.0
|
|
|
|
- first try
|
|
|
|
|