5fd82f
Name:           gavl
5fd82f
Version:        1.4.0
5fd82f
Release:        12%{?dist}
5fd82f
Summary:        A library for handling uncompressed audio and video data
5fd82f
5fd82f
Group:          System Environment/Libraries
5fd82f
License:        GPLv3+
5fd82f
URL:            http://gmerlin.sourceforge.net/
5fd82f
Source0:        http://downloads.sourceforge.net/gmerlin/gavl-%{version}.tar.gz
5fd82f
Patch1:         gavl-1.1.1-system_libgdither.patch
5fd82f
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
5fd82f
5fd82f
BuildRequires:  libtool
5fd82f
5fd82f
BuildRequires:  doxygen
5fd82f
5fd82f
BuildRequires:  libpng-devel >= 1.0.8
5fd82f
BuildRequires:  libgdither-devel
5fd82f
# Gavl use an internal tweaked libsamplerate version
5fd82f
# ufortunately the libsamplerate doesn't want a patch 
5fd82f
# that will break ABI
5fd82f
#BuildRequires: libsamplerate-devel
5fd82f
5fd82f
5fd82f
5fd82f
%description
5fd82f
Gavl is a library for handling and converting uncompressed audio and
5fd82f
video data. It provides datatypes for audio/video formats and standardized
5fd82f
structures to store the data. It supports converting between all formats.
5fd82f
Some conversion functions are available in multiple versions (MMX...),
5fd82f
which are selected by compile time configuration, CPU autodetection and
5fd82f
user options.
5fd82f
5fd82f
5fd82f
%package        devel
5fd82f
Summary:        Development files for %{name}
5fd82f
Group:          Development/Libraries
5fd82f
Requires:       %{name} = %{version}-%{release}
5fd82f
Requires:       pkgconfig
5fd82f
5fd82f
%description    devel
5fd82f
The %{name}-devel package contains libraries and header files for
5fd82f
developing applications that use %{name}.
5fd82f
5fd82f
5fd82f
%prep
5fd82f
%setup -q
5fd82f
%patch1 -p1 -b .gdither
5fd82f
5fd82f
#Disable buildtime cpu detection
5fd82f
sed -i -i 's/LQT_TRY_CFLAGS/dnl LQT_TRY_CFLAGS/g' configure.ac
5fd82f
sed -i -i 's/LQT_OPT_CFLAGS/dnl LQT_OPT_CFLAGS/g' configure.ac
5fd82f
5fd82f
#Regenerate build tool
5fd82f
sh autogen.sh
5fd82f
5fd82f
5fd82f
5fd82f
%build
5fd82f
%configure \
5fd82f
  --disable-static \
5fd82f
  --disable-cpu-clip \
5fd82f
  --enable-libgdither
5fd82f
5fd82f
5fd82f
make %{?_smp_mflags}
5fd82f
5fd82f
5fd82f
%install
5fd82f
rm -rf $RPM_BUILD_ROOT
5fd82f
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
5fd82f
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
5fd82f
5fd82f
# Prevent timestamps build difference
5fd82f
touch -r include/gavl/gavl.h $RPM_BUILD_ROOT%{_includedir}/gavl/gavl_version.h
5fd82f
5fd82f
5fd82f
%clean
5fd82f
rm -rf $RPM_BUILD_ROOT
5fd82f
5fd82f
5fd82f
%post -p /sbin/ldconfig
5fd82f
5fd82f
%postun -p /sbin/ldconfig
5fd82f
5fd82f
5fd82f
%files
5fd82f
%defattr(-,root,root,-)
5fd82f
%doc AUTHORS COPYING README TODO
5fd82f
%exclude %{_docdir}/gavl/apiref
5fd82f
%{_libdir}/*.so.*
5fd82f
5fd82f
%files devel
5fd82f
%defattr(-,root,root,-)
5fd82f
%doc %{_docdir}/gavl/apiref/
5fd82f
%{_includedir}/gavl/
5fd82f
%{_libdir}/*.so
5fd82f
%{_libdir}/pkgconfig/gavl.pc
5fd82f
5fd82f
5fd82f
%changelog
5fd82f
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-12
5fd82f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5fd82f
5fd82f
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-11
5fd82f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
5fd82f
5fd82f
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-10
5fd82f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
5fd82f
5fd82f
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-9
5fd82f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5fd82f
5fd82f
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-8
5fd82f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5fd82f
5fd82f
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-7
5fd82f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
5fd82f
5fd82f
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-6
5fd82f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
5fd82f
5fd82f
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-5
5fd82f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
5fd82f
5fd82f
* Mon Oct 07 2013 Nicolas Chauvet <kwizart@gmail.com> - 1.4.0-4
5fd82f
- Fix apiref bundled as %%doc in main - rhbz#1014820
5fd82f
5fd82f
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-3
5fd82f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
5fd82f
5fd82f
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-2
5fd82f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5fd82f
5fd82f
* Sat Sep 08 2012 Nicolas Chauvet <kwizart@gmail.com> - 1.4.0-1
5fd82f
- Update to 1.4.0
5fd82f
5fd82f
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-3
5fd82f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5fd82f
5fd82f
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-2
5fd82f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
5fd82f
5fd82f
* Sat Mar 26 2011 Nicolas Chauvet <kwizart@gmail.com> - 1.2.0-1
5fd82f
- update to 1.2.0
5fd82f
5fd82f
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-2
5fd82f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
5fd82f
5fd82f
* Sat May 01 2010 Nicolas Chauvet <kwizart@fedoraproject.org> - 1.1.2-1
5fd82f
- Update to 1.1.2
5fd82f
5fd82f
* Tue Oct 27 2009 kwizart < kwizart at gmail.com > - 1.1.1-1
5fd82f
- Update to 1.1.1
5fd82f
5fd82f
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-2
5fd82f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
5fd82f
5fd82f
* Tue Mar 24 2009 kwizart < kwizart at gmail.com > - 1.1.0-1
5fd82f
- Update to 1.1.0
5fd82f
- Disable buildtime CPU detection.
5fd82f
5fd82f
* Tue Jul 29 2008 kwizart < kwizart at gmail.com > - 1.0.1-1
5fd82f
- Update to 1.0.1
5fd82f
5fd82f
* Tue Jul 22 2008 kwizart < kwizart at gmail.com > - 1.0.0-2
5fd82f
- Add --enable-libgdither for system libgdither
5fd82f
- Add --enable-debug to disable LQT_OPT_CFLAGS
5fd82f
- Add -DHAVE_GAVLCONFIG_H to include gavlconfig.h when needed
5fd82f
5fd82f
* Mon May 19 2008 kwizart < kwizart at gmail.com > - 1.0.0-1
5fd82f
- Update to 1.0.0 api stable
5fd82f
5fd82f
* Mon May 19 2008 kwizart < kwizart at gmail.com > - 0.2.7-4
5fd82f
- Initial package for Fedora