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