File khtml2png.spec of Package khtml2png

#
# spec file for package khtml2png (Version 2.7.6)
#
# Copyright (c) 2008-2009 Buschmann
#
# 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.

# norootforbuild

BuildRequires:      kdelibs3-devel zlib-devel cmake

Name:               khtml2png
Summary:            Creates Screenshots of Webpages
Version:            2.7.6
Release:            1
License:            GPL
Group:              Productivity/Other
Source0:            %{name}-%{version}.tar.gz
Patch0:             renaming-executable.patch
BuildRoot:          %{_tmppath}/%{name}-%{version}-build
AutoReqProv:        yes

Url:                http://khtml2png.sourceforge.net

%description
html2png is a command line program to create screenshots of webpages.
It uses libkhtml (the library that is used in the KDE webbrowser Konqueror).

Authors:
-------
    Simon MacMullen
    Hauke Goos-Habermann
    Florent Bruneau
    Alex Osborne

%prep
%setup
%patch -P 0 -p1

%build
. /etc/opt/kde3/common_options 
cmake -G KDevelop3 -D CMAKE_INSTALL_PREFIX=/usr . -DCMAKE_SKIP_RPATH:BOOL=ON
make

%install
%makeinstall

%clean
  rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README ChangeLog
/usr/bin/khtml2png

%changelog
* Tue Apr 28 2009 - Buschmann <buschmann23@opensuse.org> - 2.7.6
- removed explicit library dependencies kdelibs3 and zlib
* Sun Dec 14 2008 - Buschmann <buschmann23@opensuse.org> - 2.7.6
- initial spec file
openSUSE Build Service is sponsored by