File mp4v2.spec of Package mp4v2
#
# spec file for package mp4v2
#
# Copyright (c) 2018 SUSE LINUX 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/
#
Name: mp4v2
Version: 2.1.0
Release: 0
Summary: Collection of command line tools to handle MP4 files
License: MPL-1.1
Group: System/Libraries
Url: https://code.google.com/p/%{name}/
Source0: %{name}-%{version}.tar.xz
Patch0: %{name}-configure.patch
BuildRequires: automake
BuildRequires: dos2unix
BuildRequires: gcc-c++
BuildRequires: libtool
%define soname 2
%define libname lib%{name}-%{soname}
%define description_text MP4v2 consists of a C-library and various command-line utilities which permit creation and modification of MP4 files as defined by as defined by `ISO base media file format', document number `ISO/IEC 14496-12:2005(E)'.
%description
%{description_text}
%package -n %{libname}
Summary: Library to handle MP4 files
Group: System/Libraries
%description -n %{libname}
%{description_text}
This package provides shared libraries for %{name}.
%package -n lib%{name}-devel
Summary: Development files for lib%{name}
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
%description -n lib%{name}-devel
%{description_text}
The %{libname}-devel package contains libraries and header files for developing applications that use %{libname}.
%prep
%setup -q
%patch -P 0
%{_bindir}/dos2unix -k CHANGES.logging
%build
export CXXFLAGS="${CXXFLAGS:-%{optflags}} -std=gnu++03"
%{_bindir}/autoreconf -if
%configure --enable-silent-rules --enable-shared --disable-static
%make_build
%install
%make_install
%{__rm} -fr %{buildroot}%{_mandir}
find %{buildroot} -name '*.la' -exec %{__rm} -f {} ';'
%post -n %{libname}
/sbin/ldconfig
%postun -n %{libname}
/sbin/ldconfig
%files
%defattr(-, root, root)
%{_bindir}/*
%doc CHANGES.logging README
%license COPYING
%files -n %{libname}
%defattr(-,root,root,-)
%{_libdir}/*.so.*
%files -n lib%{name}-devel
%defattr(-,root,root,-)
%{_includedir}/%{name}
%{_libdir}/lib%{name}.so
%changelog