diff --git a/gmic.spec b/gmic.spec index d140aff..35d1b73 100644 --- a/gmic.spec +++ b/gmic.spec @@ -25,64 +25,64 @@ %endif %endif -Name: gmic -Version: 1.6.8 -Release: 0 -Group: Productivity/Graphics/Bitmap Editors -URL: http://gmic.sourceforge.net/ -Packager: kurt@garloff.de -Source: %{name}_%{version}.tar.bz2 -Source1: http://gmic.eu/gmic_reference.pdf -Patch1: gmic-cflags.diff -Patch2: gmic-docdir.diff -Patch3: gmic-overflow.diff -Patch10: gmic-x11opts.diff -Patch11: gmic-openmp.diff -Patch15: gmic-oldgimp.diff -Patch20: gmic-zart-qmake.diff -Patch21: gmic-make-zart.diff -Patch31: gmic-unstrip.diff -Summary: GREYC's Magick for Image Computing (denoise and others) -License: CECILL v.2.0 (GPL compatible) -Prefix: /usr -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: procps -BuildRequires: fftw3-devel -BuildRequires: gcc-c++ -BuildRequires: libstdc++-devel -BuildRequires: dos2unix -BuildRequires: OpenEXR-devel -BuildRequires: libqt4-devel -BuildRequires: libcurl-devel +Name: gmic +Version: 1.6.8 +Release: 0 +Group: Productivity/Graphics/Bitmap Editors +URL: http://gmic.sourceforge.net/ +Packager: kurt@garloff.de +Source: %{name}_%{version}.tar.bz2 +Source1: http://gmic.eu/gmic_reference.pdf +Patch1: gmic-cflags.diff +Patch2: gmic-docdir.diff +Patch3: gmic-overflow.diff +Patch10: gmic-x11opts.diff +Patch11: gmic-openmp.diff +Patch15: gmic-oldgimp.diff +Patch20: gmic-zart-qmake.diff +Patch21: gmic-make-zart.diff +Patch31: gmic-unstrip.diff +Summary: GREYC's Magick for Image Computing (denoise and others) +License: CECILL v.2.0 (GPL compatible) +Prefix: /usr +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: procps +BuildRequires: fftw3-devel +BuildRequires: gcc-c++ +BuildRequires: libstdc++-devel +BuildRequires: dos2unix +BuildRequires: OpenEXR-devel +BuildRequires: libqt4-devel +BuildRequires: libcurl-devel %if 0%{?suse_version} >= 1110 -BuildRequires: libjpeg-devel -BuildRequires: libtiff-devel -BuildRequires: fftw3-threads-devel +BuildRequires: libjpeg-devel +BuildRequires: libtiff-devel +BuildRequires: fftw3-threads-devel %if 0%{?no_opencv} == 0 BuildRequires: opencv-devel -BuildRequires: libjasper1 +BuildRequires: libjasper1 %endif #BuildRequires:cuGraphicsMagick-devel %else %if 0%{?fedora_version} > 16 -BuildRequires: libjpeg-devel -BuildRequires: libtiff-devel -BuildRequires: opencv-devel -BuildRequires: jasper-libs -#BuildRequires: fftw-libs-threads +BuildRequires: libjpeg-devel +BuildRequires: libtiff-devel +BuildRequires: opencv-devel +BuildRequires: jasper-libs +#BuildRequires: fftw-libs-threads %else %if 0%{?mandriva_version} > 0 -BuildRequires: libtiff-devel +BuildRequires: libtiff-devel %endif %endif %endif %if 0%{?suse_version} == 1030 -BuildRequires: gimp-unstable-devel +BuildRequires: gimp-unstable-devel %else -BuildRequires: gimp-devel +BuildRequires: gimp-devel %endif %if 0%{?sles_version} == 11 -BuildRequires: glib2-branding-SLES +BuildRequires: glib2-branding-SLES %endif %define openSUSE_submit 1 @@ -164,7 +164,7 @@ This program allows you to capture video from a web cam and apply %package doc Summary: GMIC reference documentation Group: Productivity/Graphics/Bitmap editors -License: GFDL-v1.3 +License: GFDL-v1.3 %description doc 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/'`" #echo $GCCVER case $GCCVER in 4.3*) - RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fno-tree-pre" - ;; - 4.5*) - RPM_OPT_FLAGS="`echo $RPM_OPT_FLAGS | sed 's/\-funroll\-loops //'`" - ;; + RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fno-tree-pre" + ;; + 4.5*) + RPM_OPT_FLAGS="`echo $RPM_OPT_FLAGS | sed 's/\-funroll\-loops //'`" + ;; esac # Limit parallel build to avoid overloading machines free -m @@ -245,13 +245,13 @@ MEM=`free -m | grep '^Mem:' | sed 's/^Mem: *\([0-9]*\).*$/\1/'` MAXJOBS=$((($MEM-300)/540)) echo "Limiting Jobs %jobs -> $MAXJOBS" if test -n "%jobs" -a $MAXJOBS -gt 1; then - if test %jobs -gt $MAXJOBS; then - JOBS="-j$MAXJOBS" - else - JOBS="-j%jobs" - fi + if test %jobs -gt $MAXJOBS; then + JOBS="-j$MAXJOBS" + else + JOBS="-j%jobs" + fi else - JOBS="" + JOBS="" fi #make CFLAGS="$RPM_OPT_FLAGS" cd src @@ -318,7 +318,7 @@ rm $RPM_BUILD_ROOT/%{_mandir}/fr/man1/gmic.1.gz %endif #%dir %{_docdir}/gmic #%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 %if 0%{?no_opencv} == 0