File jasper.spec of Package jasper

#
# spec file for package jasper (Version 1.900.1)
#
# Copyright (c) 2009 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 http://bugs.opensuse.org/
#

# norootforbuild


Name:           jasper
BuildRequires:  freeglut-devel libdrm-devel libjpeg-devel libstdc++-devel
Url:            http://www.ece.uvic.ca/~mdadams/jasper/
License:        Public Domain, Freeware
Group:          Productivity/Graphics/Convertors
AutoReqProv:    on
Version:        1.900.1
Release:        134
Summary:        An Implementation of the JPEG-2000 Standard, Part 1
Source:         %{name}-%{version}.tar.bz2
Patch:          %{name}-%{version}-uninitialized.patch
Patch2:         %{name}-%{version}-bug258253.patch
Patch3:         %{name}-%{version}-bug392410.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
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.



Authors:
--------
    Michael D. Adams <mdadams@ieee.org>

%package -n libjasper
License:        Public Domain, Freeware
Summary:        JPEG-2000 library
Group:          Productivity/Graphics/Convertors
# bug437293
%ifarch ppc64
Obsoletes:      libjasper-64bit
%endif
#

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



Authors:
--------
    Michael D. Adams <mdadams@ieee.org>

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

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



Authors:
--------
    Michael D. Adams <mdadams@ieee.org>

%prep
%setup -q
%patch
%patch2
%patch3

%build
%{suse_update_config}
autoreconf -i -f
CFLAGS="$RPM_OPT_FLAGS -Wall" ./configure --prefix=/usr --enable-shared --disable-static --libdir=%{_libdir}
make

%install
make install DESTDIR=$RPM_BUILD_ROOT
mv doc/README doc/README.doc
rm $RPM_BUILD_ROOT/usr/bin/tmrdemo
# compatibility link, there was no interface change
ln -s libjasper.so.1.0.0 $RPM_BUILD_ROOT%{_libdir}/libjasper-1.701.so.1

%post -n libjasper
%run_ldconfig

%postun -n libjasper
%run_ldconfig

%files
%defattr(-,root,root)
%doc COPYRIGHT ChangeLog INSTALL LICENSE NEWS README doc/*
/usr/bin/imgcmp
/usr/bin/imginfo
/usr/bin/jasper
/usr/bin/jiv
%{_mandir}/man*/*

%files -n libjasper
%defattr(-,root,root)
%{_libdir}/libjasper*.so.*

%files -n libjasper-devel
%defattr(-,root,root)
/usr/include/jasper
%{_libdir}/libjasper.so
%{_libdir}/libjasper.la

%changelog
* Tue Jan 13 2009 olh@suse.de
- obsolete old -XXbit packages (bnc#437293)
* Wed Nov 12 2008 nadvornik@suse.cz
- use the last version of the patches [bnc#392410]
* Tue May 27 2008 nadvornik@suse.cz
- fixed multiple integer overflows [bnc#392410]
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
  for multilib support
* Thu Apr 19 2007 nadvornik@suse.cz
- updated to bugfix release 1.900.1
- created libjasper-devel subpackage
- do not build static libs
- added compat symlink libjasper-1.701.so.1 -> libjasper.so.1.0.0
- fixed various crashes on malformed input [#258253]
* Mon May 22 2006 pnemec@suse.cz
- fixed uninitialized varibale #176395
  added -uninitialzed.patch
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jun 14 2004 sbrabec@suse.cz
- Updated to version 1.701.0.
* Thu Feb 05 2004 sbrabec@suse.cz
- Updated to version 1.700.5.
* Sat Jan 10 2004 adrian@suse.de
- add %%run_ldconfig
* Thu Jul 24 2003 nadvornik@suse.cz
- updated to 1.700.2
* Mon May 12 2003 ro@suse.de
- added libstdc++-devel to neededforbuild
* Wed Oct 23 2002 uli@suse.de
- update -> 1.600.0 (improved support for the JP2 format, new
  application program "jiv" (simple image viewer), improved support
  for the PNM family of formats, numerous other minor bugs fixed)
* Sat Aug 24 2002 ro@suse.de
- fix doc file section for new cp behaviour
* Tue Jul 02 2002 meissner@suse.de
- buildrooted, run autoreconf*
* Thu Apr 18 2002 sf@suse.de
- added %%{_libdir} to configure for lib/lib64
- added %%{suse_update_config}
* Fri Jan 25 2002 uli@suse.de
- update -> 1.500.4 (improved docs)
* Thu Dec 06 2001 uli@suse.de
- update -> 1.500.3 (fixes)
* Thu Aug 16 2001 uli@suse.de
- build shared lib, too
* Mon Jul 30 2001 uli@suse.de
- initial package
openSUSE Build Service is sponsored by