forked from pool/hugin
This commit is contained in:
parent
7c10d8f03c
commit
d56822274d
15
hugin-svn-dummy
Normal file
15
hugin-svn-dummy
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
# This is a dummy SVN command, which allows to build the package without network access.
|
||||
if test "$*" = "log --non-interactive -r BASE $RPM_BUILD_DIR/hugin" ; then
|
||||
cat <<EOF
|
||||
---------------------------------------------------------------------------
|
||||
r${RPM_PACKAGE_VERSION##*.} | unknown | xxxx-xx-xx xx:xx:xx +0000 | ? lines
|
||||
|
||||
This is a fake svn log.
|
||||
|
||||
---------------------------------------------------------------------------
|
||||
EOF
|
||||
else
|
||||
exec /usr/bin/svn "$@"
|
||||
fi
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 24 17:31:32 CEST 2008 - sbrabec@suse.cz
|
||||
|
||||
- Added dummy svn command to prevent build failure if svn log fails
|
||||
(network is not available).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 23 16:44:45 CEST 2008 - sbrabec@suse.cz
|
||||
|
||||
|
10
hugin.spec
10
hugin.spec
@ -17,8 +17,9 @@ License: GPL v2 or later
|
||||
Group: Productivity/Graphics/Bitmap Editors
|
||||
Summary: Front-End for Panorama Tools
|
||||
Version: 0.7.0.3032
|
||||
Release: 1
|
||||
Release: 3
|
||||
Source: %{name}-svn20080422.tar.bz2
|
||||
Source1: %{name}-svn-dummy
|
||||
Url: http://hugin.sourceforge.net/
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Requires: licenses
|
||||
@ -58,8 +59,12 @@ sed 1,4d <README_JP.new >README_JP.new2
|
||||
touch -r README_JP README_JP.new2
|
||||
mv README_JP.new2 README_JP
|
||||
rm README_JP.new
|
||||
mkdir bin
|
||||
cp %{S:1} bin/svn
|
||||
chmod +x bin/svn
|
||||
|
||||
%build
|
||||
export PATH=$PWD/bin:$PATH
|
||||
LIB_SUFFIX=%{_lib}
|
||||
LIB_SUFFIX=${LIB_SUFFIX#lib}
|
||||
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DLIB_SUFFIX=$LIB_SUFFIX .
|
||||
@ -108,6 +113,9 @@ fi
|
||||
%doc %{_mandir}/man?/*
|
||||
|
||||
%changelog
|
||||
* Thu Apr 24 2008 sbrabec@suse.cz
|
||||
- Added dummy svn command to prevent build failure if svn log fails
|
||||
(network is not available).
|
||||
* Wed Apr 23 2008 sbrabec@suse.cz
|
||||
- Updated to SVN snapshot 0.7.0.3032:
|
||||
* Support for HDR images.
|
||||
|
Loading…
Reference in New Issue
Block a user