whitespace cleanup
OBS-URL: https://build.opensuse.org/package/show/graphics/gmic?expand=0&rev=7
This commit is contained in:
parent
2755fcf4b6
commit
3c3530f957
110
gmic.spec
110
gmic.spec
@ -25,64 +25,64 @@
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: gmic
|
Name: gmic
|
||||||
Version: 1.6.8
|
Version: 1.6.8
|
||||||
Release: 0
|
Release: 0
|
||||||
Group: Productivity/Graphics/Bitmap Editors
|
Group: Productivity/Graphics/Bitmap Editors
|
||||||
URL: http://gmic.sourceforge.net/
|
URL: http://gmic.sourceforge.net/
|
||||||
Packager: kurt@garloff.de
|
Packager: kurt@garloff.de
|
||||||
Source: %{name}_%{version}.tar.bz2
|
Source: %{name}_%{version}.tar.bz2
|
||||||
Source1: http://gmic.eu/gmic_reference.pdf
|
Source1: http://gmic.eu/gmic_reference.pdf
|
||||||
Patch1: gmic-cflags.diff
|
Patch1: gmic-cflags.diff
|
||||||
Patch2: gmic-docdir.diff
|
Patch2: gmic-docdir.diff
|
||||||
Patch3: gmic-overflow.diff
|
Patch3: gmic-overflow.diff
|
||||||
Patch10: gmic-x11opts.diff
|
Patch10: gmic-x11opts.diff
|
||||||
Patch11: gmic-openmp.diff
|
Patch11: gmic-openmp.diff
|
||||||
Patch15: gmic-oldgimp.diff
|
Patch15: gmic-oldgimp.diff
|
||||||
Patch20: gmic-zart-qmake.diff
|
Patch20: gmic-zart-qmake.diff
|
||||||
Patch21: gmic-make-zart.diff
|
Patch21: gmic-make-zart.diff
|
||||||
Patch31: gmic-unstrip.diff
|
Patch31: gmic-unstrip.diff
|
||||||
Summary: GREYC's Magick for Image Computing (denoise and others)
|
Summary: GREYC's Magick for Image Computing (denoise and others)
|
||||||
License: CECILL v.2.0 (GPL compatible)
|
License: CECILL v.2.0 (GPL compatible)
|
||||||
Prefix: /usr
|
Prefix: /usr
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: procps
|
BuildRequires: procps
|
||||||
BuildRequires: fftw3-devel
|
BuildRequires: fftw3-devel
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: libstdc++-devel
|
BuildRequires: libstdc++-devel
|
||||||
BuildRequires: dos2unix
|
BuildRequires: dos2unix
|
||||||
BuildRequires: OpenEXR-devel
|
BuildRequires: OpenEXR-devel
|
||||||
BuildRequires: libqt4-devel
|
BuildRequires: libqt4-devel
|
||||||
BuildRequires: libcurl-devel
|
BuildRequires: libcurl-devel
|
||||||
%if 0%{?suse_version} >= 1110
|
%if 0%{?suse_version} >= 1110
|
||||||
BuildRequires: libjpeg-devel
|
BuildRequires: libjpeg-devel
|
||||||
BuildRequires: libtiff-devel
|
BuildRequires: libtiff-devel
|
||||||
BuildRequires: fftw3-threads-devel
|
BuildRequires: fftw3-threads-devel
|
||||||
%if 0%{?no_opencv} == 0
|
%if 0%{?no_opencv} == 0
|
||||||
BuildRequires: opencv-devel
|
BuildRequires: opencv-devel
|
||||||
BuildRequires: libjasper1
|
BuildRequires: libjasper1
|
||||||
%endif
|
%endif
|
||||||
#BuildRequires:cuGraphicsMagick-devel
|
#BuildRequires:cuGraphicsMagick-devel
|
||||||
%else
|
%else
|
||||||
%if 0%{?fedora_version} > 16
|
%if 0%{?fedora_version} > 16
|
||||||
BuildRequires: libjpeg-devel
|
BuildRequires: libjpeg-devel
|
||||||
BuildRequires: libtiff-devel
|
BuildRequires: libtiff-devel
|
||||||
BuildRequires: opencv-devel
|
BuildRequires: opencv-devel
|
||||||
BuildRequires: jasper-libs
|
BuildRequires: jasper-libs
|
||||||
#BuildRequires: fftw-libs-threads
|
#BuildRequires: fftw-libs-threads
|
||||||
%else
|
%else
|
||||||
%if 0%{?mandriva_version} > 0
|
%if 0%{?mandriva_version} > 0
|
||||||
BuildRequires: libtiff-devel
|
BuildRequires: libtiff-devel
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?suse_version} == 1030
|
%if 0%{?suse_version} == 1030
|
||||||
BuildRequires: gimp-unstable-devel
|
BuildRequires: gimp-unstable-devel
|
||||||
%else
|
%else
|
||||||
BuildRequires: gimp-devel
|
BuildRequires: gimp-devel
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?sles_version} == 11
|
%if 0%{?sles_version} == 11
|
||||||
BuildRequires: glib2-branding-SLES
|
BuildRequires: glib2-branding-SLES
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%define openSUSE_submit 1
|
%define openSUSE_submit 1
|
||||||
@ -164,7 +164,7 @@ This program allows you to capture video from a web cam and apply
|
|||||||
%package doc
|
%package doc
|
||||||
Summary: GMIC reference documentation
|
Summary: GMIC reference documentation
|
||||||
Group: Productivity/Graphics/Bitmap editors
|
Group: Productivity/Graphics/Bitmap editors
|
||||||
License: GFDL-v1.3
|
License: GFDL-v1.3
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
This is the reference documentation for G'MIC in .pdf format.
|
This is the reference documentation for G'MIC in .pdf format.
|
||||||
@ -232,11 +232,11 @@ RPM_OPT_FLAGS="`echo $RPM_OPT_FLAGS | sed 's/-strong//'`"
|
|||||||
GCCVER="`gcc --version | head -n1 | sed 's/^gcc[^0-9]*\([^ ]*\).*$/\1/'`"
|
GCCVER="`gcc --version | head -n1 | sed 's/^gcc[^0-9]*\([^ ]*\).*$/\1/'`"
|
||||||
#echo $GCCVER
|
#echo $GCCVER
|
||||||
case $GCCVER in 4.3*)
|
case $GCCVER in 4.3*)
|
||||||
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fno-tree-pre"
|
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fno-tree-pre"
|
||||||
;;
|
;;
|
||||||
4.5*)
|
4.5*)
|
||||||
RPM_OPT_FLAGS="`echo $RPM_OPT_FLAGS | sed 's/\-funroll\-loops //'`"
|
RPM_OPT_FLAGS="`echo $RPM_OPT_FLAGS | sed 's/\-funroll\-loops //'`"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
# Limit parallel build to avoid overloading machines
|
# Limit parallel build to avoid overloading machines
|
||||||
free -m
|
free -m
|
||||||
@ -245,13 +245,13 @@ MEM=`free -m | grep '^Mem:' | sed 's/^Mem: *\([0-9]*\).*$/\1/'`
|
|||||||
MAXJOBS=$((($MEM-300)/540))
|
MAXJOBS=$((($MEM-300)/540))
|
||||||
echo "Limiting Jobs %jobs -> $MAXJOBS"
|
echo "Limiting Jobs %jobs -> $MAXJOBS"
|
||||||
if test -n "%jobs" -a $MAXJOBS -gt 1; then
|
if test -n "%jobs" -a $MAXJOBS -gt 1; then
|
||||||
if test %jobs -gt $MAXJOBS; then
|
if test %jobs -gt $MAXJOBS; then
|
||||||
JOBS="-j$MAXJOBS"
|
JOBS="-j$MAXJOBS"
|
||||||
else
|
else
|
||||||
JOBS="-j%jobs"
|
JOBS="-j%jobs"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
JOBS=""
|
JOBS=""
|
||||||
fi
|
fi
|
||||||
#make CFLAGS="$RPM_OPT_FLAGS"
|
#make CFLAGS="$RPM_OPT_FLAGS"
|
||||||
cd src
|
cd src
|
||||||
@ -318,7 +318,7 @@ rm $RPM_BUILD_ROOT/%{_mandir}/fr/man1/gmic.1.gz
|
|||||||
%endif
|
%endif
|
||||||
#%dir %{_docdir}/gmic
|
#%dir %{_docdir}/gmic
|
||||||
#%doc README COPYING AUTHORS index.html
|
#%doc README COPYING AUTHORS index.html
|
||||||
%doc README COPYING index.html
|
%doc README COPYING index.html
|
||||||
%config %attr(0644,root,root) /etc/bash_completion.d/gmic
|
%config %attr(0644,root,root) /etc/bash_completion.d/gmic
|
||||||
|
|
||||||
%if 0%{?no_opencv} == 0
|
%if 0%{?no_opencv} == 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user