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