File libdvbpsi.spec of Package libdvbpsi

#
# spec file for package libdvbpsi
#
# 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:           libdvbpsi
Version:        1.1.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/pub/%{name}/%{version}/%{name}-%{version}.tar.bz2
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 libdvbpsi9
Summary:        Library for Decoding and Generating MPEG TS and DVB PSI Tables
Group:          System/Libraries

%description -n libdvbpsi9
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:       libdvbpsi9 = %{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

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

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

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

%post -n libdvbpsi9 -p /sbin/ldconfig

%postun -n libdvbpsi9 -p /sbin/ldconfig

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

%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