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