forked from pool/hugin
Accepting request 184408 from graphics
- Fix build with perl 5.18 by adding hugin-perl-5.18.patch - Remove old opensuse version conditionals as the package anyway builds only on 12.3 and later, unresolvable on older ones. OBS-URL: https://build.opensuse.org/request/show/184408 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hugin?expand=0&rev=40
This commit is contained in:
commit
e4d020a41e
9
hugin-perl-5.18.patch
Normal file
9
hugin-perl-5.18.patch
Normal file
@ -0,0 +1,9 @@
|
||||
diff -urN hugin-2012.0.0.old/doc/deghosting_mask.pod hugin-2012.0.0/doc/deghosting_mask.pod
|
||||
--- hugin-2012.0.0.old/doc/deghosting_mask.pod 2013-07-26 11:27:55.907660500 +0200
|
||||
+++ hugin-2012.0.0/doc/deghosting_mask.pod 2013-07-26 11:28:33.025657059 +0200
|
||||
@@ -1,3 +1,5 @@
|
||||
+=encoding utf8
|
||||
+
|
||||
=head1 NAME
|
||||
|
||||
deghosting_mask - Creates mask for removing ghosting in images
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 26 09:39:25 UTC 2013 - tchvatal@suse.com
|
||||
|
||||
- Fix build with perl 5.18 by adding hugin-perl-5.18.patch
|
||||
- Remove old opensuse version conditionals as the package anyway
|
||||
builds only on 12.3 and later, unresolvable on older ones.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 22 20:34:16 UTC 2013 - dimstar@opensuse.org
|
||||
|
||||
|
39
hugin.spec
39
hugin.spec
@ -39,18 +39,13 @@ BuildRequires: libpano-devel >= 2.9.18
|
||||
BuildRequires: libtiff-devel
|
||||
BuildRequires: libxml2
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-wxWidgets >= 2.7.0
|
||||
BuildRequires: swig
|
||||
BuildRequires: tclap
|
||||
BuildRequires: update-desktop-files
|
||||
BuildRequires: vigra
|
||||
BuildRequires: zip
|
||||
%if 0%{?suse_version} > 1130
|
||||
BuildRequires: python-wxWidgets >= 2.7.0
|
||||
BuildRequires: wxWidgets-devel
|
||||
%else
|
||||
BuildRequires: python-wxGTK >= 2.7.0
|
||||
BuildRequires: wxGTK-devel
|
||||
%endif
|
||||
BuildRequires: zip
|
||||
%define mversion 2012.0
|
||||
Version: %{mversion}.0
|
||||
Release: 0
|
||||
@ -63,14 +58,13 @@ Source: http://downloads.sourceforge.net/project/%{name}/%{name}/%{name}
|
||||
# svn co https://hugin.svn.sourceforge.net/svnroot/hugin/hugin/trunk hugin
|
||||
#Source: %%{name}-svn2008xxxx.tar.bz2
|
||||
Source1: %{name}-svn-dummy
|
||||
Patch0: %{name}-perl-5.18.patch
|
||||
Requires: enblend-enfuse >= 3.2
|
||||
Recommends: autopano-sift
|
||||
Recommends: exiftool
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?suse_version} > 1130
|
||||
%define _use_internal_dependency_generator 0
|
||||
%define __find_requires %wx_requires
|
||||
%endif
|
||||
|
||||
%description
|
||||
Hugin can be used to stitch multiple images together. The resulting
|
||||
@ -83,6 +77,7 @@ detection and extraction of key points.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
|
||||
# For SVN snapshot:
|
||||
#setup -q -n %%{name}
|
||||
@ -110,7 +105,7 @@ LIB_SUFFIX=%{_lib}
|
||||
LIB_SUFFIX=${LIB_SUFFIX#lib}
|
||||
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIB_SUFFIX=$LIB_SUFFIX -DENABLE_LAPACK=ON BUILD_HSI=ON .
|
||||
# parallel make kills our workers
|
||||
make -j1 VERBOSE=1
|
||||
make VERBOSE=1 %{?_smp_mflags} -j1
|
||||
|
||||
%install
|
||||
%make_install
|
||||
@ -127,26 +122,14 @@ chmod -x %{buildroot}%{_docdir}/%{name}/*
|
||||
%fdupes %{buildroot}
|
||||
|
||||
%post
|
||||
%if 0%{?suse_version} > 1130
|
||||
%icon_theme_cache_post
|
||||
%mime_database_post
|
||||
%desktop_database_post
|
||||
%else
|
||||
if test -f %{_bindir}/update-mime-database ; then
|
||||
%{_bindir}/update-mime-database %{_datadir}/mime >/dev/null
|
||||
fi
|
||||
%endif
|
||||
%icon_theme_cache_post
|
||||
%mime_database_post
|
||||
%desktop_database_post
|
||||
|
||||
%postun
|
||||
%if 0%{?suse_version} > 1130
|
||||
%icon_theme_cache_postun
|
||||
%mime_database_postun
|
||||
%desktop_database_postun
|
||||
%else
|
||||
if test -f %{_bindir}/update-mime-database ; then
|
||||
%{_bindir}/update-mime-database %{_datadir}/mime >/dev/null
|
||||
fi
|
||||
%endif
|
||||
%icon_theme_cache_postun
|
||||
%mime_database_postun
|
||||
%desktop_database_postun
|
||||
|
||||
%files -f %{name}.lang
|
||||
%defattr(-,root,root)
|
||||
|
Loading…
Reference in New Issue
Block a user