Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %define major 1
- %define libname %mklibname %{name} %{major}
- %define develname %mklibname -d %{name}
- Name: gmic
- Version: 1.5.5.0
- Release: %mkrel 3
- Group: Graphics/Utilities
- # CeCILL version 2.0
- License: CeCILL
- Summary: A script language (G'MIC) dedicated to image processing
- Url: http://gmic.sourceforge.net
- Source: http://sourceforge.net/projects/gmic/files/%{name}_%{version}.tar.gz
- Patch0: %{name}-1.5.5.0-makefile.patch
- BuildRequires: pkgconfig(opencv)
- BuildRequires: pkgconfig(GraphicsMagick)
- BuildRequires: pkgconfig(fftw3)
- BuildRequires: pkgconfig(gimp-2.0)
- BuildRequires: ffmpeg-devel
- BuildRequires: qt4-devel
- %description
- G'MIC defines a complete image processing framework, and thus
- can manage generic image data as other image-related tools.
- Anyway, the specific features described below make it a bit particular :
- * It internally works with lists of images.
- Image manipulations and interactions can be done
- either grouped or focused on specific items.
- * It can process a wide variety of image types,
- including multi-spectral (arbitray number of channels)
- and 3d volumetric images, as well as image sequences,
- or 3d vector objects.
- Images with different pixel types are supported,
- allowing to process flawlessly images with 8bits or
- 16bits integers per channel, as well as float-valued datasets.
- * It provides small but efficient visualization modules
- dedicated to the exploration/viewing of 2d/3d multi-spectral images,
- 3d vector objects (elevation map, isocurves, isosurfaces,...),
- or 1d graph plots.
- * It proposes commands to handle custom interactive windows
- where events can be managed easily by the user.
- * It is highly extensible through the importation of custom command
- files which add new commands that become understood by the
- language interpreter.
- * Most of the functionalities can be used inside GIMP
- via the provided plug-in, allowing end-users to integrate
- any G'MIC-based pipeline directly in a nice GUI,
- without coding efforts.
- * It is based on the latest development versions of the CImg Library,
- a well established C++ template image processing toolkit,
- developed by the same team of developers.
- %files
- %doc COPYING README
- %{_bindir}/%{name}
- %{_mandir}/man1/%{name}.1.*
- %{_mandir}/fr/man1/gmic.1.*
- %config(noreplace) %{_sysconfdir}/bash_completion.d/%{name}
- #------------------------------------------------------
- %package -n %{name}-zart
- Summary: GUI for G'MIC real-time manipulations on the output of a webcam
- Group: Graphics/Utilities
- Requires: %{name} = %{version}-%{release}
- Provides: %{name}-zart = %{version}-%{release}
- Obsoletes: zart < 1.5.5.0-3
- %description -n %{name}-zart
- ZArt is a computer program whose purpose is to demonstrate the possibilities of
- the G'MIC image processing language by offering the choice of several
- manipulations on a video stream acquired from a webcam.
- %files -n %{name}-zart
- %{_bindir}/zart
- #%{_datadir}/zart/haarcascade*.xml
- #------------------------------------------------------
- %package -n gimp-plugin-%{name}
- Summary: gmic plugin for gimp
- Group: Graphics/Utilities
- Requires: gimp >= 2.6.0
- Provides: %{name}-gimp = %{version}-%{release}
- Obsoletes: %{name}-gimp < 1.5.5.0-3
- %description -n gimp-plugin-%{name}
- G'MIC has been made available as an easy-to-use plug-in for GIMP.
- It extends this retouching software capabilities by offering a large number of
- pre-defined image filters and effects.
- Of course, the plug-in is highly customizable and it is possible to add your
- own custom G'MIC-written filters in it.
- %files -n gimp-plugin-%{name}
- %{_libdir}/gimp/2.0/plug-ins/%{name}_gimp
- #------------------------------------------------------
- %package -n %{libname}
- Summary: Library for gmic
- Group: System/Libraries
- Requires: %{name} = %{version}-%{release}
- Obsoletes: %{name} < 1.5.5.0-3
- %description -n %{libname}
- This package contains the library needed to run programs
- dynamically linked with gmic.
- %files -n %{libname}
- %{_libdir}/lib%{name}.so.%{major}
- %{_libdir}/lib%{name}.so.%{major}.*
- #------------------------------------------------------
- %package -n %{develname}
- Summary: Header file for gmic
- Group: Development/C++
- Requires: %{libname} = %{version}-%{release}
- Provides: %{name}-devel = %{version}-%{release}
- Obsoletes: %{name}-gimp-devel < 1.5.5.0-3
- %description -n %{develname}
- This package contains the development file for gmic.
- %files -n %{develname}
- %{_libdir}/lib%{name}.so
- %{_includedir}/%{name}.h
- #------------------------------------------------------
- %prep
- %setup -q
- %patch0 -p1 -b .makefile
- sed -i -e "s|@LIB@|%{_lib}|g" src/Makefile
- %build
- %setup_compile_flags
- pushd src
- %make
- popd
- pushd zart
- %qmake_qt4
- %make
- popd
- %install
- pushd src
- %makeinstall_std
- popd
Advertisement
Add Comment
Please, Sign In to add comment