File jasper.spec of Package jasper.280

# spec file for package jasper
# Copyright (c) 2014 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 pristine 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

Name:           jasper
BuildRequires:  gcc-c++
BuildRequires:  libdrm-devel
BuildRequires:  libjpeg-devel
BuildRequires:  libtool
BuildRequires:  unzip
Version:        1.900.1
Release:        0
Summary:        An Implementation of the JPEG-2000 Standard, Part 1
License:        SUSE-Public-Domain
Group:          Productivity/Graphics/Convertors
Source2:        baselibs.conf
Patch:          %{name}-%{version}-uninitialized.patch
Patch2:         %{name}-%{version}-bug258253.patch
Patch3:         %{name}-%{version}-bug392410.patch
Patch4:         %{name}-%{version}-no-undef-true-false.patch
Patch5:         jasper-1.900.1-bug725758.patch
Patch6:         jasper-overflow-bnc906364.patch
Patch7:         jasper-CVE-2014-8137.patch
Patch8:         jasper-CVE-2014-8138.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

This package contains an implementation of the image compression
standard, JPEG-2000, Part 1. It consists of tools for conversion to and
from the JP2 and JPC formats.

%package -n libjasper1
Summary:        JPEG-2000 library
Group:          Productivity/Graphics/Convertors
# bug437293
%ifarch ppc64
Obsoletes:      libjasper-64bit
# used in <= 11.3
Obsoletes:      libjasper
Provides:       libjasper

%description -n libjasper1
This package contains libjasper, a library implementing the JPEG-2000
image compression standard Part 1.

%package -n libjasper-devel
Summary:        JPEG-2000 library - files mandatory for development
Group:          Development/Libraries/C and C++
# bug437293
%ifarch ppc64
Obsoletes:      libjasper-devel-64bit
Requires:       libjasper1 = %{version}
Requires:       libjpeg-devel

%description -n libjasper-devel
This package contains libjasper, a library implementing the JPEG-2000
image compression standard Part 1.

%setup -q
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1

autoreconf -i -f
export CFLAGS="$RPM_OPT_FLAGS -Wall"
%configure --prefix=/usr --enable-shared --disable-static --libdir=%{_libdir}
make %{?jobs:-j%jobs}

mv doc/README doc/README.doc
rm $RPM_BUILD_ROOT/usr/bin/tmrdemo
# compatibility link, there was no interface change
ln -s $RPM_BUILD_ROOT%{_libdir}/

%post -n libjasper1 -p /sbin/ldconfig

%postun -n libjasper1 -p /sbin/ldconfig


%files -n libjasper1

%files -n libjasper-devel

openSUSE Build Service is sponsored by