File ipe-pdftoipe.spec of Package pdftoipe

#
# spec file for package ipe-tools
#
# Copyright (c) 2015 SUSE LINUX Products 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/
#

Name:           ipe-pdftoipe
Version:        0
Release:        0
License:        GPL-2.0+
Summary:        Convert arbitrary PostScript or PDF files into Ipe documents
Url:            https://github.com/otfried/ipe-tools
Group:          Productivity/Graphics/Convertors
Source:         ipe-pdftoipe-%{version}.tar.gz
BuildRequires:   gcc-c++
BuildRequires:   libpoppler-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
You can convert arbitrary PostScript or PDF files into
Ipe documents, making them editable. The auxiliary program pdftoipe
converts (pages from) a PDF file into an Ipe XML file. If your source
is PostScript, you have to first convert it to PDF. Once converted to
XML, the file can be opened from Ipe as usual.

%prep
%setup -q
mv pdftoipe/* .
rm -rf pdftoipe

%build
make %{?_smp_mflags}

%install
gzip pdftoipe.1
install -D -m 755 pdftoipe      %{buildroot}%{_bindir}/pdftoipe
install -D -m 644 pdftoipe.1.gz %{buildroot}%{_mandir}/man1/pdftoipe.1.gz

%files
%defattr(-,root,root)
%doc readme.txt gpl.txt
%{_bindir}/pdftoipe
%{_mandir}/man1/pdftoipe*

%changelog