A new user interface for you! Read more...

File mingw32-adaptablegimp.spec of Package mingw32-adaptablegimp

%define __strip %{_mingw32_strip}
%define __objdump %{_mingw32_objdump}
%define _use_internal_dependency_generator 0
%define __find_requires %{_mingw32_findrequires}
%define __find_provides %{_mingw32_findprovides}
%define __os_install_post %{_mingw32_debug_install_post} \
                          %{_mingw32_install_post}

Name:           mingw32-adaptablegimp
BuildRequires:  mingw32-filesystem
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-babl-devel
BuildRequires:  mingw32-cairo-devel
BuildRequires:  mingw32-fontconfig-devel
BuildRequires:  mingw32-gegl-devel
BuildRequires:  mingw32-glib2-devel
BuildRequires:  mingw32-gtk2-devel
BuildRequires:  intltool gtk2-devel
BuildRequires:  mingw32-iso-codes-devel
BuildRequires:  mingw32-libexif-devel
BuildRequires:  mingw32-liblcms-devel
BuildRequires:  mingw32-libmng-devel
BuildRequires:  mingw32-libwebkitgtk-devel
BuildRequires:  mingw32-xpm-nox-devel
BuildRequires:  mingw32-libpng-devel
BuildRequires:  mingw32-libpoppler-glib-devel
BuildRequires:  mingw32-librsvg-devel
BuildRequires:  mingw32-libtiff-devel
BuildRequires:  mingw32-libwmf-devel
BuildRequires:  mingw32-pango-devel
BuildRequires:  mingw32-cross-pkg-config
# Extras for AdaptableGIMP
BuildRequires:  mingw32-libwebkitgtk-devel
BuildRequires:  mingw32-libsqlite-devel
BuildRequires:  mingw32-libsoup-devel
BuildRequires:  mingw32-libtool
BuildRequires:  mingw32-libgee-devel
BuildRequires:  mingw32-libgsl-devel
BuildRequires:  mingw32-libopenssl-devel
BuildRequires:  mingw32-libcurl-devel
# End of extras for AdaptableGIMP
BuildRequires:  autoconf automake libtool gtk-doc
Url:            http://www.adaptablegimp.org/
Version:        2.6.10
Release:        0
License:        GPL v2 or later
Group:          Productivity/Graphics/Bitmap Editors
#Requires:       %{name}-lang = %{version}
Summary:        AdaptableGIMP
Source0:        %{name}-%{version}.tar.bz2
Source1000:     %{name}-rpmlintrc
#Patch0:         gimp-2.6.11-dep.patch
#Patch1:         gimp-2.6.11-libpng15.patch

BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildArch:      noarch
#!BuildIgnore: post-build-checks  


%description
Insert AdaptableGIMP description here


%package devel
License:        GPL v2 or later
Summary:        AdaptableGIMP
Group:          Productivity/Graphics/Bitmap Editors

%description devel
Insert AdaptableGIMP description here

%lang_package

%{_mingw32_debug_package}

%prep
%setup -q -n adaptablegimp-%{version}
#%patch0 -p1 -b .dep
#%patch1 -p0 -b .libpng15


%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
export CPPFLAGS="-I%{_mingw32_includedir}/noX %{_mingw32_cflags} -DXPM_NO_X -DFOR_MSW"; \
PATH="%{_mingw32_bindir}:$PATH" \
MINGW32_CFLAGS="-I%{_mingw32_includedir}/noX %{_mingw32_cflags} -DXPM_NO_X -DFOR_MSW" \
%{_mingw32_configure} \
	--disable-python --disable-gimp-console --without-x
make %{?_smp_mflags} || make

%install
make DESTDIR=$RPM_BUILD_ROOT install
%find_lang gimp20
%find_lang gimp20-libgimp gimp20.lang
%find_lang gimp20-python gimp20.lang
%find_lang gimp20-script-fu gimp20.lang
%find_lang gimp20-std-plug-ins gimp20.lang
%find_lang gimp20-tips gimp20.lang
echo "%%defattr(-,root,root)" >plugins.list
for PLUGIN in $RPM_BUILD_ROOT%{_mingw32_libdir}/gimp/2.0/plug-ins/*.exe ; do
	echo "${PLUGIN#$RPM_BUILD_ROOT}" >>plugins.list
done

rm -rf $RPM_BUILD_ROOT%{_mingw32_libdir}/gimp/2.0/*/*.dll.a

%clean
rm -rf $RPM_BUILD_ROOT

%files -f plugins.list
%defattr(-,root,root)
%{_mingw32_bindir}/adaptablegimp.exe
%{_mingw32_bindir}/adaptablegimp-*.exe
%{_mingw32_bindir}/libgimp*.dll
%{_mingw32_datadir}/applications/adaptablegimp.desktop
%{_mingw32_datadir}/icons/hicolor/*/apps/*.png
%{_mingw32_datadir}/icons/hicolor/*/apps/*.svg
%{_mingw32_datadir}/adaptablegimp
%dir %{_mingw32_libdir}/adaptablegimp
%dir %{_mingw32_libdir}/adaptablegimp/2.0
%dir %{_mingw32_libdir}/adaptablegimp/2.0/environ
%{_mingw32_libdir}/adaptablegimp/2.0/environ/default.env
%dir %{_mingw32_libdir}/adaptablegimp/2.0/interpreters
%{_mingw32_libdir}/adaptablegimp/2.0/interpreters/default.interp
%{_mingw32_libdir}/adaptablegimp/2.0/modules/*.dll
%dir %{_mingw32_libdir}/adaptablegimp/2.0/plug-ins
%doc %{_mingw32_mandir}/man?/*.*
%dir %{_mingw32_sysconfdir}/adaptablegimp
%dir %{_mingw32_sysconfdir}/adaptablegimp/2.0
%config %{_mingw32_sysconfdir}/adaptablegimp/2.0/*rc

%files lang -f gimp20.lang

%files devel
%defattr(-,root,root)
%{_mingw32_bindir}/gimptool*
%{_mingw32_datadir}/aclocal/*.m4
%{_mingw32_includedir}/*
%{_mingw32_libdir}/*.dll.a
%{_mingw32_libdir}/*.def
%{_mingw32_libdir}/pkgconfig/*.pc
%dir %{_mingw32_datadir}/gtk-doc
%dir %{_mingw32_datadir}/gtk-doc/html
%{_mingw32_datadir}/gtk-doc/html/*

%changelog