File gnet.spec of Package gnet

#
# spec file for package gnet
#
# 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:           gnet
BuildRequires:  gtk-doc
BuildRequires:  indent
BuildRequires:  intltool
BuildRequires:  libidl-devel
BuildRequires:  librsvg-devel
BuildRequires:  libtool
BuildRequires:  libwnck-devel
BuildRequires:  libxslt-devel
BuildRequires:  perl-XML-Parser
BuildRequires:  python-devel
BuildRequires:  python-xml
BuildRequires:  scrollkeeper
Version:        2.0.8
Release:        0
Url:            http://www.gnetlibrary.org/
Summary:        Network Library for GLib-Based Programs
License:        LGPL-2.1+
Group:          System/Libraries
Source:         http://download.gnome.org/sources/gnet/2.0/gnet-%{version}.tar.bz2
Provides:       libgnet-2_0-0 = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
GNet is a simple network library. It is written in C, object-oriented,
and built upon GLib. It is intended to be easy to use and port.



Authors:
--------
    David Helder       <dhelder@umich.edu>         
    Xavier Nicolovici  <nicolovi@club-internet.fr>
    Soeren Sandmann    <sandmann@daimi.au.dk>     
    Jacques Fortier    <jfortier@seul.org>       
    Andrew Lanoix      <alanoix@umich.edu>          
    Eric Cronin        <ecronin@umich.edu>          
    David Bolcsfoldi   <david.bolcsfoldi@telia.com>
    Marius Eriksen     <marius@umich.edu>           
    Mark Ferlatte      <ferlatte@cryptio.net> 

%package devel
Summary:        Network library for GLib based programs
Group:          Development/Libraries/X11
Requires:       glib2-devel
Requires:       gnet = %{version}

%description devel
GNet is a simple network library. It is written in C, object-oriented,
and built upon GLib. It is intended to be easy to use and port.



Authors:
--------
    David Helder       <dhelder@umich.edu>
    Xavier Nicolovici  <nicolovi@club-internet.fr>
    Soeren Sandmann    <sandmann@daimi.au.dk>
    Jacques Fortier    <jfortier@seul.org>
    Andrew Lanoix      <alanoix@umich.edu>
    Eric Cronin        <ecronin@umich.edu>
    David Bolcsfoldi   <david.bolcsfoldi@telia.com>
    Marius Eriksen     <marius@umich.edu>
    Mark Ferlatte      <ferlatte@cryptio.net>

%package doc
Summary:        Documentation of the Network Library for GLib-Based Programs
Group:          System/Libraries
Requires:       libgnet-2_0-0 = %{version}

%description doc
This package contains additional documentation of the GNet library.



Authors:
--------
    David Helder       <dhelder@umich.edu>         
    Xavier Nicolovici  <nicolovi@club-internet.fr>
    Soeren Sandmann    <sandmann@daimi.au.dk>     
    Jacques Fortier    <jfortier@seul.org>       
    Andrew Lanoix      <alanoix@umich.edu>          
    Eric Cronin        <ecronin@umich.edu>          
    David Bolcsfoldi   <david.bolcsfoldi@telia.com>
    Marius Eriksen     <marius@umich.edu>           
    Mark Ferlatte      <ferlatte@cryptio.net> 

%prep
%setup -q

%build
autoreconf -f -i
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%configure\
	--disable-static
make %{?jobs:-j%jobs}

%install
make DESTDIR=$RPM_BUILD_ROOT install

%clean
rm -rf $RPM_BUILD_ROOT

%files   
%defattr(-,root,root)  
%{_prefix}/%{_lib}/lib*.so.*  

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig 

%files devel
%defattr(-,root,root)
%{_includedir}/*
%{_datadir}/aclocal/*.m4
%{_libdir}/*.so
%{_libdir}/*.*a
%{_libdir}/gnet-2.0
%{_libdir}/pkgconfig/*.pc

%files doc
%defattr(-,root,root)
%{_datadir}/gtk-doc/html/*
%doc README ChangeLog AUTHORS TODO COPYING

%changelog