0d641e2
Name:           dvblast
84cd598
Version:        3.0
c52c806
Release:        4%{?dist}
0d641e2
Summary:        Simple and powerful streaming application
0d641e2
0d641e2
Group:          Applications/Multimedia
0d641e2
License:        GPLv2+
0d641e2
URL:            http://www.videolan.org/projects/dvblast.html
f76b577
Source0:        http://downloads.videolan.org/pub/videolan/dvblast/%{version}/dvblast-%{version}.tar.bz2
9198ede
Patch0:         dvblast-3.0-ldflags.patch
0d641e2
af44d6f
BuildRequires:  bitstream-devel >= 1.1
af44d6f
BuildRequires:  libev-devel
0d641e2
0d641e2
0d641e2
%description
0d641e2
DVBlast is a simple and powerful streaming application based on the
0d641e2
linux-dvb API. It opens a DVB device, tunes it, places PID filters,
0d641e2
configures a CAM module, and demultiplexes the packets to several RTP
0d641e2
outputs. It supports the new S2API of linux-dvb (compile option).
0d641e2
0d641e2
0d641e2
%prep
0d641e2
%setup -q
9198ede
#Fixed in 3.1
9198ede
%patch0 -p1
9198ede
# Don't override ours CFLAGS
9198ede
sed -i -e 's|-O3 -fomit-frame-pointer||' Makefile
4eda59d
# Prepare dvbiscovery
de0b259
sed -i -e 's|/usr/local|/usr|' extra/dvbiscovery/dvbiscovery.sh
4eda59d
install -pm 0644 extra/dvbiscovery/README README.dvbiscovery
0d641e2
0d641e2
0d641e2
0d641e2
%build
9198ede
export CFLAGS="%{optflags}"
9198ede
export LDFLAGS="%{?__global_ldflags}"
84cd598
%make_build V=1
0d641e2
0d641e2
0d641e2
%install
84cd598
%make_install PREFIX=%{_prefix}
0d641e2
4eda59d
# Add missing dvbiscovery scripts
4eda59d
mkdir -p %{buildroot}%{_datadir}/%{name}/dvbiscovery
4eda59d
install -pm 0644 extra/dvbiscovery/*.conf \
4eda59d
  %{buildroot}%{_datadir}/%{name}/dvbiscovery
c99dd1a
install -pm 0755 extra/dvbiscovery/dvbiscovery.sh %{buildroot}%{_bindir}
de0b259
0d641e2
0d641e2
0d641e2
%files
0d641e2
%doc AUTHORS COPYING NEWS README TODO
c99dd1a
%doc README.dvbiscovery
84cd598
%license COPYING
de0b259
%{_bindir}/dvbiscovery.sh
0d641e2
%{_bindir}/dvblast
0d641e2
%{_bindir}/dvblastctl
0d641e2
%{_bindir}/dvblast_mmi.sh
0d641e2
%{_mandir}/man1/dvblast.1.*
de0b259
%{_datadir}/%{name}
0d641e2
0d641e2
%changelog
c52c806
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-4
c52c806
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c52c806
2eeb2f7
* Tue Oct 04 2016 Nicolas Chauvet <kwizart@gmail.com> - 3.0-3
2eeb2f7
- Add dvbiscovery scripts
2eeb2f7
9198ede
* Tue Oct 04 2016 Nicolas Chauvet <kwizart@gmail.com> - 3.0-2
9198ede
- Backport fix for LDFLAGS from upstream
9198ede
84cd598
* Thu Sep 15 2016 Nicolas Chauvet <kwizart@gmail.com> - 3.0-1
84cd598
- Update to 3.0
84cd598
f76b577
* Thu Aug 23 2012 Nicolas Chauvet <kwizart@gmail.com> - 2.2-1
f76b577
- Update to 2.2
f76b577
0d641e2
* Mon Jan 16 2012 Nicolas Chauvet <kwizart@gmail.com> - 2.1.0-1
0d641e2
- Update to 2.1.0
0d641e2
0d641e2
* Sat Apr 24 2010 Nicolas Chauvet <kwizart@fedoraproject.org> - 1.2-1
0d641e2
- Update to 1.2
0d641e2
0d641e2
* Mon Nov 30 2009 Nicolas Chauvet <kwizart@fedoraproject.org> - 1.1-1
0d641e2
- Initial spec file
0d641e2