File cutycapt.spec of Package cutycapt
#
# spec file for package cutycapt
#
# Copyright (c) 2013 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: cutycapt
Version: 0.0+svn7
Release: 0
License: GPL-2.0+ or LGPL-2.1+
Summary: Utility to Capture WebKit's Rendering of a Web Page
Url: http://cutycapt.sourceforge.net/
Group: Productivity/Networking/Web/Utilities
Source0: %{name}-%{version}.tar.bz2
Source1: cutycapt.1
# PATCH-FIX-UPSTREAM 01-assume_http_as_default.patch dapal@debian.org -- if no scheme is present, assume http
Patch0: 01-assume_http_as_default.patch
# PATCH-FIX-UPSTREAM cutycapt-include_proxy.patch lazy.kent@opensuse.org -- add missing include to fix build in openSUSE > 12.3
Patch1: cutycapt-include_proxy.patch
BuildRequires: pkgconfig(QtCore)
BuildRequires: pkgconfig(QtGui)
BuildRequires: pkgconfig(QtNetwork)
BuildRequires: pkgconfig(QtSvg)
BuildRequires: pkgconfig(QtWebKit)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
CutyCapt is a Qt and WebKit based command-line utility that captures
WebKit's rendering of a web page into various bitmap, vector, and other
file formats.
%prep
%setup -qn CutyCapt
%patch0 -p1
%patch1 -p1
%build
qmake \
QMAKE_CFLAGS+="%{optflags}" \
QMAKE_CXXFLAGS+="%{optflags}" \
QMAKE_STRIP="true"
make %{?_smp_mflags}
%install
install -Dm 0755 CutyCapt %{buildroot}%{_bindir}/%{name}
install -Dm 0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/%{name}.1
%files
%defattr(-,root,root,-)
%{_bindir}/%{name}
%doc %{_mandir}/man?/*
%changelog