|
@@ -1,18 +1,26 @@
|
|
|
+Name: openjpeg
|
|
|
Summary: JPEG 2000 codec library
|
|
|
Summary(ja): JPEG 2000 コーデックライブラリ
|
|
|
-Name: openjpeg
|
|
|
-Version: 1.2
|
|
|
+Version: 1.4
|
|
|
Release: 1%{?_dist_release}
|
|
|
-Group: System Environment/Libraries
|
|
|
-License: BSD
|
|
|
-URL: http://www.openjpeg.org/
|
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
+Group: System Environment/Libraries
|
|
|
+License: BSD
|
|
|
+URL: http://www.openjpeg.org/
|
|
|
+
|
|
|
+Source0: http://openjpeg.googlecode.com/files/%{name}_v1_4_sources_r697.tgz
|
|
|
|
|
|
-Source0: %{name}_v1_2.tar.gz
|
|
|
-Patch1: %{name}-1.2-fix_build.patch
|
|
|
-Patch2: %{name}-1.2-dyn_link_binaries.patch
|
|
|
-Patch3: %{name}-1.2-upstream_fixes.patch
|
|
|
-Patch4: %{name}-1.2-lib64.patch
|
|
|
+## upstreamable patches
|
|
|
+# libopenjpeg has undefined references, http://bugzilla.redhat.com/467661
|
|
|
+# http://groups.google.com/group/openjpeg/browse_thread/thread/fba9ad2a35b12e6a
|
|
|
+Patch50: openjpeg-1.4-no_undefined.patch
|
|
|
+# fix autoconf buildsys (+DESTDIR support mostly)
|
|
|
+# http://groups.google.com/group/openjpeg/browse_thread/thread/6326363ebb969a99
|
|
|
+Patch52: openjpeg-1.4-autoconf.patch
|
|
|
+
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
+BuildRequires: automake libtool
|
|
|
+BuildRequires: libtiff-devel
|
|
|
+BuildRequires: lcms-devel
|
|
|
|
|
|
%description
|
|
|
The OpenJPEG library is an open-source JPEG 2000 codec written in C language.
|
|
@@ -21,40 +29,50 @@ still-image compression standard from the Joint Photographic Experts Group
|
|
|
(JPEG).
|
|
|
|
|
|
%package devel
|
|
|
-Summary: Development files for openjpeg
|
|
|
-Group: Development/Libraries
|
|
|
-Requires: openjpeg = %{version}-%{release}
|
|
|
+Summary: Development files for openjpeg
|
|
|
+Group: Development/Libraries
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
%description devel
|
|
|
The openjpeg-devel package contains libraries and header files for
|
|
|
developing applications that use openjpeg.
|
|
|
|
|
|
+%package tools
|
|
|
+Summary: Command-line tools using the JPEG 2000 library
|
|
|
+Group: Applications/Graphics
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
+
|
|
|
+%description tools
|
|
|
+The openjpeg-tools package provides with command-line tools allowing
|
|
|
+for conversions between several formats.
|
|
|
+
|
|
|
+
|
|
|
%prep
|
|
|
-%setup -q -n trunk
|
|
|
-%patch1 -p1
|
|
|
-%patch2 -p1
|
|
|
-%patch3 -p1
|
|
|
-if [ "lib64" = %{_lib} ]; then
|
|
|
-%patch4 -p1
|
|
|
-fi
|
|
|
-find . -type f|xargs chmod 644
|
|
|
+%setup -q -n openjpeg_v1_4_sources_r697 %{?runcheck:-a 1}
|
|
|
+# Make sure we use system libraries
|
|
|
+rm -rf libs
|
|
|
+
|
|
|
+%patch50 -p1 -b .no_undefined
|
|
|
+%patch52 -p1 -b .autoconf
|
|
|
+autoreconf -i -f
|
|
|
|
|
|
%build
|
|
|
-%ifarch i686
|
|
|
-make COMPILERFLAGS="%{optflags} -ffast-math -fPIC \
|
|
|
- -march=i686 -O3 -fasynchronous-unwind-tables \
|
|
|
- -ftree-vectorize -ftree-vectorizer-verbose=5" \
|
|
|
- LIBRARIES="-lm" \
|
|
|
- %{?_smp_mflags}
|
|
|
-%else
|
|
|
-make COMPILERFLAGS="%{optflags} -ffast-math -fPIC" \
|
|
|
- LIBRARIES="-lm" \
|
|
|
- %{?_smp_mflags}
|
|
|
-%endif
|
|
|
+%configure \
|
|
|
+ --enable-shared \
|
|
|
+ --disable-static \
|
|
|
+ --enable-lcms2=no \
|
|
|
+ --enable-lcms1=yes
|
|
|
+
|
|
|
+make
|
|
|
|
|
|
%install
|
|
|
-rm -rf %{buildroot}
|
|
|
-make install DESTDIR=%{buildroot} LIBDIR=%{_libdir} INCDIR=%{_includedir}
|
|
|
+rm -rf $RPM_BUILD_ROOT
|
|
|
+make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
+
|
|
|
+rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
|
|
|
+
|
|
|
+ln -s openjpeg-1.4 $RPM_BUILD_ROOT%{_includedir}/openjpeg
|
|
|
+
|
|
|
|
|
|
%clean
|
|
|
rm -rf %{buildroot}
|
|
@@ -65,16 +83,30 @@ rm -rf %{buildroot}
|
|
|
|
|
|
%files
|
|
|
%defattr(-,root,root,-)
|
|
|
+%doc CHANGES LICENSE
|
|
|
%{_libdir}/libopenjpeg.so.*
|
|
|
+%{_mandir}/man3/*
|
|
|
|
|
|
%files devel
|
|
|
%defattr(-,root,root,-)
|
|
|
-%doc ChangeLog
|
|
|
-%{_includedir}/openjpeg.h
|
|
|
+%{_includedir}/openjpeg-1.4/
|
|
|
%{_libdir}/libopenjpeg.so
|
|
|
-%{_libdir}/libopenjpeg.a
|
|
|
+%{_libdir}/pkgconfig/lib*.pc
|
|
|
+# legacy/compat header locations
|
|
|
+%{_includedir}/openjpeg.h
|
|
|
+%{_includedir}/openjpeg/
|
|
|
+
|
|
|
+%files tools
|
|
|
+%defattr(-,root,root,-)
|
|
|
+%{_bindir}/*
|
|
|
+%{_mandir}/man1/*
|
|
|
|
|
|
%changelog
|
|
|
+* Thu Apr 14 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4-1
|
|
|
+- updated to 1.4
|
|
|
+- built with current VineSeed
|
|
|
+- added tools subpackage
|
|
|
+
|
|
|
* Thu Oct 09 2008 Shu KONNO <owa@bg.wakwak.com> 1.2-1vl5
|
|
|
- applied new versioning policy, spec in utf-8
|
|
|
|