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

Revision 6850, 3.4 KB checked in by iwamoto, 12 years ago (diff)

update: openjpeg

RevLine 
[3474]1Name: openjpeg
[521]2Summary: JPEG 2000 codec library
3Summary(ja): JPEG 2000 コーデックライブラリ
[3474]4Version: 1.4
[6850]5Release: 2%{?_dist_release}
[3474]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
[6850]20# Security
21Patch100: openjpeg-1.4_CVE-2012-3535.patch
22
[521]23BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
[3474]24BuildRequires: automake libtool
25BuildRequires: libtiff-devel
26BuildRequires: lcms-devel
[6850]27BuildRequires: libjpeg-devel, libpng-devel
[521]28
[6850]29Vendor: Project Vine
30Distribution: Vine Linux
31
[521]32%description
33The OpenJPEG library is an open-source JPEG 2000 codec written in C language.
34It has been developed in order to promote the use of JPEG 2000, the new
35still-image compression standard from the Joint Photographic Experts Group
36(JPEG).
37
38%package  devel
[3474]39Summary: Development files for openjpeg
40Group: Development/Libraries
41Requires: %{name} = %{version}-%{release}
[521]42
43%description devel
44The openjpeg-devel package contains libraries and header files for
45developing applications that use openjpeg.
46
[3474]47%package tools
48Summary: Command-line tools using the JPEG 2000 library
49Group: Applications/Graphics
50Requires: %{name} = %{version}-%{release}
51
52%description tools
53The openjpeg-tools package provides with command-line tools allowing
54for 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
60rm -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]67autoreconf -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]76make
77
[521]78%install
[3474]79rm -rf $RPM_BUILD_ROOT
80make install DESTDIR=$RPM_BUILD_ROOT
[521]81
[3474]82rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
83
84ln -s openjpeg-1.4 $RPM_BUILD_ROOT%{_includedir}/openjpeg
85
86
[521]87%clean
88rm -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
Note: See TracBrowser for help on using the repository browser.