2011-08-26 18:13:44 +02:00
|
|
|
#
|
|
|
|
# spec file for package libmms
|
|
|
|
#
|
2017-02-13 11:08:44 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-08-26 18:13:44 +02:00
|
|
|
#
|
|
|
|
# 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.
|
2011-09-20 11:02:53 +02:00
|
|
|
|
2011-08-26 18:13:44 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2011-09-20 11:02:53 +02:00
|
|
|
|
2012-11-25 02:51:01 +01:00
|
|
|
|
2011-08-26 18:13:44 +02:00
|
|
|
%define soname 0
|
2011-09-20 11:02:53 +02:00
|
|
|
|
2011-08-26 18:13:44 +02:00
|
|
|
Name: libmms
|
2014-04-24 12:30:07 +02:00
|
|
|
Version: 0.6.4
|
2011-08-26 18:13:44 +02:00
|
|
|
Release: 0
|
2011-09-16 11:52:31 +02:00
|
|
|
# NOTE: there are files from the xine project with GPL headers in the source,
|
|
|
|
# but these were re-licensed to LGPLv2+ with the explicit permission of all
|
|
|
|
# contributors.
|
|
|
|
# Please see the README.LICENSE file and the xine mailing list discussions in
|
|
|
|
# libmms-relicensing-1.txt and libmms-relicensing-2.txt
|
|
|
|
|
2011-08-26 18:13:44 +02:00
|
|
|
Summary: MMS stream protocol library
|
2012-11-25 02:51:01 +01:00
|
|
|
License: LGPL-2.1+
|
2011-08-26 18:13:44 +02:00
|
|
|
Group: System/Libraries
|
2012-11-25 02:51:01 +01:00
|
|
|
Url: http://www.sf.net/projects/%{name}
|
2014-04-24 12:30:07 +02:00
|
|
|
Source0: %{name}-%{version}.tar.gz
|
2011-09-16 11:52:31 +02:00
|
|
|
Source1: libmms-relicensing-1.txt
|
|
|
|
Source2: libmms-relicensing-2.txt
|
2012-03-05 15:33:00 +01:00
|
|
|
Source3: baselibs.conf
|
2015-12-16 10:58:21 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-08-26 18:13:44 +02:00
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
2012-11-25 02:51:01 +01:00
|
|
|
Patch0: libmms-pkgconfig.patch
|
2013-03-26 12:56:45 +01:00
|
|
|
Patch1: libmms-nognetexport.patch
|
2011-09-20 11:02:53 +02:00
|
|
|
|
2011-08-26 18:13:44 +02:00
|
|
|
%description
|
|
|
|
LibMMS is a 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.
|
2011-09-20 11:02:53 +02:00
|
|
|
|
2011-08-26 18:13:44 +02:00
|
|
|
%package -n %{name}%{soname}
|
|
|
|
Summary: MMS stream protocol library
|
|
|
|
Group: System/Libraries
|
2011-09-20 11:02:53 +02:00
|
|
|
|
2011-08-26 18:13:44 +02:00
|
|
|
%description -n %{name}%{soname}
|
|
|
|
LibMMS is a 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.
|
2011-09-20 11:02:53 +02:00
|
|
|
|
2011-08-26 18:13:44 +02:00
|
|
|
%package -n %{name}-devel
|
|
|
|
Summary: Libmms development files
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name}%{soname} = %{version}
|
2012-11-25 02:51:01 +01:00
|
|
|
Requires: glibc-devel
|
2011-09-20 11:02:53 +02:00
|
|
|
|
2011-08-26 18:13:44 +02:00
|
|
|
%description -n %{name}-devel
|
|
|
|
Headers and libraries to program against %{name}
|
2011-09-20 11:02:53 +02:00
|
|
|
|
2011-08-26 18:13:44 +02:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2012-11-25 02:51:01 +01:00
|
|
|
%patch0
|
2013-03-26 12:56:45 +01:00
|
|
|
%patch1
|
2011-09-20 11:02:53 +02:00
|
|
|
|
2011-08-26 18:13:44 +02:00
|
|
|
%build
|
|
|
|
%configure --disable-static
|
|
|
|
%{__make} %{?_smp_mflags}
|
2011-09-20 11:02:53 +02:00
|
|
|
|
2011-08-26 18:13:44 +02:00
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
%{__rm} -f '%{buildroot}%{_libdir}/%{name}.la'
|
2011-09-20 11:02:53 +02:00
|
|
|
install -d -m 755 %{buildroot}%{_docdir}/%{name}%{soname}
|
2011-09-16 11:52:31 +02:00
|
|
|
install -m 644 %{SOURCE1} %{buildroot}%{_docdir}/%{name}%{soname}
|
|
|
|
install -m 644 %{SOURCE2} %{buildroot}%{_docdir}/%{name}%{soname}
|
2011-09-20 11:02:53 +02:00
|
|
|
|
2011-09-16 11:52:31 +02:00
|
|
|
%post -n %{name}%{soname} -p /sbin/ldconfig
|
2011-08-26 18:13:44 +02:00
|
|
|
%postun -n %{name}%{soname} -p /sbin/ldconfig
|
2011-09-20 11:02:53 +02:00
|
|
|
|
2011-08-26 18:13:44 +02:00
|
|
|
%files -n %{name}%{soname}
|
|
|
|
%defattr(0644, root, root, 0755)
|
|
|
|
%doc AUTHORS ChangeLog COPYING.LIB README README.LICENSE
|
2017-02-13 11:08:44 +01:00
|
|
|
%doc %{_docdir}/%{name}%{soname}
|
2011-08-26 18:13:44 +02:00
|
|
|
%{_libdir}/%{name}.so.%{soname}*
|
2011-09-20 11:02:53 +02:00
|
|
|
|
2011-08-26 18:13:44 +02:00
|
|
|
%files -n %{name}-devel
|
|
|
|
%defattr(0644, root, root, 0755)
|
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
%{_includedir}/%{name}
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
2011-09-20 11:02:53 +02:00
|
|
|
|
2011-08-26 18:13:44 +02:00
|
|
|
%changelog
|