[packages/openjpeg2] - openjpeg 2.x as openjpeg2: parallel installable with openjpeg 1.x library name differs (libope
qboosh
qboosh at pld-linux.org
Sun Nov 25 14:15:53 CET 2012
commit ffafe4e2b22df0f9f99a7717a31023950b1c50c2
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Nov 25 14:16:02 2012 +0100
- openjpeg 2.x as openjpeg2:
parallel installable with openjpeg 1.x
library name differs (libopenjpeg vs libopenjp2)
there are API incompatibilities
detection differs (openjpeg 1.x supports pkgconfig, openjpeg 2 only cmake)
openjpeg2.spec | 111 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 111 insertions(+)
---
diff --git a/openjpeg2.spec b/openjpeg2.spec
new file mode 100644
index 0000000..1f8d0e0
--- /dev/null
+++ b/openjpeg2.spec
@@ -0,0 +1,111 @@
+Summary: An open-source JPEG 2000 codec
+Summary(pl.UTF-8): Biblioteka kodująca i dekodująca format JPEG 2000
+Name: openjpeg2
+Version: 2.0.0
+Release: 1
+License: BSD
+Group: Libraries
+#Source0Download: http://code.google.com/p/openjpeg/downloads/list
+Source0: http://openjpeg.googlecode.com/files/openjpeg-%{version}.tar.gz
+# Source0-md5: d9be274bddc0f47f268e484bdcaaa6c5
+URL: http://www.openjpeg.org/
+BuildRequires: cmake >= 2.8.2
+BuildRequires: lcms2-devel >= 2
+BuildRequires: libpng-devel
+BuildRequires: libtiff-devel
+BuildRequires: pkgconfig >= 1:0.22
+BuildRequires: zlib-devel
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The OpenJPEG 2 library is an open-source JPEG 2000 codec written in C
+language. It has been developed in order to promote the use of JPEG
+2000, the new still-image compression standard from the Joint
+Photographic Experts Group (JPEG).
+
+%description -l pl.UTF-8
+OpenJPEG 2 to mająca otwarte źródła biblioteka kodująca i dekodująca
+format JPEG 2000, napisana w języku C. Powstała w celu promowania
+użycia formatu JPEG 2000 - nowego standardu obrazów nieruchomych
+stworzonego przez grupę JPEG (Joint Photographic Experts Group).
+
+%package devel
+Summary: Header file for OpenJPEG 2 library
+Summary(pl.UTF-8): Plik nagłówkowy biblioteki OpenJPEG 2
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+This package contains the header file needed for developing programs
+using the OpenJPEG 2 library.
+
+%description devel -l pl.UTF-8
+Ten pakiet zawiera plik nagłówkowy potrzebny do tworzenia programów
+wykorzystujących bibliotekę OpenJPEG 2.
+
+%package progs
+Summary: OpenJPEG 2 codec programs
+Summary(pl.UTF-8): Programy kodujące/dekodujące dla biblioteki OpenJPEG 2
+Group: Applications/Graphics
+Requires: %{name} = %{version}-%{release}
+
+%description progs
+OpenJPEG 2 codec programs.
+
+%description progs -l pl.UTF-8
+Programy kodujące/dekodujące dla biblioteki OpenJPEG 2.
+
+%prep
+%setup -q -n openjpeg-%{version}
+
+%build
+%cmake .
+
+# not ready for openjpeg 2:
+# -DBUILD_JAVA=ON
+# -DBUILD_JPWL=ON
+# -DBUILD_MJ2=ON
+# -DBUILD_VIEWER=ON -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-gtk2-unicode-config
+
+# no BUILD_JPIP here (see openjpip.spec for it)
+# no BUILD_JP3D here (see openjp3d.spec for it)
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+# packaged as doc
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/openjpeg-2.0
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS CHANGES LICENSE NEWS README THANKS
+%attr(755,root,root) %{_libdir}/libopenjp2.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libopenjp2.so.6
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libopenjp2.so
+%{_includedir}/openjpeg-2.0
+%dir %{_libdir}/openjpeg-2.0
+%{_libdir}/openjpeg-2.0/OpenJPEG*.cmake
+%{_mandir}/man3/libopenjp2.3*
+
+%files progs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/opj_compress
+%attr(755,root,root) %{_bindir}/opj_decompress
+%attr(755,root,root) %{_bindir}/opj_dump
+%{_mandir}/man1/opj_compress.1*
+%{_mandir}/man1/opj_decompress.1*
+%{_mandir}/man1/opj_dump.1*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/openjpeg2.git/commitdiff/ffafe4e2b22df0f9f99a7717a31023950b1c50c2
More information about the pld-cvs-commit
mailing list