File libaribb24.spec of Package libaribb24

#
# spec file for package libaribb24
#
# Copyright (c) 2020 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 to lapis@ku-ten.net
#

%define _lto_cflags %{nil}
%define software_name aribb24

Name:           libaribb24
Version:        1.0.3
Release:        1
Summary:        A library for ARIB STD-B24
License:        LGPL-3.0
Group:          System/Libraries
Url:            https://github.com/masnagam/%{software_name}
Source:         %{software_name}-%{version}.tar.gz
BuildRequires:  glibc-devel
BuildRequires:  libstdc++-devel
BuildRequires:  pkg-config
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
A library for ARIB STD-B24, decoding JIS 8 bit characters and parsing MPEG-TS stream.

%package -n libaribb24-0
Summary:        A library for ARIB STD-B24
Group:          System/Libraries

%description -n libaribb24-0
A library for ARIB STD-B24, decoding JIS 8 bit characters and parsing MPEG-TS stream.

%package devel
Summary:        Development files for libaribb24, an ARIB STD-B24 library
Group:          Development/Languages/C and C++
Requires:       glibc-devel
Requires:       libaribb24-0 = %{version}

%description devel
A library for ARIB STD-B24, decoding JIS 8 bit characters and parsing MPEG-TS stream.

This subpackage holds the development headers for the library.

%package devel-static
Summary:        Static library for libaribb24
Group:          Development/Languages/C and C++
Requires:       %{name}-devel = %{version}
Provides:       %{name}-devel:%{_libdir}/libaribb24.a

%description devel-static
A library for ARIB STD-B24, decoding JIS 8 bit characters and parsing MPEG-TS stream.

This subpackage contains the static version of the library
used for development.


%prep
%setup -q -n %{software_name}-%{version}

%build
./bootstrap
%configure --without-libpng
%__make

%install
%make_install
rm -rf %{buildroot}%{_datadir}/doc/aribb24

%post -n libaribb24-0 -p /sbin/ldconfig
%postun -n libaribb24-0 -p /sbin/ldconfig

%files -n libaribb24-0
%doc README.md COPYING
%{_libdir}/libaribb24.so.0.0.*
%{_libdir}/libaribb24.so.0

%files devel
%{_includedir}/aribb24
%{_libdir}/libaribb24.so
%{_libdir}/pkgconfig/aribb24.pc

%files devel-static
%{_libdir}/libaribb24.a
%{_libdir}/libaribb24.la

%changelog
* Thu Mar 5 2020 - lapis@ku-ten.net
- Initial package.
openSUSE Build Service is sponsored by