1 | Name: openjpeg |
---|
2 | Summary: JPEG 2000 codec library |
---|
3 | Summary(ja): JPEG 2000 コーデックライブラリ |
---|
4 | Version: 1.4 |
---|
5 | Release: 3%{?_dist_release} |
---|
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 | |
---|
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 | |
---|
25 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
26 | BuildRequires: automake libtool |
---|
27 | BuildRequires: libtiff-devel |
---|
28 | BuildRequires: lcms-devel |
---|
29 | BuildRequires: libjpeg-devel, libpng-devel |
---|
30 | |
---|
31 | Vendor: Project Vine |
---|
32 | Distribution: Vine Linux |
---|
33 | |
---|
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 |
---|
41 | Summary: Development files for openjpeg |
---|
42 | Group: Development/Libraries |
---|
43 | Requires: %{name} = %{version}-%{release} |
---|
44 | |
---|
45 | %description devel |
---|
46 | The openjpeg-devel package contains libraries and header files for |
---|
47 | developing applications that use openjpeg. |
---|
48 | |
---|
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 | |
---|
59 | %prep |
---|
60 | %setup -q -n openjpeg_v1_4_sources_r697 %{?runcheck:-a 1} |
---|
61 | # Make sure we use system libraries |
---|
62 | rm -rf libs |
---|
63 | |
---|
64 | %patch50 -p1 -b .no_undefined |
---|
65 | %patch52 -p1 -b .autoconf |
---|
66 | |
---|
67 | %patch110 -p1 -b .cve-2009-5030 |
---|
68 | %patch120 -p1 -b .CVE-2012-3358 |
---|
69 | %patch100 -p1 -b .CVE-2012-3535 |
---|
70 | |
---|
71 | autoreconf -i -f |
---|
72 | |
---|
73 | %build |
---|
74 | %configure \ |
---|
75 | --enable-shared \ |
---|
76 | --disable-static \ |
---|
77 | --enable-lcms2=no \ |
---|
78 | --enable-lcms1=yes |
---|
79 | |
---|
80 | make |
---|
81 | |
---|
82 | %install |
---|
83 | rm -rf $RPM_BUILD_ROOT |
---|
84 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
85 | |
---|
86 | rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la |
---|
87 | |
---|
88 | ln -s openjpeg-1.4 $RPM_BUILD_ROOT%{_includedir}/openjpeg |
---|
89 | |
---|
90 | |
---|
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,-) |
---|
100 | %doc CHANGES LICENSE |
---|
101 | %{_libdir}/libopenjpeg.so.* |
---|
102 | %{_mandir}/man3/* |
---|
103 | |
---|
104 | %files devel |
---|
105 | %defattr(-,root,root,-) |
---|
106 | %{_includedir}/openjpeg-1.4/ |
---|
107 | %{_libdir}/libopenjpeg.so |
---|
108 | %{_libdir}/pkgconfig/lib*.pc |
---|
109 | # legacy/compat header locations |
---|
110 | %{_includedir}/openjpeg.h |
---|
111 | %{_includedir}/openjpeg/ |
---|
112 | |
---|
113 | %files tools |
---|
114 | %defattr(-,root,root,-) |
---|
115 | %{_bindir}/* |
---|
116 | %{_mandir}/man1/* |
---|
117 | |
---|
118 | %changelog |
---|
119 | * Tue Feb 26 2013 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.4-3 |
---|
120 | - add patch110 for fix CVE-2009-5030 (Gray16 TIFF) |
---|
121 | - add patch120 for fix CVE-2012-3358 (j2k) |
---|
122 | (Both patches are based on RHEL6, thanks) |
---|
123 | |
---|
124 | * Thu Sep 20 2012 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.4-2 |
---|
125 | - add patch100 for fix CVE-2012-3535 (sanity-check an image header) |
---|
126 | (based on RHEL6, thanks) |
---|
127 | - add Vendor/Distri tags |
---|
128 | - add BR: libjpeg-devel, libpng-devel |
---|
129 | |
---|
130 | * Thu Apr 14 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4-1 |
---|
131 | - updated to 1.4 |
---|
132 | - built with current VineSeed |
---|
133 | - added tools subpackage |
---|
134 | |
---|
135 | * Thu Oct 09 2008 Shu KONNO <owa@bg.wakwak.com> 1.2-1vl5 |
---|
136 | - applied new versioning policy, spec in utf-8 |
---|
137 | |
---|
138 | * Sun Jul 29 2007 NAKAMURA Kenta <kenta@vinelinux.org> 1.2-0vl2 |
---|
139 | - added lib64 patch for x86_64 architecture |
---|
140 | |
---|
141 | * Wed Jun 27 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2-0vl1 |
---|
142 | - new upstream release |
---|
143 | |
---|
144 | * Sun Apr 01 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.1-0vl1 |
---|
145 | - initial build for Vine Linux |
---|