File libdvbsi++.spec of Package libdvbsi++

# spec file for package libdvbsi++
#
# Copyright (c) 2012 B1 Systems GmbH, Vohburg, 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.

# norootforbuild

%global _lto_cflags %{?_lto_cflags} -ffat-lto-objects
# factory now trims from 2018-01-01, which is too little info
%global _changelog_trimtime 0

Name:           libdvbsi++1
Version:        0.3.9
Release:        0
License:        LGPL-2.1
Summary:        C++ library for parsing DVB Service Information
Url:            http://www.saftware.de/
#Source:        http://www.saftware.de/libdvbsi++/libdvbsi++-${version}.tar.bz2
Source:         libdvbsi-%{version}.tar.xz
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  gcc-c++ pkg-config

%description
libdvbsi++ is an open source C++ library for parsing DVB Service Information and MPEG-2 Program Specific Information.

%package -n libdvbsi++-devel
Summary:        C++ library for parsing DVB Service Information
Group:          Development/Libraries/Other
Requires:       %name >= %version
%description -n libdvbsi++-devel
libdvbsi++ is an open source C++ library for parsing DVB Service Information and MPEG-2 Program Specific Information.

%prep
%autosetup -p1 -n libdvbsi-%{version}

%build
./autogen.sh
%configure
make %{?_smp_mflags}

%install
%make_install
rm %{buildroot}/%{_libdir}/libdvbsi++.la

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%{_libdir}/libdvbsi++.so.1
%{_libdir}/libdvbsi++.so.1.0.0
%doc README COPYING

%files -n libdvbsi++-devel
%defattr(-,root,root)
%{_libdir}/libdvbsi++.a
%{_libdir}/libdvbsi++.so
%{_libdir}/pkgconfig/libdvbsi++.pc
/usr/include/dvbsi++

%changelog
openSUSE Build Service is sponsored by