File libpano.spec of Package libpano
#
# spec file for package libpano (Version 2.9.12)
#
# Copyright (c) 2008 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: libpano
%define _name libpano13
BuildRequires: java-devel libpng-devel libtiff-devel licenses
License: GPL v2 or later
Group: Development/Libraries/C and C++
Summary: Panorama Tools Back-End Library
Version: 2.9.12
Release: 2
Source: %{_name}-%{version}.tar.bz2
# https://sourceforge.net/tracker/index.php?func=detail&aid=2163691&group_id=96188&atid=613956
Patch: libpano-implicit-decl.patch
# https://sourceforge.net/tracker/index.php?func=detail&aid=2163669&group_id=96188&atid=613956
Patch1: libpano-invalid-write.patch
# https://sourceforge.net/tracker/index.php?func=detail&aid=2163676&group_id=96188&atid=613956
Patch2: libpano-invalid-format.patch
Url: http://panotools.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A library for working with panoramas.
Authors:
--------
Helmut Dersch
Kevin Kratzke
Rik Littlefield
Fulvio Senore
Jim Watters
Bret McKee
%package -n libpano13-0
License: GPL v2 or later
Summary: Panorama Tools Back-End Library
Group: Development/Libraries/C and C++
Obsoletes: %{name} <= %{version}
Requires: licenses
%description -n libpano13-0
A library for working with panoramas.
Authors:
--------
Helmut Dersch
Kevin Kratzke
Rik Littlefield
Fulvio Senore
Jim Watters
Bret McKee
%package utils
License: GPL v2 or later
Summary: Panorama Tools Front-End Utilities
Group: Productivity/Graphics/Other
Obsoletes: %{name} <= %{version}
# Explicitly mentioned libpano (for <= 10.2) probably means libpano-utils:
Provides: %{name} = %{version}
%description
A library for working with panoramas.
Authors:
--------
Helmut Dersch
Kevin Kratzke
Rik Littlefield
Fulvio Senore
Jim Watters
Bret McKee
%description utils
Utilities for working with panoramas.
Authors:
--------
Helmut Dersch
Kevin Kratzke
Rik Littlefield
Fulvio Senore
Jim Watters
Bret McKee
%package devel
License: GPL v2 or later
Summary: Panorama Tools Back-End Library - files mandatory for development
Group: Development/Libraries/C and C++
Requires: libpano13-0 = %{version} libpng-devel libtiff-devel libjpeg-devel
%description devel
A library for working with panoramas.
Authors:
--------
Helmut Dersch
Kevin Kratzke
Rik Littlefield
Fulvio Senore
Jim Watters
Bret McKee
%prep
%setup -q -n %{_name}-%{version}
%patch
%patch1
%patch2
%build
autoreconf -f -i
# BSD_SOURCE: for stddup() in PTcommon.c:
# ISOC99_SOURCE: for round() in ColourBrightness.c:
export CFLAGS="$RPM_OPT_FLAGS -D_BSD_SOURCE -D_ISOC99_SOURCE"
%configure\
--with-java=%{java_home}
make %{?jobs:-j%jobs}
%install
%makeinstall
ln -sf /usr/share/doc/licenses/md5/$(md5sum COPYING | sed 's/ .*//') COPYING
%clean
rm -rf $RPM_BUILD_ROOT
%post -n libpano13-0 -p /sbin/ldconfig
%postun -n libpano13-0 -p /sbin/ldconfig
%files -n libpano13-0
%defattr(-,root,root)
%doc README README.linux AUTHORS COPYING NEWS TODO ChangeLog doc/*.txt tools/README.PTmender
%{_libdir}/libpano13.so.*
%files utils
%defattr(-,root,root)
%{_bindir}/*
%files devel
%defattr(-,root,root)
%{_includedir}/pano13
%{_libdir}/libpano13.so
%{_libdir}/libpano13.la
%changelog
* Mon Oct 13 2008 sbrabec@suse.cz
- Fixed implicit declarations, invalid use of write() and invalid
format specification.
* Mon Sep 08 2008 sbrabec@suse.cz
- Updated to branch libpano13, version 2.9.12:
* many new functions and improvements, see ChangeLog for more
* new utility PTmender, replacement of binary-only PTStitcher
* new branch does not support binary-only 1.2 applications
* Wed Jul 25 2007 sbrabec@suse.cz
- Updated to version 2.8.6:
* Bug fixes.
- Split package according to shared library packaging policy.
* Wed Nov 08 2006 prusnak@suse.cz
- fixed subscript out of range [#204092]
* Thu Aug 17 2006 postadal@suse.cz
- updated to version 2.8.4
* a lot of new lenstypes, panotypes, filters and fixes see ChangeLog
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Jan 10 2006 sbrabec@suse.cz
- Updated to version 2.7.0.14.
* Wed Jul 20 2005 nadvornik@suse.cz
- updated to 2.7.0.10
- added devel subpackage
- installed commandline tools
* Thu Apr 14 2005 mcihar@suse.cz
- update to 2.7.0.9
- fix compilation
* Mon Feb 28 2005 ro@suse.de
- next try to fix compilation
* Sun Feb 20 2005 ro@suse.de
- temporary workaround to fix build
* Tue Dec 21 2004 mcihar@suse.cz
- update to 2.7.0.8
* Tue Aug 10 2004 ro@suse.de
- java is still in /usr/lib even on lib64 platforms
* Fri Jul 30 2004 mcihar@suse.cz
- compile with -fPIC
* Fri Jul 30 2004 mcihar@suse.cz
- initial packaging