Blame a52dec.spec

Adrian Schröter 3ab8a5
#
Adrian Schröter 3ab8a5
# spec file for package a52dec
Adrian Schröter 3ab8a5
#
Adrian Schröter 3ab8a5
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
Adrian Schröter 3ab8a5
#
Adrian Schröter 3ab8a5
# All modifications and additions to the file contributed by third parties
Adrian Schröter 3ab8a5
# remain the property of their copyright owners, unless otherwise agreed
Adrian Schröter 3ab8a5
# upon. The license for this file, and modifications and additions to the
Adrian Schröter 3ab8a5
# file, is the same license as for the pristine package itself (unless the
Adrian Schröter 3ab8a5
# license for the pristine package is not an Open Source License, in which
Adrian Schröter 3ab8a5
# case the license is the MIT License). An "Open Source License" is a
Adrian Schröter 3ab8a5
# license that conforms to the Open Source Definition (Version 1.9)
Adrian Schröter 3ab8a5
# published by the Open Source Initiative.
Adrian Schröter 3ab8a5
Adrian Schröter 3ab8a5
# Please submit bugfixes or comments via https://bugs.opensuse.org/
Adrian Schröter 3ab8a5
#
Adrian Schröter 3ab8a5
Adrian Schröter 3ab8a5
Adrian Schröter 3ab8a5
%define major     0
Adrian Schröter 3ab8a5
%define lib       liba52
Adrian Schröter 3ab8a5
%define libname   %{lib}-%{major}
Adrian Schröter 3ab8a5
%define mandir    %{_mandir}
Adrian Schröter 3ab8a5
Name:           a52dec
Adrian Schröter 3ab8a5
Version:        0.7.5+svn613
Adrian Schröter 3ab8a5
Release:        0
Adrian Schröter 3ab8a5
Summary:        ATSC A/52 stream decoder library
Adrian Schröter 3ab8a5
License:        GPL-2.0-or-later
Adrian Schröter 3ab8a5
Group:          Productivity/Multimedia/Sound/Utilities
Adrian Schröter 3ab8a5
Url:            http://liba52.sourceforge.net/
Adrian Schröter 3ab8a5
Source:         %{name}-%{version}.tar.gz
Adrian Schröter 3ab8a5
Source2:        baselibs.conf
Adrian Schröter 3ab8a5
Patch:          altivec.patch
Adrian Schröter 3ab8a5
BuildRequires:  libtool
Adrian Schröter 3ab8a5
BuildRequires:  pkgconfig
Adrian Schröter 3ab8a5
Requires:       %{libname} = %{version}
Adrian Schröter 3ab8a5
Provides:       a52 = %{version}
Adrian Schröter 3ab8a5
Obsoletes:      a52 < %{version}
Adrian Schröter 3ab8a5
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Adrian Schröter 3ab8a5
Adrian Schröter 3ab8a5
%description
Adrian Schröter 3ab8a5
liba52 is a library for decoding ATSC A/52 streams.
Adrian Schröter 3ab8a5
Adrian Schröter 3ab8a5
%package -n %{libname}
Adrian Schröter 3ab8a5
Summary:        ATSC A/52 stream decoder library
Adrian Schröter 3ab8a5
Group:          System/Libraries
Adrian Schröter 3ab8a5
Provides:       %{lib} = %{version}
Adrian Schröter 3ab8a5
Obsoletes:      %{lib} < %{version}
Adrian Schröter 3ab8a5
Provides:       liba52dec0 = %{version}
Adrian Schröter 3ab8a5
Obsoletes:      liba52dec0 < %{version}
Adrian Schröter 3ab8a5
Adrian Schröter 3ab8a5
%description -n %{libname}
Adrian Schröter 3ab8a5
liba52 is a library for decoding ATSC A/52 streams.
Adrian Schröter 3ab8a5
Shared library part of a52dec.
Adrian Schröter 3ab8a5
Adrian Schröter 3ab8a5
%package -n %{lib}-devel
Adrian Schröter 3ab8a5
Summary:        Header files for the a52dec library
Adrian Schröter 3ab8a5
Group:          Development/Libraries/C and C++
Adrian Schröter 3ab8a5
Requires:       %{libname} = %{version}
Adrian Schröter 3ab8a5
Provides:       a52dec-devel = %{version}
Adrian Schröter 3ab8a5
Obsoletes:      a52dec-devel < %{version}
Adrian Schröter 3ab8a5
Provides:       liba52dec-devel = %{version}
Adrian Schröter 3ab8a5
Obsoletes:      liba52dec-devel < %{version}
Adrian Schröter 3ab8a5
Adrian Schröter 3ab8a5
%description -n %{lib}-devel
Adrian Schröter 3ab8a5
Header files and static library for the a52dec library.
Adrian Schröter 3ab8a5
Install this package if you want to compile programs using the library.
Adrian Schröter 3ab8a5
Adrian Schröter 3ab8a5
%prep
Adrian Schröter 3ab8a5
%setup -q
Adrian Schröter 3ab8a5
%patch -p1
Adrian Schröter 3ab8a5
Adrian Schröter 3ab8a5
%build
Adrian Schröter 3ab8a5
autoreconf -fi
Adrian Schröter 3ab8a5
%configure --disable-static --enable-shared
Adrian Schröter 3ab8a5
make %{?_smp_mflags}
Adrian Schröter 3ab8a5
Adrian Schröter 3ab8a5
%install
Adrian Schröter 3ab8a5
%make_install
Adrian Schröter 3ab8a5
find %{buildroot} -type f -name "*.la" -delete -print
Adrian Schröter 3ab8a5
Adrian Schröter 3ab8a5
%post -n %{libname} -p /sbin/ldconfig
Adrian Schröter 3ab8a5
%postun -n %{libname} -p /sbin/ldconfig
Adrian Schröter 3ab8a5
Adrian Schröter 3ab8a5
%files
Adrian Schröter 3ab8a5
%defattr(-, root, root)
Adrian Schröter 3ab8a5
%doc README ChangeLog AUTHORS HISTORY NEWS TODO COPYING
Adrian Schröter 3ab8a5
%{_bindir}/*
Adrian Schröter 3ab8a5
%{mandir}/man1/*
Adrian Schröter 3ab8a5
Adrian Schröter 3ab8a5
%files -n %{libname}
Adrian Schröter 3ab8a5
%defattr(0644,root,root)
Adrian Schröter 3ab8a5
%{_libdir}/*.so.*
Adrian Schröter 3ab8a5
Adrian Schröter 3ab8a5
%files -n %{lib}-devel
Adrian Schröter 3ab8a5
%defattr(-,root,root)
Adrian Schröter 3ab8a5
%{_includedir}/a52dec/
Adrian Schröter 3ab8a5
%{_libdir}/*.so
Adrian Schröter 3ab8a5
%{_libdir}/pkgconfig/liba52.pc
Adrian Schröter 3ab8a5
Adrian Schröter 3ab8a5
%changelog