File libmms.spec of Package LibMMS

# Copyright (c) 2006-2007 oc2pus
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments to toni@links2linux.de

# norootforbuild

Summary:		Library for parsing Microsoft Media Streaming protocol
Name:			libmms0
Version:		0.4
Release:		0.2
License:		LGPL
Group:			System/Libraries
Source:			http://prdownloads.sourceforge.net/libmms/libmms-%{version}.tar.gz
BuildRoot:		%{_tmppath}/%{name}-%{PACKAGE_VERSION}-root
URL:			http://libmms.sf.net
BuildRequires:		glib2-devel
Provides:		libmms = 0.3
Obsoletes:		libmms < 0.3

%description
LibMMS is common library for parsing mms:// and mmsh:// type network
streams.

These are commonly used to stream Windows Media Video content over
the web.
LibMMS itself is only for receiving MMS stream, it doesn't handle
sending at all. If you need streaming functionality, look for other
protocol, such as RT(S)P. MMS is legacy thing, being closed with
no specs and abandoned even by its creator, the Microsoft Corp.

%package -n libmms-devel
Summary:	Libraries and includefiles for developing with libmms
Group:	 	Development/Languages/C and C++
Requires:	libmms0 = %{version}

%description -n libmms-devel
This paackage provides the necessary development headers and
libraries to allow you to devel with libmms.

%debug_package

%prep
%setup -q -n libmms-%{version}
%{?suse_update_config:%{suse_update_config -f}}

%__sed -i -e 's|*this|*instance|g' \
	src/*.h

%build
%configure
%__make %{?jobs:-j%{jobs}}

%install
%makeinstall

%clean
[ -d %{buildroot} -a "%{buildroot}" != "" ] && %__rm -rf %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-, root, root)
%doc AUTHORS COPYING.LIB ChangeLog README TODO README.LICENSE
%{_libdir}/libmms.so.*

%files -n libmms-devel
%defattr(-, root, root)
%{_includedir}/libmms/
%{_libdir}/libmms.a
%{_libdir}/libmms.la
%{_libdir}/libmms.so
%{_libdir}/pkgconfig/libmms.pc

%changelog
* Fri Dec 28 2006 Toni Graffy <toni@links2linux.de> - 0.4-0.pm.2
- renamed the formal parameters in the headers from *this to *instance
  as this confuses some gcc versions ...
* Sun Dec 16 2006 Toni Graffy <toni@links2linux.de> - 0.4-0.pm.1
- update to 0.4
- changed package layout according Shared Library Packaging Policy
* Mon Nov 27 2006 Toni Graffy <toni@links2linux.de> - 0.3-0.pm.1
- initial release 0.3
openSUSE Build Service is sponsored by