Accepting request 142833 from home:tzotsos

Version 2.0 final released few days ago. I updated the package to this major release.
Could you add me as a maintainer for this package?
Thanks,
Angelos

OBS-URL: https://build.opensuse.org/request/show/142833
OBS-URL: https://build.opensuse.org/package/show/graphics/openjpeg2?expand=0&rev=3
This commit is contained in:
OBS User mrdocs 2012-11-25 19:08:32 +00:00 committed by Git OBS Bridge
parent 73168d4b60
commit d966f36160
4 changed files with 61 additions and 18 deletions

3
openjpeg-2.0.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:334df538051555381ee3bbbe3a804c9c028a021401ba2960d6f35da66bf605d8
size 1770392

View File

@ -1,2 +1,19 @@
* Mon Jan 24 2010 Angelos Tzotsos <tzotsos@opensuse.org> - 2.0-alpha
- Initial build
Sun Nov 25 14:55:50 UTC 2012 - Angelos Tzotsos <tzotsos@opensuse.org>
Update to version 2.0 Final, fixed some major issues :
* support of Large JPEG2000 Files greater than 2 GBytes
* support of tile coding and decoding which allows to encode or decode only specific part of image if the file is tiled
* implements subset of the MCT part 2
* streaming system
* improvement of the cmake build system
* adding a CDash platform to support continuous integration of the different version
* opaque pointers (opj_stream, opj_codec) have been used to simplify the API
* the library does not perform the t1 decoding of non-needed resolutions any more (increases performance)
* a lot of code has been simplified/factored in order to lower the memory consumption.
* j2k.c and jp2.c have been modified to support a simpler extension mechanism
* prefix all public and the great majority of the private symbols with opj_ to avoid conflict with external libraries
------------------------------------------------------------------
Mon Jan 24 00:00:00 UTC 2010 - Angelos Tzotsos <tzotsos@opensuse.org>
* Initial build from SVN

View File

@ -1,6 +1,18 @@
#
# spec file for package openjpeg2
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the openjpeg package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# norootforbuild
@ -11,23 +23,28 @@ Summary: The OpenJPEG library is an open-source JPEG 2000 library
Group: Development/Libraries/Other
License: BSD
URL: http://www.openjpeg.org/
Source0: openjpeg2.tar.gz
Source0: openjpeg-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: cmake libgeotiff-devel gcc-c++ gcc libpng-devel
BuildRequires: cmake
BuildRequires: libgeotiff-devel
BuildRequires: gcc-c++
BuildRequires: gcc
BuildRequires: libpng-devel
BuildRequires: fdupes
BuildRequires: liblcms2-devel
%description
The main part of the project consists in a JPEG 2000 codec compliant with the Part 1 of the standard (Class-1 Profile-1 compliance)
%define library_name libopenjpeg2_0
%define library_name libopenjp2-6
%package -n libopenjpeg2_0
%package -n libopenjp2-6
Group: Development/Libraries/Other
Summary: The OpenJPEG library is an open-source JPEG 2000 library
License: BSD
Provides: %{name} = %{version}
%description -n libopenjpeg2_0
%description -n libopenjp2-6
The main part of the project consists in a JPEG 2000 codec compliant with the Part 1 of the standard (Class-1 Profile-1 compliance)
%package devel
@ -41,24 +58,32 @@ Development files for the %{name} library. The main part of the project consists
%prep
%setup -q -n openjpeg2
%setup -q -n openjpeg-%{version}
%build
cd ..
mkdir temp
cd temp
cmake -DBUILD_EXAMPLES:BOOL=OFF \
-DBUILD_SHARED_LIBS:BOOL=ON \
cmake -DBUILD_SHARED_LIBS:BOOL=ON \
-DBUILD_CODEC:BOOL=ON \
-DBUILD_JPIP:BOOL=OFF \
-DBUILD_JPWL:BOOL=OFF \
-DBUILD_MJ2:BOOL=OFF \
-DBUILD_TESTING:BOOL=OFF \
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
-DOPENJPEG_INSTALL_LIB_DIR=%{_libdir} \
-DCMAKE_BUILD_TYPE:STRING="Release" ../openjpeg2/
-DCMAKE_INSTALL_LIB_DIR=%{_libdir} \
-DCMAKE_BUILD_TYPE:STRING="Release" ../openjpeg-%{version}/
make VERBOSE=1 %{?_smp_mflags}
%install
cd ../temp
%makeinstall
rm -rf %{buildroot}/usr/lib/debug
%if "%{_lib}" == "lib64"
mkdir %{buildroot}/usr/lib64
mv %{buildroot}/usr/lib/* %{buildroot}/usr/lib64/
%endif
%fdupes %{buildroot}
%clean
@ -68,16 +93,17 @@ rm -rf %{buildroot}
%postun -p /sbin/ldconfig
%files -n libopenjpeg2_0
%files -n libopenjp2-6
%defattr(-,root,root,-)
%{_bindir}/*
%{_libdir}/lib*.so.*
%{_mandir}/*
%{_datadir}/*
%files devel
%defattr(-,root,root,-)
%{_includedir}/openjpeg-2.0/
%{_includedir}/openjpeg-2.0/*.h
%{_libdir}/lib*.so
%{_libdir}/openjpeg-2.0/
%{_libdir}/openjpeg-2.0/*.cmake
%changelog

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2d20153a656e72e47db6b6512aaaf09ed5011affdb2fec49c79e96ad2f464a9a
size 1149002