mp4v2/mp4v2.spec

106 lines
3.9 KiB
RPMSpec

Name: mp4v2
Version: 4.1.5
Release: 1mamba
Summary: A library to create and modify mp4 files as defined by ISO-IEC:14496-1:2001 MPEG-4 Systems
Group: Applications/Multimedia
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://code.google.com/p/mp4v2/
Source: https://github.com/TechSmith/mp4v2/archive/Release-ThirdParty-MP4v2-%{version}.tar.gz
#Source: http://mp4v2.googlecode.com/files/mp4v2-%{version}.tar.bz2
Patch0: mp4v2-4.1.3-gcc-10.0.patch
Patch1: mp4v2-4.1.3-narrowing-cast.patch
License: MPL 1.1
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
The MP4v2 library provides an API to create and modify mp4 files as defined by ISO-IEC:14496-1:2001 MPEG-4 Systems. This file format is derived from Apple's QuickTime file format that has been used as a multimedia file format in a variety of platforms and applications. It is a very powerful and extensible format that can accommodate practically any type of media.
MP4v2 was originally bundled with mpeg4ip library, but has been moved into its own maintained library due to a combination of the cessation of support of mpeg4ip and the usefulness of this library on its own.
%package -n lib%{name}
Group: System/Libraries
Summary: A library to create and modify mp4 files as defined by ISO-IEC:14496-1:2001 MPEG-4 Systems
%description -n lib%{name}
The MP4v2 library provides an API to create and modify mp4 files as defined by ISO-IEC:14496-1:2001 MPEG-4 Systems. This file format is derived from Apple's QuickTime file format that has been used as a multimedia file format in a variety of platforms and applications. It is a very powerful and extensible format that can accommodate practically any type of media.
MP4v2 was originally bundled with mpeg4ip library, but has been moved into its own maintained library due to a combination of the cessation of support of mpeg4ip and the usefulness of this library on its own.
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q -n mp4v2-Release-ThirdParty-MP4v2-%{version}
sed -i "s,| arm-\* |,| aarch64-\* | arm-\* |," autoaux/config.sub
%patch0 -p0
%patch1 -p1
%build
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/mp4art
%{_bindir}/mp4chaps
%{_bindir}/mp4extract
%{_bindir}/mp4file
%{_bindir}/mp4info
%{_bindir}/mp4subtitle
%{_bindir}/mp4tags
%{_bindir}/mp4track
%{_bindir}/mp4trackdump
%{_mandir}/man1/mp4art.1*
%{_mandir}/man1/mp4file.1*
%{_mandir}/man1/mp4subtitle.1*
%{_mandir}/man1/mp4track.1*
%doc COPYING
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libmp4v2.so.*
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/mp4v2
%{_includedir}/mp4v2/*.h
%{_libdir}/libmp4v2.a
%{_libdir}/libmp4v2.la
%{_libdir}/libmp4v2.so
%changelog
* Sun Feb 07 2021 Automatic Build System <autodist@mambasoft.it> 4.1.5-1mamba
- automatic version update by autodist
* Tue Dec 01 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 4.1.3-1mamba
- update to 4.1.3
* Sat Mar 15 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.0-1mamba
- package created using the webbuild interface