source: projects/specs/branches/6/o/openjpeg/openjpeg-vl.spec @ 7627

Revision 7627, 3.8 KB checked in by iwamoto, 11 years ago (diff)

update: libxslt, kernel, krb5, openjpeg, perl specfiles

Line 
1Name: openjpeg
2Summary: JPEG 2000 codec library
3Summary(ja): JPEG 2000 コーデックライブラリ
4Version: 1.4
5Release: 3%{?_dist_release}
6Group: System Environment/Libraries
7License: BSD
8URL: http://www.openjpeg.org/
9
10Source0: 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
15Patch50: openjpeg-1.4-no_undefined.patch
16# fix autoconf buildsys (+DESTDIR support mostly)
17# http://groups.google.com/group/openjpeg/browse_thread/thread/6326363ebb969a99
18Patch52: openjpeg-1.4-autoconf.patch
19
20# Security
21Patch100: openjpeg-1.4_CVE-2012-3535.patch
22Patch110: openjpeg-cve-2009-5030.patch
23Patch120: openjpeg-1.4_CVE-2012-3358.patch
24
25BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
26BuildRequires: automake libtool
27BuildRequires: libtiff-devel
28BuildRequires: lcms-devel
29BuildRequires: libjpeg-devel, libpng-devel
30
31Vendor: Project Vine
32Distribution: Vine Linux
33
34%description
35The OpenJPEG library is an open-source JPEG 2000 codec written in C language.
36It has been developed in order to promote the use of JPEG 2000, the new
37still-image compression standard from the Joint Photographic Experts Group
38(JPEG).
39
40%package  devel
41Summary: Development files for openjpeg
42Group: Development/Libraries
43Requires: %{name} = %{version}-%{release}
44
45%description devel
46The openjpeg-devel package contains libraries and header files for
47developing applications that use openjpeg.
48
49%package tools
50Summary: Command-line tools using the JPEG 2000 library
51Group: Applications/Graphics
52Requires: %{name} = %{version}-%{release}
53
54%description tools
55The openjpeg-tools package provides with command-line tools allowing
56for 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
62rm -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
71autoreconf -i -f
72
73%build
74%configure \
75    --enable-shared \
76    --disable-static \
77    --enable-lcms2=no \
78    --enable-lcms1=yes
79
80make
81
82%install
83rm -rf $RPM_BUILD_ROOT
84make install DESTDIR=$RPM_BUILD_ROOT
85
86rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
87
88ln -s openjpeg-1.4 $RPM_BUILD_ROOT%{_includedir}/openjpeg
89
90
91%clean
92rm -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
Note: See TracBrowser for help on using the repository browser.