File libdvbpsi.spec of Package libdvbpsi

#
# spec file for package libdvbpsi
#
# Copyright (c) 2015 SUSE LINUX 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/
#


%define         soname 10

Name:           libdvbpsi
Version:        1.3.0
Release:        0
Summary:        Library for Decoding and Generating MPEG TS and DVB PSI Tables
License:        LGPL-2.1+
Group:          Productivity/Multimedia/Video/Editors and Convertors
Url:            http://www.videolan.org/developers/libdvbpsi.html
Source:         http://download.videolan.org/%{name}/%{version}/%{name}-%{version}.tar.bz2
Source99:       baselibs.conf
Patch0:         libdvbpsi-gcc5-fixes.patch
BuildRequires:  pkg-config
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
libdvbpsi is a simple library designed for decoding and generating
   MPEG TS and DVB PSI tables. Current features: * Program
   Association Table (PAT), decoder and generator.

* Program Map Table (PMT), decoder and generator.

* All MPEG 2 descriptors, decoders and generators.

%package -n libdvbpsi%{soname}
Summary:        Library for Decoding and Generating MPEG TS and DVB PSI Tables
Group:          System/Libraries

%description -n libdvbpsi%{soname}
libdvbpsi is a simple library designed for decoding and generating
   MPEG TS and DVB PSI tables. Current features: * Program
   Association Table (PAT), decoder and generator.

* Program Map Table (PMT), decoder and generator.
* All MPEG 2 descriptors, decoders and generators.

%package devel
Summary:        Library for Decoding and Generation of MPEG TS and DVB PSI Tables
Group:          Development/Libraries/C and C++
Requires:       libdvbpsi%{soname} = %{version}

%description devel
libdvbpsi is a simple library designed for decoding and generation of
MPEG TS and DVB PSI tables.

Current features: * Program Association Table (PAT), decoder and
   generator.

* Program Map Table (PMT), decoder and generator.
* All MPEG 2 descriptors, decoders and generators.

%prep
%setup -q
%patch0

%build
%configure\
	--disable-static
%{__make} %{?_smp_mflags}

%install
%makeinstall
find %{buildroot}%{_libdir} -type f -name "*.la" -delete -print

%clean
%{__rm} -rf %{buildroot}

%post -n libdvbpsi%{soname} -p /sbin/ldconfig

%postun -n libdvbpsi%{soname} -p /sbin/ldconfig

%files -n libdvbpsi%{soname}
%defattr (-, root, root)
%{_libdir}/libdvbpsi.so.%{soname}
%{_libdir}/libdvbpsi.so.%{soname}.*

%files devel
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_libdir}/libdvbpsi.so
%{_includedir}/dvbpsi
%{_libdir}/pkgconfig/libdvbpsi.pc

%changelog
openSUSE Build Service is sponsored by