2014-07-23 10:35:02 +00:00
|
|
|
%global gimpplugindir %(gimptool --gimpplugindir)/plug-ins
|
|
|
|
|
|
|
|
%define use_system_cimg 0
|
|
|
|
|
|
|
|
Summary: GREYC's Magic for Image Computing
|
|
|
|
Name: gmic
|
2016-06-04 11:11:34 +00:00
|
|
|
Version: 1.7.2
|
2017-02-10 11:17:31 +00:00
|
|
|
Release: 2%{?dist}
|
2015-10-24 19:44:53 +00:00
|
|
|
Source: http://gmic.eu/files/source/%{name}_%{version}.tar.gz
|
2016-05-01 16:07:36 +00:00
|
|
|
Patch1: %{name}-%{version}-qmake.patch
|
2014-07-23 10:35:02 +00:00
|
|
|
License: CeCILL
|
|
|
|
Url: http://gmic.sourceforge.net/index.shtml
|
|
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
Group: Applications/Multimedia
|
|
|
|
%if %{use_system_cimg}
|
|
|
|
BuildRequires: CImg-devel
|
|
|
|
%endif
|
|
|
|
BuildRequires: libX11-devel
|
2015-06-23 12:42:17 +00:00
|
|
|
BuildRequires: libXext-devel
|
2014-07-23 10:35:02 +00:00
|
|
|
BuildRequires: libtiff-devel
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: fftw-devel
|
|
|
|
BuildRequires: OpenEXR-devel
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
BuildRequires: gtk2-devel
|
2015-06-23 12:42:17 +00:00
|
|
|
BuildRequires: gimp-devel-tools
|
2014-07-23 10:35:02 +00:00
|
|
|
BuildRequires: hdf5-devel
|
|
|
|
BuildRequires: opencv-devel
|
|
|
|
BuildRequires: GraphicsMagick-c++-devel
|
|
|
|
BuildRequires: ilmbase-devel
|
2015-06-23 12:42:17 +00:00
|
|
|
BuildRequires: qt5-qtbase-devel
|
2015-03-20 08:56:31 +00:00
|
|
|
BuildRequires: libcurl-devel
|
2014-07-23 10:35:02 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
G'MIC is an open and full-featured framework for image processing, providing
|
|
|
|
several different user interfaces to convert/manipulate/filter/visualize
|
|
|
|
generic image datasets, from 1d scalar signals to 3d+t sequences of
|
|
|
|
multi-spectral volumetric images.
|
|
|
|
|
|
|
|
%package devel
|
2014-11-26 14:29:30 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2014-07-23 10:35:02 +00:00
|
|
|
Summary: Development files for G'MIC
|
|
|
|
|
2016-05-01 16:07:36 +00:00
|
|
|
%package static
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Summary: static-linked development files for G'MIC
|
|
|
|
|
2014-07-23 10:35:02 +00:00
|
|
|
%package gimp
|
2014-11-26 14:29:30 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2014-07-23 10:35:02 +00:00
|
|
|
Summary: G'MIC plugin for GIMP
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
G'MIC is an open and full-featured framework for image processing, providing
|
|
|
|
several different user interfaces to convert/manipulate/filter/visualize
|
|
|
|
generic image datasets, from 1d scalar signals to 3d+t sequences of
|
|
|
|
multi-spectral volumetric images.
|
|
|
|
|
|
|
|
Provides files for building applications against the G'MIC API
|
|
|
|
|
2016-05-01 16:07:36 +00:00
|
|
|
%description static
|
|
|
|
G'MIC is an open and full-featured framework for image processing, providing
|
|
|
|
several different user interfaces to convert/manipulate/filter/visualize
|
|
|
|
generic image datasets, from 1d scalar signals to 3d+t sequences of
|
|
|
|
multi-spectral volumetric images.
|
|
|
|
|
|
|
|
Provides statically linked files for building applications
|
|
|
|
against the G'MIC API
|
|
|
|
|
2014-07-23 10:35:02 +00:00
|
|
|
%description gimp
|
|
|
|
G'MIC is an open and full-featured framework for image processing, providing
|
|
|
|
several different user interfaces to convert/manipulate/filter/visualize
|
|
|
|
generic image datasets, from 1d scalar signals to 3d+t sequences of
|
|
|
|
multi-spectral volumetric images.
|
|
|
|
|
|
|
|
Provides a plugin for using G'MIC from GIMP
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
|
|
%setup -q
|
2015-06-23 12:42:17 +00:00
|
|
|
%patch1 -p1
|
2014-07-23 10:35:02 +00:00
|
|
|
|
|
|
|
%build
|
2016-05-01 16:07:36 +00:00
|
|
|
export CCACHE_DISABLE=1
|
2014-07-23 10:35:02 +00:00
|
|
|
cd src
|
|
|
|
%if %{use_system_cimg}
|
|
|
|
# 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
|
|
|
|
mv CImg.h CImg.h.bak
|
|
|
|
cp /usr/include/CImg.h CImg.h
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# Setting FFMPEG flags to empty string to disable G'MIC's
|
|
|
|
# use of that library. It will fallback to exec'ing the
|
|
|
|
# CLI tools if they happen to be installed.
|
2016-05-01 16:07:36 +00:00
|
|
|
make FFMPEG_CFLAGS= FFMPEG_LDFLAGS= OPT_CFLAGS="%{optflags} -fsigned-char"
|
2014-07-23 10:35:02 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
iconv -f iso8859-1 -t utf-8 COPYING > COPYING.conv && mv -f COPYING.conv COPYING
|
|
|
|
|
|
|
|
cd src
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
|
|
|
|
# Makefile is not multilib aware
|
|
|
|
if test "%{_prefix}/lib" != "%{_libdir}"
|
|
|
|
then
|
|
|
|
mv $RPM_BUILD_ROOT/%{_prefix}/lib/* $RPM_BUILD_ROOT/%{_libdir}/
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Makefile creates too many intermediate symlinks for the library
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/libgmic.so.1
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/libgmic.so.1.5
|
2016-05-01 16:07:36 +00:00
|
|
|
ln -s libgmic.so.%{version} $RPM_BUILD_ROOT/%{_libdir}/libgmic.so.1
|
2014-07-23 10:35:02 +00:00
|
|
|
|
|
|
|
# Sourced files shouldn't be executable
|
|
|
|
chmod -x $RPM_BUILD_ROOT/%{_sysconfdir}/bash_completion.d/gmic
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README COPYING
|
|
|
|
%{_bindir}/gmic
|
2015-06-23 12:42:17 +00:00
|
|
|
%{_bindir}/zart
|
2014-07-23 10:35:02 +00:00
|
|
|
%{_sysconfdir}/bash_completion.d/gmic
|
|
|
|
%{_libdir}/libgmic.so.*
|
|
|
|
%{_mandir}/man1/%{name}.1.gz
|
|
|
|
%{_mandir}/fr/man1/%{name}.1.gz
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_prefix}/include/gmic.h
|
|
|
|
%{_libdir}/libgmic.so
|
|
|
|
|
2016-05-01 16:07:36 +00:00
|
|
|
%files static
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_prefix}/include/gmic_libc.h
|
|
|
|
%{_libdir}/libcgmic.so
|
|
|
|
%{_libdir}/libcgmic.so.*
|
|
|
|
|
2014-07-23 10:35:02 +00:00
|
|
|
%files gimp
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{gimpplugindir}/gmic_gimp
|
2016-05-01 16:07:36 +00:00
|
|
|
%{gimpplugindir}/gmic_film_cluts.gmz
|
2014-07-23 10:35:02 +00:00
|
|
|
|
|
|
|
%changelog
|
2017-02-10 11:17:31 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-06-04 11:11:34 +00:00
|
|
|
* Sat Jun 4 2016 josef radinger <cheese@nosuchhost.net> - 1.7.2-1
|
|
|
|
- bump version
|
|
|
|
|
2016-05-08 19:21:19 +00:00
|
|
|
* Sun May 8 2016 josef radinger <cheese@nosuchhost.net> - 1.7.1-2
|
|
|
|
- rebuild for rawhide
|
|
|
|
|
2016-05-01 16:07:36 +00:00
|
|
|
* Fri Apr 29 2016 josef radinger <cheese@nosuchhost.net> - 1.7.1-1
|
|
|
|
- bump version
|
|
|
|
- update Patch1
|
|
|
|
- fix link on libgmic
|
|
|
|
- remove smp_mflags (because of compile-errors)
|
|
|
|
- split a *-static package
|
|
|
|
|
2016-02-05 19:08:36 +00:00
|
|
|
* Fri Feb 5 2016 josef radinger <cheese@nosuchhost.net> - 1.6.9-1
|
|
|
|
- bump version
|
|
|
|
- update Patch1
|
|
|
|
|
2016-02-03 22:17:15 +00:00
|
|
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.8-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-12-08 10:02:37 +00:00
|
|
|
* Mon Dec 7 2015 josef radinger <cheese@nosuchhost.net> - 1.6.8-1
|
|
|
|
- bump version
|
|
|
|
|
2015-10-24 19:44:53 +00:00
|
|
|
* Sat Oct 24 2015 josef radinger <cheese@nosuchhost.net> - 1.6.7-1
|
|
|
|
- bump version
|
|
|
|
- new downloadurl
|
|
|
|
|
2015-10-13 20:33:11 +00:00
|
|
|
* Tue Oct 13 2015 josef radinger <cheese@nosuchhost.net> - 1.6.6.1-1
|
|
|
|
- bump version
|
|
|
|
|
2015-06-23 12:42:17 +00:00
|
|
|
* Tue Jun 23 2015 Daniel P. Berrange <berrange@redhat.com> - 1.6.5.0-1
|
|
|
|
- Update to 1.6.5.0 release
|
|
|
|
- Enable zart binary build
|
|
|
|
|
2015-06-17 08:44:01 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.2.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-05-10 14:07:54 +00:00
|
|
|
* Sun May 10 2015 Daniel P. Berrange <berrange@redhat.com> - 1.6.2.0-1
|
|
|
|
- Update to 1.6.2.0 release
|
|
|
|
|
2015-05-02 12:01:42 +00:00
|
|
|
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.6.1.0-2
|
|
|
|
- Rebuilt for GCC 5 C++11 ABI change
|
|
|
|
|
2015-03-20 08:56:31 +00:00
|
|
|
* Fri Mar 20 2015 Daniel P. Berrange <berrange@redhat.com> - 1.6.1.0-1
|
|
|
|
- Update to 1.6.1.0 release
|
|
|
|
|
2015-02-06 12:00:46 +00:00
|
|
|
* Fri Feb 6 2015 Daniel P. Berrange <berrange@redhat.com> - 1.6.0.4-1
|
|
|
|
- Update to 1.6.0.4 release
|
|
|
|
|
2014-12-19 13:49:50 +00:00
|
|
|
* Fri Dec 19 2014 Daniel P. Berrange <berrange@redhat.com> - 1.6.0.3-1
|
|
|
|
- Update to 1.6.0.3 release
|
|
|
|
|
2014-11-26 14:29:30 +00:00
|
|
|
* Wed Nov 26 2014 Rex Dieter <rdieter@fedoraproject.org> 1.6.0.1-2
|
|
|
|
- rebuild (openexr), s|qt-devel|qt4-devel|, tighten subpkg deps
|
|
|
|
|
2014-10-03 11:00:50 +00:00
|
|
|
* Fri Oct 3 2014 Daniel P. Berrange <berrange@redhat.com> - 1.6.0.1-1
|
|
|
|
- Update to 1.6.0.1 release
|
|
|
|
|
2014-08-25 08:37:28 +00:00
|
|
|
* Mon Aug 25 2014 Daniel P. Berrange <berrange@redhat.com> - 1.6.0.0-1
|
|
|
|
- Update to 1.6.0.0 release
|
|
|
|
|
2014-08-16 17:25:39 +00:00
|
|
|
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.9.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-07-23 10:35:02 +00:00
|
|
|
* Wed Jul 23 2014 Daniel P. Berrange <berrange@redhat.com> - 1.5.9.4-1
|
|
|
|
- Initial Fedora package after review (rhbz #1061801)
|