File libdvbcsa.spec of Package libdvbcsa
#
# spec file for package libdvbcsa
#
# 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/
#
%define libdvbcsaso libdvbcsa1
Name: libdvbcsa
Summary: DVB Common Scrambling Algorithm with encryption and decryption capabilities
License: GPL-2.0
URL: http://www.videolan.org/developers/libdvbcsa.html
Version: 1.1.0
Release: 0
Source0: http://download.videolan.org/pub/videolan/libdvbcsa/%{version}/%{name}-%{version}.tar.gz
Patch1: 0001-Use-void-where-applicable.patch
Patch2: 0002-removed-use-of-deprecated-AM_CONFIG_HEADER-macro-in-.patch
Patch3: 0003-added-missing-inline-keywords.patch
Patch4: 0004-use-integer-sse2-operations-instead-of-single-precis.patch
Patch5: 0005-reduced-arrays-size-in-bitslice-stream-cipher.patch
Patch6: 0006-replaced-bytes-array-cast-by-union-in-bitslice-block.patch
Patch7: 0007-removed-BS_XOREQ-macro-from-bitslice-ops-headers.patch
Patch8: 0008-Fix-C-compilation-using-the-library.patch
Provides: %{name} = %{version}-%{release}
%description
libdvbcsa is a free implementation of the DVB Common Scrambling
Algorithm - DVB/CSA - with encryption and decryption capabilities.
%package -n %{libdvbcsaso}
Summary: DVB Common Scrambling Algorithm with encryption and decryption capabilities
Group: System/Libraries
Provides: %{libdvbcsaso} = %{version}-%{release}
%description -n %{libdvbcsaso}
libdvbcsa is a free implementation of the DVB Common Scrambling
Algorithm - DVB/CSA - with encryption and decryption capabilities.
%package -n %{name}-devel
Summary: Development files for %{name}
Group: Development/Libraries/C and C++
Requires: %{libdvbcsaso} = %{version}-%{release}
Provides: %{name}-devel = %{version}-%{release}
%description -n %{name}-devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%autosetup -p1
%build
%configure --disable-static \
%ifarch x86_64
--enable-sse2 --enable-uint64
%endif
make %{?_smp_mflags}
%install
%make_install
%post -n %{libdvbcsaso} -p /sbin/ldconfig
%postun -n %{libdvbcsaso} -p /sbin/ldconfig
%files -n %{libdvbcsaso}
%defattr(-,root,root,-)
%doc AUTHORS COPYING README
%{_libdir}/*.so.*
%files -n %{name}-devel
%defattr(-,root,root,-)
%{_includedir}/dvbcsa/
%{_libdir}/*.so
%exclude %{_libdir}/*.la
%changelog