File PosteRazor.spec of Package PosteRazor
#
# spec file for package PosteRazor
#
# Copyright (c) 2013-2015 Malcolm J Lewis <malcolmlewis@opensuse.org>
#
# 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/
#
Name: PosteRazor
Version: 1.5.1
Release: 0
License: GPL-3.0+
Summary: Cuts an image into pieces which can be printed out as a poster
Url: http://posterazor.sourceforge.net/
Group: Productivity/Graphics/Convertors
Source0: http://softlayer-dal.dl.sourceforge.net/project/posterazor/Source%20Releases/1.5.1/PosteRazor-1.5.1-Source.zip
Source1: PosteRazor.png
# Source 1 via `convert -resize 48x48 packaging/iss/wizsmallimage.bmp PosteRazor.png`
# PATCH-FIX-OPENSUSE PosteRazor-fix-gcc-errors.patch malcolmlewis@opensuse.org -- Fix errors with newer gcc.
Patch0: PosteRazor-fix-gcc-errors.patch
BuildRequires: cmake
BuildRequires: fltk-devel
BuildRequires: gcc-c++
BuildRequires: freeimage-devel
BuildRequires: unzip
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(x11-xcb)
BuildRequires: pkgconfig(xpm)
BuildRequires: pkgconfig(xproto)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Want to print a poster? PosteRazor cuts an image file into pieces and you
can print then on your printer and glue them together to a poster. Easy
FLTK based user interface. Uses FreeImage for image loading. Creates PDFs
as output.
%prep
%setup -q -c -n %{name}-%{version}-Source
%patch0 -p1
# Fix end of line encoding warning
find . -type f -exec sed -i 's/\r//' {} \;
%build
cmake src
make VERBOSE=1
%install
install -Dm0755 PosteRazor %{buildroot}%{_bindir}/PosteRazor
install -Dm0644 %{S:1} %{buildroot}%{_datadir}/pixmaps/PosteRazor.png
%suse_update_desktop_file -c %{name} %{name} "Cuts an image file into pieces for printing" %{name} %{name} Graphics 2DGraphics
%post
%desktop_database_post
%postun
%desktop_database_postun
%files
%defattr(-,root,root)
%doc CHANGES LICENSE README
%{_bindir}/%{name}
%{_datadir}/applications/PosteRazor.desktop
%{_datadir}/pixmaps/PosteRazor.png
%changelog