File arachne.spec of Package arachne
#
# spec file for package arachne
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define sover 1
Name: arachne
Version: 1.1.2
Release: 0
Summary: Content-aware Image Resizing using Seam Carving
License: GPL-2.0
Group: Productivity/Graphics/Other
Url: http://seam-carver.sourceforge.net/
Source: http://sourceforge.net/projects/seam-carver/files/Arachne/%{version}/%{name}-%{version}.tar.gz
Patch0: arachne-fix_missing_returns.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc
BuildRequires: gdk-pixbuf-devel
BuildRequires: glibc-devel
BuildRequires: gtk2-devel
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
BuildRequires: libtiff-devel
BuildRequires: libtool
BuildRequires: make
BuildRequires: update-desktop-files
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Arachne is an open source GTK+ application written to showcase the best
features of the Seamstress seam carving library. This package contains the
Seamstress library (in the seamstress subdirectory), the Arachne program and
three command line tools that demonstrate use of the library (removeseams,
retarget and mapseams).
%prep
%setup -q
%patch0 -p1
%build
CFLAGS="%{optflags} -g" \
CXXFLAGS="%{optflags} -g" \
%configure \
--enable-static \
--disable-shared
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
rm -rf \
"%{buildroot}%{_libdir}" \
"%{buildroot}%{_includedir}"
install -Dm 0644 icons/arachne48.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
%suse_update_desktop_file -c %{name} %{name} "Image Resizing using Seam Carving" %{name} %{name} Graphics Photograph
%files
%defattr(-,root,root)
%doc COPYING README
%{_bindir}/%{name}
%{_bindir}/mapseams
%{_bindir}/removeseams
%{_bindir}/retarget
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog