[3474] | 1 | Name: openjpeg |
---|
[521] | 2 | Summary: JPEG 2000 codec library |
---|
| 3 | Summary(ja): JPEG 2000 コーデックライブラリ |
---|
[3474] | 4 | Version: 1.4 |
---|
[8062] | 5 | Release: 4%{?_dist_release} |
---|
[3474] | 6 | Group: System Environment/Libraries |
---|
| 7 | License: BSD |
---|
| 8 | URL: http://www.openjpeg.org/ |
---|
| 9 | |
---|
| 10 | Source0: http://openjpeg.googlecode.com/files/%{name}_v1_4_sources_r697.tgz |
---|
| 11 | |
---|
| 12 | ## upstreamable patches |
---|
| 13 | # libopenjpeg has undefined references, http://bugzilla.redhat.com/467661 |
---|
| 14 | # http://groups.google.com/group/openjpeg/browse_thread/thread/fba9ad2a35b12e6a |
---|
| 15 | Patch50: openjpeg-1.4-no_undefined.patch |
---|
| 16 | # fix autoconf buildsys (+DESTDIR support mostly) |
---|
| 17 | # http://groups.google.com/group/openjpeg/browse_thread/thread/6326363ebb969a99 |
---|
| 18 | Patch52: openjpeg-1.4-autoconf.patch |
---|
| 19 | |
---|
[8062] | 20 | # Security |
---|
| 21 | Patch100: openjpeg-1.4_CVE-2012-3535.patch |
---|
| 22 | Patch110: openjpeg-cve-2009-5030.patch |
---|
| 23 | Patch120: openjpeg-1.4_CVE-2012-3358.patch |
---|
| 24 | |
---|
[521] | 25 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
[3474] | 26 | BuildRequires: automake libtool |
---|
| 27 | BuildRequires: libtiff-devel |
---|
| 28 | BuildRequires: lcms-devel |
---|
[8062] | 29 | BuildRequires: libjpeg-devel, libpng-devel |
---|
[521] | 30 | |
---|
[8062] | 31 | Vendor: Project Vine |
---|
| 32 | Distribution: Vine Linux |
---|
| 33 | |
---|
[521] | 34 | %description |
---|
| 35 | The OpenJPEG library is an open-source JPEG 2000 codec written in C language. |
---|
| 36 | It has been developed in order to promote the use of JPEG 2000, the new |
---|
| 37 | still-image compression standard from the Joint Photographic Experts Group |
---|
| 38 | (JPEG). |
---|
| 39 | |
---|
| 40 | %package devel |
---|
[3474] | 41 | Summary: Development files for openjpeg |
---|
| 42 | Group: Development/Libraries |
---|
| 43 | Requires: %{name} = %{version}-%{release} |
---|
[521] | 44 | |
---|
| 45 | %description devel |
---|
| 46 | The openjpeg-devel package contains libraries and header files for |
---|
| 47 | developing applications that use openjpeg. |
---|
| 48 | |
---|
[3474] | 49 | %package tools |
---|
| 50 | Summary: Command-line tools using the JPEG 2000 library |
---|
| 51 | Group: Applications/Graphics |
---|
| 52 | Requires: %{name} = %{version}-%{release} |
---|
| 53 | |
---|
| 54 | %description tools |
---|
| 55 | The openjpeg-tools package provides with command-line tools allowing |
---|
| 56 | for conversions between several formats. |
---|
| 57 | |
---|
| 58 | |
---|
[521] | 59 | %prep |
---|
[3474] | 60 | %setup -q -n openjpeg_v1_4_sources_r697 %{?runcheck:-a 1} |
---|
| 61 | # Make sure we use system libraries |
---|
| 62 | rm -rf libs |
---|
[521] | 63 | |
---|
[3474] | 64 | %patch50 -p1 -b .no_undefined |
---|
| 65 | %patch52 -p1 -b .autoconf |
---|
[8062] | 66 | |
---|
| 67 | %patch110 -p1 -b .cve-2009-5030 |
---|
| 68 | %patch120 -p1 -b .CVE-2012-3358 |
---|
| 69 | %patch100 -p1 -b .CVE-2012-3535 |
---|
| 70 | |
---|
[3474] | 71 | autoreconf -i -f |
---|
| 72 | |
---|
[521] | 73 | %build |
---|
[3474] | 74 | %configure \ |
---|
| 75 | --enable-shared \ |
---|
| 76 | --disable-static \ |
---|
| 77 | --enable-lcms2=no \ |
---|
| 78 | --enable-lcms1=yes |
---|
[521] | 79 | |
---|
[3474] | 80 | make |
---|
| 81 | |
---|
[521] | 82 | %install |
---|
[3474] | 83 | rm -rf $RPM_BUILD_ROOT |
---|
| 84 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
[521] | 85 | |
---|
[3474] | 86 | rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la |
---|
| 87 | |
---|
| 88 | ln -s openjpeg-1.4 $RPM_BUILD_ROOT%{_includedir}/openjpeg |
---|
| 89 | |
---|
| 90 | |
---|
[521] | 91 | %clean |
---|
| 92 | rm -rf %{buildroot} |
---|
| 93 | |
---|
| 94 | %post -p /sbin/ldconfig |
---|
| 95 | |
---|
| 96 | %postun -p /sbin/ldconfig |
---|
| 97 | |
---|
| 98 | %files |
---|
| 99 | %defattr(-,root,root,-) |
---|
[3474] | 100 | %doc CHANGES LICENSE |
---|
[521] | 101 | %{_libdir}/libopenjpeg.so.* |
---|
[3474] | 102 | %{_mandir}/man3/* |
---|
[521] | 103 | |
---|
| 104 | %files devel |
---|
| 105 | %defattr(-,root,root,-) |
---|
[3474] | 106 | %{_includedir}/openjpeg-1.4/ |
---|
| 107 | %{_libdir}/libopenjpeg.so |
---|
| 108 | %{_libdir}/pkgconfig/lib*.pc |
---|
| 109 | # legacy/compat header locations |
---|
[521] | 110 | %{_includedir}/openjpeg.h |
---|
[8062] | 111 | %{_includedir}/openjpeg |
---|
[521] | 112 | |
---|
[3474] | 113 | %files tools |
---|
| 114 | %defattr(-,root,root,-) |
---|
| 115 | %{_bindir}/* |
---|
| 116 | %{_mandir}/man1/* |
---|
| 117 | |
---|
[521] | 118 | %changelog |
---|
[8062] | 119 | * Tue Dec 24 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4-4 |
---|
| 120 | - fix %%files devel |
---|
| 121 | |
---|
| 122 | * Tue Feb 26 2013 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.4-3 |
---|
| 123 | - add patch110 for fix CVE-2009-5030 (Gray16 TIFF) |
---|
| 124 | - add patch120 for fix CVE-2012-3358 (j2k) |
---|
| 125 | (Both patches are based on RHEL6, thanks) |
---|
| 126 | |
---|
| 127 | * Thu Sep 20 2012 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.4-2 |
---|
| 128 | - add patch100 for fix CVE-2012-3535 (sanity-check an image header) |
---|
| 129 | (based on RHEL6, thanks) |
---|
| 130 | - add Vendor/Distri tags |
---|
| 131 | - add BR: libjpeg-devel, libpng-devel |
---|
| 132 | |
---|
[3474] | 133 | * Thu Apr 14 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4-1 |
---|
| 134 | - updated to 1.4 |
---|
| 135 | - built with current VineSeed |
---|
| 136 | - added tools subpackage |
---|
| 137 | |
---|
[521] | 138 | * Thu Oct 09 2008 Shu KONNO <owa@bg.wakwak.com> 1.2-1vl5 |
---|
| 139 | - applied new versioning policy, spec in utf-8 |
---|
| 140 | |
---|
| 141 | * Sun Jul 29 2007 NAKAMURA Kenta <kenta@vinelinux.org> 1.2-0vl2 |
---|
| 142 | - added lib64 patch for x86_64 architecture |
---|
| 143 | |
---|
| 144 | * Wed Jun 27 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2-0vl1 |
---|
| 145 | - new upstream release |
---|
| 146 | |
---|
| 147 | * Sun Apr 01 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.1-0vl1 |
---|
| 148 | - initial build for Vine Linux |
---|