File flpsed.spec of Package flpsed-static_fltk
#
# spec file for package flpsed (Version 0.7.0)
#
# norootforbuild
Name: flpsed
Version: 0.7.0
Release: 0.ak.0.openSUSE%(echo "%{suse_version}" | %__sed -e s/.$//)_static_fltk
License: GPL-3.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: fltk-devel >= 1.3.0
BuildRequires: fltk-devel-static >= 1.3.0
BuildRequires: Mesa-devel gcc-c++ libjpeg-devel libpng-devel
BuildRequires: xorg-x11-devel update-desktop-files xz
BuildRequires: autoconf automake libtool
Requires: ghostscript
Source0: %{name}-%{version}.tar.xz
Source1: %{name}.png
Source100: %{name}.changes
AutoReqprov: on
Group: Productivity/Publishing/PS
Summary: A Postscript and PDF annotator
URL: http://www.ecademix.com/JohannesHofmann/flpsed.html
%description
flpsed is a WYSIWYG PostScript2 annotator. You can't remove or modify existing elements of a document. But flpsed lets you add arbitrary text lines to existing PostScript 2 documents. Added lines can later be reedited with flpsed. Using pdftops, which is part of xpdf one can convert PDF documents to PostScript and also add text to them. flpsed is useful for filling in forms, adding notes etc.
Authors:
Johannes Hofmann <Johannes.Hofmann@gmx.de>
%debug_package
%prep
%setup -q
%build
# link statically against fltk libraries
%__sed -i 's|--ldflags|--ldstaticflags|g' configure configure.ac
autoreconf -fiv
## add -g for better debuginfo
CXXFLAGS="-g $RPM_OPT_FLAGS" CFLAGS="-g $RPM_OPT_FLAGS" %configure
make
%install
## this is a shortest possible desktop file creator:
%suse_update_desktop_file -c %{name} %{name} 'Post Script Annotator' %{name} %{name} 'Office Viewer'
make install DESTDIR=%{buildroot}
install -D -m 0644 %{SOURCE1} %{buildroot}/%{_datadir}/pixmaps/%{name}.png
%clean
rm -rf "$RPM_BUILD_ROOT"
%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog README NEWS
%{_bindir}/%{name}
%{_mandir}/man1/%{name}*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog