Blame a52dec.spec

Bernhard M. Wiedemann fdf118
#
Bernhard M. Wiedemann fdf118
# spec file for package a52dec
Bernhard M. Wiedemann fdf118
#
57b705
# Copyright (c) 2023 SUSE LLC
Bernhard M. Wiedemann fdf118
#
Bernhard M. Wiedemann fdf118
# All modifications and additions to the file contributed by third parties
Bernhard M. Wiedemann fdf118
# remain the property of their copyright owners, unless otherwise agreed
Bernhard M. Wiedemann fdf118
# upon. The license for this file, and modifications and additions to the
Bernhard M. Wiedemann fdf118
# file, is the same license as for the pristine package itself (unless the
Bernhard M. Wiedemann fdf118
# license for the pristine package is not an Open Source License, in which
Bernhard M. Wiedemann fdf118
# case the license is the MIT License). An "Open Source License" is a
Bernhard M. Wiedemann fdf118
# license that conforms to the Open Source Definition (Version 1.9)
Bernhard M. Wiedemann fdf118
# published by the Open Source Initiative.
Bernhard M. Wiedemann fdf118
Bernhard M. Wiedemann fdf118
# Please submit bugfixes or comments via https://bugs.opensuse.org/
Bernhard M. Wiedemann fdf118
#
Bernhard M. Wiedemann fdf118
Bernhard M. Wiedemann fdf118
Bernhard M. Wiedemann fdf118
%define lib       liba52
57b705
%define libname   %{lib}-0
57b705
Bernhard M. Wiedemann fdf118
Name:           a52dec
57b705
Version:        0.8.0
Bernhard M. Wiedemann fdf118
Release:        0
Bernhard M. Wiedemann fdf118
Summary:        ATSC A/52 stream decoder library
Bernhard M. Wiedemann fdf118
License:        GPL-2.0-or-later
57b705
URL:            https://git.adelielinux.org/community/a52dec/
57b705
Source:         https://distfiles.adelielinux.org/source/a52dec/%{name}-%{version}.tar.gz
Bernhard M. Wiedemann fdf118
Source2:        baselibs.conf
Bernhard M. Wiedemann fdf118
BuildRequires:  libtool
Bernhard M. Wiedemann fdf118
BuildRequires:  pkgconfig
Bernhard M. Wiedemann fdf118
Requires:       %{libname} = %{version}
Bernhard M. Wiedemann fdf118
Provides:       a52 = %{version}
Bernhard M. Wiedemann fdf118
Obsoletes:      a52 < %{version}
Bernhard M. Wiedemann fdf118
Bernhard M. Wiedemann fdf118
%description
Bernhard M. Wiedemann fdf118
liba52 is a library for decoding ATSC A/52 streams.
Bernhard M. Wiedemann fdf118
Bernhard M. Wiedemann fdf118
%package -n %{libname}
Bernhard M. Wiedemann fdf118
Summary:        ATSC A/52 stream decoder library
Bernhard M. Wiedemann fdf118
Provides:       %{lib} = %{version}
Bernhard M. Wiedemann fdf118
Obsoletes:      %{lib} < %{version}
Bernhard M. Wiedemann fdf118
Provides:       liba52dec0 = %{version}
Bernhard M. Wiedemann fdf118
Obsoletes:      liba52dec0 < %{version}
Bernhard M. Wiedemann fdf118
Bernhard M. Wiedemann fdf118
%description -n %{libname}
Bernhard M. Wiedemann fdf118
liba52 is a library for decoding ATSC A/52 streams.
Bernhard M. Wiedemann fdf118
Shared library part of a52dec.
Bernhard M. Wiedemann fdf118
Bernhard M. Wiedemann fdf118
%package -n %{lib}-devel
Bernhard M. Wiedemann fdf118
Summary:        Header files for the a52dec library
Bernhard M. Wiedemann fdf118
Requires:       %{libname} = %{version}
Bernhard M. Wiedemann fdf118
Provides:       a52dec-devel = %{version}
Bernhard M. Wiedemann fdf118
Obsoletes:      a52dec-devel < %{version}
Bernhard M. Wiedemann fdf118
Provides:       liba52dec-devel = %{version}
Bernhard M. Wiedemann fdf118
Obsoletes:      liba52dec-devel < %{version}
Bernhard M. Wiedemann fdf118
Bernhard M. Wiedemann fdf118
%description -n %{lib}-devel
Bernhard M. Wiedemann fdf118
Header files and static library for the a52dec library.
Bernhard M. Wiedemann fdf118
Install this package if you want to compile programs using the library.
Bernhard M. Wiedemann fdf118
Bernhard M. Wiedemann fdf118
%prep
57b705
%autosetup -p1
Bernhard M. Wiedemann fdf118
Bernhard M. Wiedemann fdf118
%build
Bernhard M. Wiedemann fdf118
autoreconf -fi
57b705
%configure \
57b705
	--disable-static \
57b705
	--enable-shared \
57b705
	%{nil}
57b705
%make_build
Bernhard M. Wiedemann fdf118
Bernhard M. Wiedemann fdf118
%install
Bernhard M. Wiedemann fdf118
%make_install
Bernhard M. Wiedemann fdf118
find %{buildroot} -type f -name "*.la" -delete -print
Bernhard M. Wiedemann fdf118
57b705
%ldconfig_scriptlets -n %{libname}
Bernhard M. Wiedemann fdf118
Bernhard M. Wiedemann fdf118
%files
57b705
%license COPYING
57b705
%doc README ChangeLog AUTHORS HISTORY NEWS TODO
57b705
%{_bindir}/%{name}
57b705
%{_bindir}/extract_a52
57b705
%{_mandir}/man1/%{name}.1%{?ext_man}
57b705
%{_mandir}/man1/extract_a52.1%{?ext_man}
Bernhard M. Wiedemann fdf118
Bernhard M. Wiedemann fdf118
%files -n %{libname}
57b705
%{_libdir}/%{lib}.so.*
Bernhard M. Wiedemann fdf118
Bernhard M. Wiedemann fdf118
%files -n %{lib}-devel
57b705
%{_includedir}/%{name}/
57b705
%{_libdir}/%{lib}.so
57b705
%{_libdir}/pkgconfig/%{lib}.pc
Bernhard M. Wiedemann fdf118
Bernhard M. Wiedemann fdf118
%changelog