Mageia Bugzilla – Attachment 13674 Details for
Bug 29763
New stable release of gmic to 3.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
This gmic 3.20 spec file
gmic.spec (text/x-matlab), 6.57 KB, created by
Jose Manuel López
on 2023-02-03 23:41:23 CET
(
hide
)
Description:
This gmic 3.20 spec file
Filename:
MIME Type:
Creator:
Jose Manuel López
Created:
2023-02-03 23:41:23 CET
Size:
6.57 KB
patch
obsolete
>%define major 3 >%define libname %mklibname %{name} %{major} >%define develname %mklibname %{name} -d > >%define lib_ver %(echo %{version}|sed -e 's/\\.//g') >%define zart_version 34ebf6cce0bafb98abe57cec83c4a02cd1abeca0 > >%define gimpplugin 1 >%define abi_version 2.0 > >Name: gmic >Version: 3.2.0 >Release: %mkrel 1 >Group: Graphics/Utilities ># CeCILL version 2.0 >License: CeCILL >Summary: A script language (G'MIC) dedicated to image processing >Url: https://gmic.eu/ >Source0: https://gmic.eu/files/source/%{name}_%{version}.tar.gz >Source1: https://github.com/GreycLab/gmic-community/archive/gmic-%{version}/%{name}-community-%{version}.tar.gz >Source2: zart.desktop >Source3: https://github.com/c-koi/zart/archive/%{zart_version}.tar.gz >Patch0: gmic-3.2.0-mga-optflags.patch >Patch2: gmic-3.1.6-qmake-flags.patch >Patch3: gmic-3.2.0-ldflags.patch >Patch4: gmic-dont-add-rpaths.patch >BuildRequires: dos2unix >BuildRequires: cimg-devel = %{version} >BuildRequires: ffmpeg-devel >BuildRequires: pkgconfig(GraphicsMagick) >BuildRequires: pkgconfig(fftw3) >BuildRequires: pkgconfig(libcurl) >BuildRequires: pkgconfig(opencv) >BuildRequires: pkgconfig(Qt5Core) >BuildRequires: pkgconfig(Qt5Gui) >BuildRequires: pkgconfig(Qt5Network) >BuildRequires: pkgconfig(Qt5Widgets) >BuildRequires: pkgconfig(Qt5Xml) >BuildRequires: qttools5 >%if %{gimpplugin} >BuildRequires: pkgconfig(gimp-2.0) >%else >Obsoletes: gimp-plugin-gmic < %{version}-%{release} >%endif > >Requires: %{libname} >= %{version}-%{release} > >%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 (arbitrary 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. >%if %{gimpplugin} >* 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. >%endif >* 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 -f %{name}.lang >%doc COPYING README >%{_bindir}/%{name} >%{_bindir}/%{name}_qt >%{_datadir}/bash-completion/completions/%{name} >%{_mandir}/man1/%{name}.1.* >%{_datadir}/applications/gmic_qt.desktop >%{_iconsdir}/hicolor/*/*/gmic_qt.png >%{_iconsdir}/hicolor/*/*/gmic_qt.svg > >#------------------------------------------------------ > >%package -n zart >Summary: GUI for G'MIC real-time manipulations on the output of a webcam >Group: Graphics/Utilities >Provides: %{name}-zart = %{version}-%{release} > >%description -n 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 zart >%{_bindir}/zart >%{_datadir}/applications/zart.desktop >%{_iconsdir}/hicolor/*/*/zart.png >%{_iconsdir}/hicolor/*/*/zart.svg >#%%{_datadir}/zart/haarcascade*.xml > >#------------------------------------------------------ > >%if %{gimpplugin} >%package -n gimp-plugin-%{name} >Summary: gmic plugin for gimp >Group: Graphics/Utilities >Requires: gimp >= 2.6.0 >Provides: %{name}-gimp = %{version}-%{release} > >%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/%{abi_version}/plug-ins/%{name}_gimp_qt >%{_libdir}/gimp/%{abi_version}/plug-ins/%{name}_denoise_cnn.gmz >%{_libdir}/gimp/%{abi_version}/plug-ins/%{name}_cluts.gmz >%endif > > >#------------------------------------------------------ > >%package -n %{libname} >Summary: Library for gmic >Group: System/Libraries > >%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.%{lib_ver} > >#------------------------------------------------------ > >%package -n %{develname} >Summary: Header file for gmic >Group: Development/C++ >Requires: %{libname} = %{version}-%{release} >Provides: %{name}-devel = %{version}-%{release} > >%description -n %{develname} >This package contains the development file for gmic. > >%files -n %{develname} >%{_includedir}/%{name}*.h >%{_libdir}/lib*%{name}.so > >#------------------------------------------------------ > >%prep >%setup -q -a 1 -a 3 >#dos2unix src/Makefile >%autopatch -p1 > ># fix file-not-utf8 >iconv -f iso8859-1 -t utf-8 COPYING > COPYING.conv && mv -f COPYING.conv COPYING > ># prepare libcgmic from community >mv %{name}-community-gmic-%{version}/libcgmic/* ./src >mv zart-%{zart_version} zart > ># We want to build against the system installed CImg package. ># G'MIC provides no way todo this, so we just copy the file over what's there already >pushd src > mv CImg.h CImg.h.bak > ln -s /usr/include/CImg.h CImg.h >popd > >%build >%set_build_flags > >pushd src >%if %{gimpplugin} > %make_build -j1 all libc NOSTRIP=1 LIB=%{_lib} MAKE="%make_build -j1" >%else > %make_build -j1 cli lib gmic_qt libc zart libc NOSTRIP=1 LIB=%{_lib} MAKE="%make_build -j1" >%endif >popd > >pushd zart > %qmake_qt5 zart.pro > %make_build >popd > >%install >pushd src > %make_install LIB=%{_lib} >%if ! %{gimpplugin} > find %{buildroot} -name '*.gmz' -delete >%endif >popd > >pushd zart > install -m 0755 zart %{buildroot}%{_bindir}/zart > install -Dm 0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/zart.desktop > install -Dm 0644 images/gmic_hat.png %{buildroot}%{_iconsdir}/hicolor/64x64/apps/zart.png >popd > >%find_lang %{name} --with-man
%define major 3 %define libname %mklibname %{name} %{major} %define develname %mklibname %{name} -d %define lib_ver %(echo %{version}|sed -e 's/\\.//g') %define zart_version 34ebf6cce0bafb98abe57cec83c4a02cd1abeca0 %define gimpplugin 1 %define abi_version 2.0 Name: gmic Version: 3.2.0 Release: %mkrel 1 Group: Graphics/Utilities # CeCILL version 2.0 License: CeCILL Summary: A script language (G'MIC) dedicated to image processing Url: https://gmic.eu/ Source0: https://gmic.eu/files/source/%{name}_%{version}.tar.gz Source1: https://github.com/GreycLab/gmic-community/archive/gmic-%{version}/%{name}-community-%{version}.tar.gz Source2: zart.desktop Source3: https://github.com/c-koi/zart/archive/%{zart_version}.tar.gz Patch0: gmic-3.2.0-mga-optflags.patch Patch2: gmic-3.1.6-qmake-flags.patch Patch3: gmic-3.2.0-ldflags.patch Patch4: gmic-dont-add-rpaths.patch BuildRequires: dos2unix BuildRequires: cimg-devel = %{version} BuildRequires: ffmpeg-devel BuildRequires: pkgconfig(GraphicsMagick) BuildRequires: pkgconfig(fftw3) BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(opencv) BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(Qt5Network) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(Qt5Xml) BuildRequires: qttools5 %if %{gimpplugin} BuildRequires: pkgconfig(gimp-2.0) %else Obsoletes: gimp-plugin-gmic < %{version}-%{release} %endif Requires: %{libname} >= %{version}-%{release} %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 (arbitrary 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. %if %{gimpplugin} * 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. %endif * 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 -f %{name}.lang %doc COPYING README %{_bindir}/%{name} %{_bindir}/%{name}_qt %{_datadir}/bash-completion/completions/%{name} %{_mandir}/man1/%{name}.1.* %{_datadir}/applications/gmic_qt.desktop %{_iconsdir}/hicolor/*/*/gmic_qt.png %{_iconsdir}/hicolor/*/*/gmic_qt.svg #------------------------------------------------------ %package -n zart Summary: GUI for G'MIC real-time manipulations on the output of a webcam Group: Graphics/Utilities Provides: %{name}-zart = %{version}-%{release} %description -n 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 zart %{_bindir}/zart %{_datadir}/applications/zart.desktop %{_iconsdir}/hicolor/*/*/zart.png %{_iconsdir}/hicolor/*/*/zart.svg #%%{_datadir}/zart/haarcascade*.xml #------------------------------------------------------ %if %{gimpplugin} %package -n gimp-plugin-%{name} Summary: gmic plugin for gimp Group: Graphics/Utilities Requires: gimp >= 2.6.0 Provides: %{name}-gimp = %{version}-%{release} %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/%{abi_version}/plug-ins/%{name}_gimp_qt %{_libdir}/gimp/%{abi_version}/plug-ins/%{name}_denoise_cnn.gmz %{_libdir}/gimp/%{abi_version}/plug-ins/%{name}_cluts.gmz %endif #------------------------------------------------------ %package -n %{libname} Summary: Library for gmic Group: System/Libraries %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.%{lib_ver} #------------------------------------------------------ %package -n %{develname} Summary: Header file for gmic Group: Development/C++ Requires: %{libname} = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} %description -n %{develname} This package contains the development file for gmic. %files -n %{develname} %{_includedir}/%{name}*.h %{_libdir}/lib*%{name}.so #------------------------------------------------------ %prep %setup -q -a 1 -a 3 #dos2unix src/Makefile %autopatch -p1 # fix file-not-utf8 iconv -f iso8859-1 -t utf-8 COPYING > COPYING.conv && mv -f COPYING.conv COPYING # prepare libcgmic from community mv %{name}-community-gmic-%{version}/libcgmic/* ./src mv zart-%{zart_version} zart # We want to build against the system installed CImg package. # G'MIC provides no way todo this, so we just copy the file over what's there already pushd src mv CImg.h CImg.h.bak ln -s /usr/include/CImg.h CImg.h popd %build %set_build_flags pushd src %if %{gimpplugin} %make_build -j1 all libc NOSTRIP=1 LIB=%{_lib} MAKE="%make_build -j1" %else %make_build -j1 cli lib gmic_qt libc zart libc NOSTRIP=1 LIB=%{_lib} MAKE="%make_build -j1" %endif popd pushd zart %qmake_qt5 zart.pro %make_build popd %install pushd src %make_install LIB=%{_lib} %if ! %{gimpplugin} find %{buildroot} -name '*.gmz' -delete %endif popd pushd zart install -m 0755 zart %{buildroot}%{_bindir}/zart install -Dm 0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/zart.desktop install -Dm 0644 images/gmic_hat.png %{buildroot}%{_iconsdir}/hicolor/64x64/apps/zart.png popd %find_lang %{name} --with-man
View Attachment As Raw
Actions:
View
Attachments on
bug 29763
:
13673
| 13674