File vale.spec of Package vale

#
# spec file for package vale (Version 0.0.2)
#
# Copyright (c) 2010 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/
#

# norootforbuild

Name:           vale
%define libname   lib%{name}
%define libsoname %{libname}0

Summary:	Steve's media streaming library
Version:        0.0.2
Release:        0
License:        GPL
Group:          System/Libraries
URL:            http://www.soft-switch.org/downloads/vale/
Source0:        %{name}-%{version}.tar.bz2
Source1:        baselibs.conf
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  gcc-c++

%description
Vale is a library for handling media streams over IP.

%package -n %{libsoname}
Summary:        Steve's media streaming shared lib
Group:          System/Libraries

%description -n %{libsoname}
Vale is a library for handling media streams over IP.

%package devel
Group:          Development/Libraries/C and C++
Summary:        Steve's media streaming library's development headers
Requires:       %{libsoname} = %{version} glibc-devel

%description devel
This package includes the header files and libraries needed for
developing programs using vale.


%prep
%setup -q

%build
#%{?suse_update_config:%suse_update_config}
#autoreconf --force --install
export CFLAGS="%optflags -Wno-unused -Wno-sign-compare -D_GNU_SOURCE"
%configure --disable-static
%{__make} %{?jobs:-j%{jobs}}

%install
%makeinstall

%post -n %{libsoname} -p /sbin/ldconfig

%postun -n %{libsoname} -p /sbin/ldconfig

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%files -n %{libsoname}
%defattr(-,root,root,-)
%doc COPYING
#%{_libdir}/lib*
%{_libdir}/*.so.*

%files devel
%defattr (-, root, root)
# zero-length NEWS README ChangeLog
#%doc INSTALL AUTHORS NEWS README ChangeLog
%doc INSTALL AUTHORS
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/*.la

%changelog

openSUSE Build Service is sponsored by