File libpano.spec of Package libpano
#
# spec file for package libpano (Version 2.9.14)
#
# 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: 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.14
Release: 1
Source: %{_name}-%{version}.tar.bz2
# https://sourceforge.net/tracker/?func=detail&aid=2833227&group_id=96188&atid=613956
Patch: libpano-implicit-decl.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
A library for working with panoramas.
Authors:
--------
Helmut Dersch
Kevin Kratzke
Rik Littlefield
Fulvio Senore
Jim Watters
Bret McKee
%package -n libpano13-1
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-1
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
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-1 = %{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
%build
autoreconf -f -i
%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-1 -p /sbin/ldconfig
%postun -n libpano13-1 -p /sbin/ldconfig
%files -n libpano13-1
%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}/*
%doc %{_mandir}/man?/*.*
%files devel
%defattr(-,root,root)
%{_includedir}/pano13
%{_libdir}/libpano13.so
%{_libdir}/libpano13.la
%changelog