Group :: Sistema/Bibliotecas
RPM: libpano13
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define _name pano13
%def_enable sparse_levmar
%def_disable java
%def_enable check
Name: lib%_name
Version: 2.9.22
Release: alt1
Group: System/Libraries
Summary: %name - library for panorama stitching programs.
License: GPL-2.0
Url: https://sourceforge.net/projects/panotools
Source: https://download.sourceforge.net/panotools/%name/%name-%version.tar.gz
Patch1: %name.patch
Patch2: %name-2.9.21-alt-static-build.patch
BuildRequires(pre): rpm-macros-cmake
BuildRequires: cmake gcc-c++
BuildRequires: libjpeg-devel libpng-devel libtiff-devel zlib-devel
%{?_enable_sparse_levmar:BuildRequires: libsuitesparse-devel}
BuildRequires: /usr/bin/pod2man
%{?_enable_java:BuildRequires: java-devel}
%{?_enable_check:BuildRequires: ctest}
%package devel
Group: System/Libraries
Summary: Devel package for %name
Requires: %name = %EVR
Provides: %name.so
%package programs
Group: Graphics
Summary: Programs built with %name
Requires: %name = %EVR
Obsoletes: libpano12-programs panotools
%description
This library is required for running any of the panorama stitching
applications (hugin, PTStitcher, etc).
%description devel
This package contains files for development.
%description programs
This package contains programs from %name:
PTSticher - Based on code found in Helmut Dersch's panorama-tools to
duplicate the functionality of original program
PTblender - Implements the colour and brightness correction originally
found in PTStitcher.
PTcrop - This program takes as input a TIFF (cropped or uncropped)
and generates an cropped TIFF according to the spec:
* Specific boounding rectangle
* Outer bounding rectangle
* Inner inclusive rectangle
PTinfo - Displays information about an image created with panotools
PTmasker - Takes a set of tiffs and computes their stitching masks
PTmender - This is a rewrite of PTStitcher. It has most of its functionality
(see below) and it should be (for most people) a drop in
replacement for PTstitcher.
PToptimizer - Clone of PTOptimizer of Helmut Dersch's panorama-tools
PTroller - Flattens a set of TIFFs into one TIFF
PTtiff2psd - Converts a set of TIFF files into a Photoshop PSD file
PTtiffdump - This program compares the contents of 2 different tiff files.
If the byte is different it outputs it.
PTuncrop - This program takes as input a cropped TIFF and generates an
uncropped TIFF
panoinfo - Display info from pano12 dll/library
%prep
%setup -n %name-%version
#Off because MAX_FISHEYE_FOV value is equal 720, not 160
%patch1 -p1
%patch2 -p1
%build
%add_optflags %(getconf LFS_CFLAGS)
%cmake -DBUILD_STATIC_LIBS=OFF \
%{?_enable_sparse_levmar:-DUSE_SPARSE_LEVMAR=ON}
%nil
%cmake_build
%install
%cmake_install
%check
%cmake_build -t test
%files
%_libdir/*.so.*
%doc README* AUTHORS NEWS
%doc doc/Optimize.txt doc/PT*.readme doc/stitch.txt
%exclude %_datadir/pano13/doc/
%files devel
%_includedir/%_name/
%_pkgconfigdir/%name.pc
%_libdir/*.so
%files programs
%_bindir/panoinfo
%{?_enable_java:%_bindir/PTAInterpolate}
%_bindir/PTblender
%_bindir/PTcrop
%_bindir/PTinfo
%_bindir/PTmasker
%_bindir/PTmender
%_bindir/PToptimizer
%_bindir/PTroller
%_bindir/PTtiff2psd
%_bindir/PTtiffdump
%_bindir/PTuncrop
%_man1dir/*
%doc doc/*.txt tools/README.PTmender
%changelog
…
Todas as alterações você pod ver aqui
%def_enable sparse_levmar
%def_disable java
%def_enable check
Name: lib%_name
Version: 2.9.22
Release: alt1
Group: System/Libraries
Summary: %name - library for panorama stitching programs.
License: GPL-2.0
Url: https://sourceforge.net/projects/panotools
Source: https://download.sourceforge.net/panotools/%name/%name-%version.tar.gz
Patch1: %name.patch
Patch2: %name-2.9.21-alt-static-build.patch
BuildRequires(pre): rpm-macros-cmake
BuildRequires: cmake gcc-c++
BuildRequires: libjpeg-devel libpng-devel libtiff-devel zlib-devel
%{?_enable_sparse_levmar:BuildRequires: libsuitesparse-devel}
BuildRequires: /usr/bin/pod2man
%{?_enable_java:BuildRequires: java-devel}
%{?_enable_check:BuildRequires: ctest}
%package devel
Group: System/Libraries
Summary: Devel package for %name
Requires: %name = %EVR
Provides: %name.so
%package programs
Group: Graphics
Summary: Programs built with %name
Requires: %name = %EVR
Obsoletes: libpano12-programs panotools
%description
This library is required for running any of the panorama stitching
applications (hugin, PTStitcher, etc).
%description devel
This package contains files for development.
%description programs
This package contains programs from %name:
PTSticher - Based on code found in Helmut Dersch's panorama-tools to
duplicate the functionality of original program
PTblender - Implements the colour and brightness correction originally
found in PTStitcher.
PTcrop - This program takes as input a TIFF (cropped or uncropped)
and generates an cropped TIFF according to the spec:
* Specific boounding rectangle
* Outer bounding rectangle
* Inner inclusive rectangle
PTinfo - Displays information about an image created with panotools
PTmasker - Takes a set of tiffs and computes their stitching masks
PTmender - This is a rewrite of PTStitcher. It has most of its functionality
(see below) and it should be (for most people) a drop in
replacement for PTstitcher.
PToptimizer - Clone of PTOptimizer of Helmut Dersch's panorama-tools
PTroller - Flattens a set of TIFFs into one TIFF
PTtiff2psd - Converts a set of TIFF files into a Photoshop PSD file
PTtiffdump - This program compares the contents of 2 different tiff files.
If the byte is different it outputs it.
PTuncrop - This program takes as input a cropped TIFF and generates an
uncropped TIFF
panoinfo - Display info from pano12 dll/library
%prep
%setup -n %name-%version
#Off because MAX_FISHEYE_FOV value is equal 720, not 160
%patch1 -p1
%patch2 -p1
%build
%add_optflags %(getconf LFS_CFLAGS)
%cmake -DBUILD_STATIC_LIBS=OFF \
%{?_enable_sparse_levmar:-DUSE_SPARSE_LEVMAR=ON}
%nil
%cmake_build
%install
%cmake_install
%check
%cmake_build -t test
%files
%_libdir/*.so.*
%doc README* AUTHORS NEWS
%doc doc/Optimize.txt doc/PT*.readme doc/stitch.txt
%exclude %_datadir/pano13/doc/
%files devel
%_includedir/%_name/
%_pkgconfigdir/%name.pc
%_libdir/*.so
%files programs
%_bindir/panoinfo
%{?_enable_java:%_bindir/PTAInterpolate}
%_bindir/PTblender
%_bindir/PTcrop
%_bindir/PTinfo
%_bindir/PTmasker
%_bindir/PTmender
%_bindir/PToptimizer
%_bindir/PTroller
%_bindir/PTtiff2psd
%_bindir/PTtiffdump
%_bindir/PTuncrop
%_man1dir/*
%doc doc/*.txt tools/README.PTmender
%changelog
…
Todas as alterações você pod ver aqui