Search
j0ke.net Open Build Service
>
Projects
>
home:netmax
>
khtml2png
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 2
[-]
[+]
Added
khtml2png.spec
@@ -0,0 +1,61 @@ +%define distversion %( perl -e '$_=\<\>;/(\\d+)\\.(\\d)\\.?(\\d)?/; print "$1$2".($3||0)' /etc/*-release) +%define smptag %(uname -a|awk '{print $5}') + +Summary: khtml2png +Name: khtml2png +Version: 2.6.7a +Release: 1 +License: GPL +Vendor: Hauke Goos-Habermann <hhabermann@pc-kiel.de> +Url: http://sourceforge.net/projects/khtml2png/ +Packager: Carsten Schoene <cs@linux-administrator.com> +Group: X11/KDE/Network +Source: %{name}-%{version}.tar.gz +BuildRoot: /tmp/%{name}-%{version}/ +Prefix: `kde-config --prefix` + +BuildRequires: qt3-devel zlib-devel kdeutils3-devel kdelibs3-devel kdemultimedia3-devel kdebase3-devel openssl-devel glibc-devel libgcc gcc gcc-c++ cmake + +%description +khtml2png is a command line program to create PNG images out of webpages. Despite the name, it can also produce JPEG images. + +%prep +%setup -q + +%build +. /etc/opt/kde3/common_options +%if 0%{?suse_version} == 1010 +export QT_DIR=%{_libdir}/qt3 +export QTDIR=%{_libdir}/qt3 +%endif + +./configure + +if [ %{smptag} = SMP ]; then + %{__make} -j2 +else + %{__make} +fi + +%install +mkdir -p $RPM_BUILD_ROOT/usr/bin +install -m 755 khtml2png2 $RPM_BUILD_ROOT/usr/bin + +cd $RPM_BUILD_ROOT +find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.%{name} +find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name} +find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name} + +%clean +rm -rf $RPM_BUILD_ROOT +rm -rf $RPM_BUILD_DIR/%{name}* +rm -rf ../file.list.%{name} + +%files -f ../file.list.%{name} +%doc ChangeLog README + +%changelog +* Fri Aug 03 2007 Carsten Schoene <cs@linux-administrator.com> +- initial spec for khtml2png - version 2.6.7a + +