File dillo.spec of Package dillo

#
# spec file for package dillo (Version  2.2)
#
# Copyright (c) 2008 SOAD Project, Russia.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bug fixes or comments to the Maintainer: sda00@himki.net
#

# norootforbuild

Name:		dillo
Version:	2.2
Release:	SOAD.1
License:	GPL
URL:		http://www.dillo.org/
#Provides:	%{name} dillo
BuildRoot:	/tmp/%{name}%{version}build
Source: 	%{name}-%{version}.tar.bz2
Source1: 	dillo.desktop
Packager: 	sda00 <sda00@himki.net>
Group:		Utilities/Network/Web Browser
Summary: 	Dillo is a multi-platform  graphical web browser known for its speed and small size

# core
BuildRequires:	gcc-c++ gcc iputils cvs m4 autoconf automake libtool glibc-devel glibc glib2-devel glib2 zlib-devel zlib libjpeg-devel libjpeg doxygen  fontconfig-devel fontconfig update-desktop-files
# X env
BuildRequires:	xorg-x11-devel xorg-x11-util-devel  xorg-x11-libX11-devel  xorg-x11-fonts-devel xorg-x11-libXfixes-devel xorg-x11-server-extra xorg-x11-server  xorg-x11 xorg-x11-libXpm-devel xorg-x11-libXpm dbus-1-x11 xkeyboard-config 
# functional extensions
BuildRequires:	gettext-devel gettext imlib2-devel imlib2 pkg-config libpng libpng-devel libxml2-devel libxml2 libxslt-devel libxslt  giflib-devel giflib pango pango-devel freetype2-devel freetype2 libtiff-devel tiff  librsvg-devel librsvg gtk2 gtk2-devel ncurses-devel ncurses cairo-devel cairo libcurl-devel curl openssl-devel openssl libnotify xdg-utils  xdg-menu libnotify notification-daemon pam pam-devel pam-modules pam-config  fdupes  libcurl-devel curl alsa-devel alsa alsa-tools-devel alsa-tools esound-devel fltk2 fltk2-devel
# BuildRequires:    libsvg-devel libsvg libsvg-cairo libsvg-cairo-devel

#BuildRequires:	xine-devel xine-lib 
BuildRequires:	dbus-1-devel 

%description
What is Dillo?

    * Dillo is a multi-platform graphical web browser known for its speed and small size.
    * Dillo is written in C and C++.
    * Dillo is based on FLTK2, the Fast Light ToolKit.
    * Dillo is free software made available under the terms of the GNU General Public License (GPL3).
    * Dillo strives to be friendly both to users and developers.

Project Objectives:

    * The democratization of internet information access.
    * Personal security and privacy.
    * High software efficiency.

    So, you have been using dillo for a while, but have you read about the project objectives? Please give it some time, you will find some interesting issues there! 

Authors:
The full list is here:
http://www.dillo.org/D_authors.html

You can always update your dillo to the current state just by rebuilding the .spec file:
>rpmbuild -bb dillo.spec
or by rebuilding the .src.rpm file itself:
>rpmbuild --rebuild dillo*.src.rpm
The new compiled .rpm will be available in /usr/src/packages/RPM/_your_PC_type/
Prepared by SOAD project.

%prep
rm -rf "$RPM_BUILD_ROOT"
#%setup 
%{?suse_update_config:%{suse_update_config -f}} 

%build
%install

## Function declaration

build_without_uninstall ()
{

%configure  --enable-fsstd --enable-sound --enable-pango --enable-ssl
make || return 1
make DESTDIR=$RPM_BUILD_ROOT install || return 1

mkdir -p $RPM_BUILD_ROOT/usr/share/applications
cp $RPM_SOURCE_DIR/dillo.desktop $RPM_BUILD_ROOT/usr/share/applications/dillo.desktop

mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
cp $RPM_SOURCE_DIR/Dillo128.png  $RPM_BUILD_ROOT%{_datadir}/pixmaps/
cp $RPM_SOURCE_DIR/BlueIcon128.png  $RPM_BUILD_ROOT%{_datadir}/pixmaps/

find $RPM_BUILD_ROOT/ -type f -iname '*.la'  -exec rm {} \;
find $RPM_BUILD_ROOT/ -type f -iname '*.a'  -exec rm {} \;
## find $RPM_BUILD_ROOT/ -type f -perm 755  -exec strip -s {} \;

cd ../
%suse_update_desktop_file -r dillo Network WebBrowser

}

## Getting the sources
if  [ "`ping dillo.org -c 10 2>&1 | grep icmp_seq`" != "" ] ; then 

cvs -z3 -d:pserver:anonymous@auriga.wearlab.de:/sfhome/cvs/dillo co dillo2
cd dillo2
chmod +x ./autogen.sh
./autogen.sh 

else

tar xfm $RPM_SOURCE_DIR/%{name}-%{version}.tar.bz2
cd %{name}-%{version}
fi

## Build all components
build_without_uninstall

%clean
rm -rf "$RPM_BUILD_ROOT"
# $RPM_SOURCE_DIR

#%pre

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
/etc/*
%{_bindir}/*
%dir %{_libdir}/dillo
%{_libdir}/dillo/*
%{_datadir}/applications/*
%{_datadir}/pixmaps/*
%{_mandir}/man1/*
%{_datadir}/doc/%{name}

%changelog
* Tue Oct  14 2008  first build for OpenSUSE <sda00@himki.net>
- added online rebuild capability of .src.rpm or .spec files

openSUSE Build Service is sponsored by