Bug 3667 - Review request: tvheadend - a TV streaming server and DVR
Summary: Review request: tvheadend - a TV streaming server and DVR
Status: RESOLVED DUPLICATE of bug 4159
Alias: None
Product: Package Reviews
Classification: Unclassified
Component: Review Request (show other bugs)
Version: Current
Hardware: All GNU/Linux
: P5 normal
Assignee: RPM Fusion Package Review
URL:
Depends on:
Blocks: NEEDSPONSORS
  Show dependency treegraph
 
Reported: 2015-05-25 17:54 CEST by perex
Modified: 2017-09-01 12:32 CEST (History)
5 users (show)

See Also:
namespace:


Attachments
Initial spec file. (3.14 KB, text/x-rpm-spec)
2015-05-25 17:54 CEST, perex
Details
Updated spec file for review... (3.14 KB, text/x-rpm-spec)
2015-05-28 15:10 CEST, perex
Details
Updated spec file for review (v4.0.3) (3.12 KB, text/x-rpm-spec)
2015-05-28 15:12 CEST, perex
Details

Note You need to log in before you can comment on or make changes to this bug.
Description perex 2015-05-25 17:54:14 CEST
Created attachment 1438 [details]
Initial spec file.

Spec file attached.
SRPM: http://filebin.ca/22xUIjmphzXI/tvheadend-4.0.2-1.src.rpm

Tvheadend is a TV streaming server with Digital Video Recorder functionality
for Linux supporting DVB, ATSC, IPTV, SAT>IP, HDHomeRun as input sources.

It can be used as a backend to HTTP (VLC, MPlayer), HTSP (Movian, Kodi),
SAT>IP and various other clients using these protocols.

It uses ffmpeg libraries.

$ rpmlint tvheadend.spec 
tvheadend.spec:37: W: macro-in-comment %patch999
0 packages and 1 specfiles checked; 0 errors, 1 warnings.

My first RPM Fusion package.

Sponsor wanted.
Comment 1 MartinKG 2015-05-26 11:04:33 CEST
this is not a full review:

Rpmlint (installed packages)
----------------------------
tvheadend-debuginfo.x86_64: E: incorrect-fsf-address /usr/src/debug/tvheadend-4.0.2/src/descrambler/ffdecsa/fftable.h
tvheadend-debuginfo.x86_64: E: incorrect-fsf-address /usr/src/debug/tvheadend-4.0.2/src/descrambler/ffdecsa/stream.c
tvheadend-debuginfo.x86_64: E: incorrect-fsf-address /usr/src/debug/tvheadend-4.0.2/src/descrambler/ffdecsa/FFdecsa.h
tvheadend-debuginfo.x86_64: E: incorrect-fsf-address /usr/src/debug/tvheadend-4.0.2/src/descrambler/ffdecsa/FFdecsa.c
tvheadend-debuginfo.x86_64: E: incorrect-fsf-address /usr/src/debug/tvheadend-4.0.2/src/descrambler/ffdecsa/parallel_064_mmx.h
tvheadend-debuginfo.x86_64: E: incorrect-fsf-address /usr/src/debug/tvheadend-4.0.2/src/descrambler/ffdecsa/parallel_128_sse2.h
tvheadend-debuginfo.x86_64: E: incorrect-fsf-address /usr/src/debug/tvheadend-4.0.2/src/descrambler/ffdecsa/parallel_032_int.h

- please report the fsf message upstream.

tvheadend.x86_64: E: explicit-lib-dependency avahi-libs
tvheadend.x86_64: E: explicit-lib-dependency dbus-libs
tvheadend.x86_64: E: explicit-lib-dependency openssl-libs

- rpmlint -I explicit-lib-dependency
explicit-lib-dependency:
You must let rpm find the library dependencies by itself. Do not put unneeded
explicit Requires: tags.

So, you have to delete the Requires tag avahi-libs, dbus-libs and openssl-libs in your spec file.

tvheadend.x86_64: W: name-repeated-in-summary C Tvheadend

- please change the summary from
Summary:        Tvheadend - a TV streaming server and DVR
  to:
Summary:        a TV streaming server and DVR

- please remove 
tvheadend.x86_64: W: spelling-error %description -l en_US backend -> backed, back end, back-end
tvheadend.x86_64: W: incoherent-version-in-changelog v4.0.2 ['4.0.2-1', '4.0.2-1']

- please correct version in changelog from v4.0.2 to 4.0.2
  and change the Release tag to:
  Release:        1%{?dist}

tvheadend.x86_64: W: no-documentation
tvheadend.x86_64: W: non-conffile-in-etc /etc/sysconfig/tvheadend
tvheadend.x86_64: W: no-manual-page-for-binary tvheadend
tvheadend.x86_64: W: dangerous-command-in-%pre chown
2 packages and 0 specfiles checked; 10 errors, 7 warnings.
Comment 2 perex 2015-05-27 19:15:32 CEST
Thanks. New version: http://www.filebin.ca/23BvCCjBWYxY/tvheadend-4.0.3-1.fc21.src.rpm

These rpmlint errors remain:

tvheadend.x86_64: W: no-documentation
tvheadend.x86_64: W: non-conffile-in-etc /etc/sysconfig/tvheadend
tvheadend.x86_64: W: no-manual-page-for-binary tvheadend
tvheadend.x86_64: W: dangerous-command-in-%pre chown

The sysconfig/chown errors are not errors in my eyes, but I will follow any direction.

The documentation is missing - I'll write few notes for the initial connection to the integrated HTTP server, too.
Comment 3 MartinKG 2015-05-28 13:10:20 CEST
1. please deactivate bundled software and use system wide software packages ffmpeg, avahi and uriparser....
 - change your build section
 - Add smp_mflags to make
 - remove arm if condition

%build
echo %{version}-%{release} > %{_builddir}/%{buildsubdir}/rpm/version
%configure --disable-lockowner --disable-bundle --disable-libffmpeg_static
make %{?_smp_mflags}


2. change the BuildRequieres dependencies to:
 - change  systemd-units >= 1 to systemd-units
 
BuildRequires:  avahi-devel
BuildRequires:  avahi-libs
BuildRequires:  dbus-devel
BuildRequires:  ffmpeg-devel
BuildRequires:  git wget python
BuildRequires:  openssl-devel
BuildRequires:  systemd-units
BuildRequires:  uriparser-devel
Requires:       systemd-units
Comment 4 perex 2015-05-28 15:10:00 CEST
Created attachment 1440 [details]
Updated spec file for review...
Comment 5 perex 2015-05-28 15:12:07 CEST
Created attachment 1441 [details]
Updated spec file for review (v4.0.3)

Thanks again for review.
Comment 6 MartinKG 2015-05-28 15:53:29 CEST
for reviewing your package it would be better to post a download link in this
format:

Spec URL: <link to the .spec file>
SRPM URL: <link to the .srpm file>
Comment 7 MartinKG 2015-05-28 15:55:04 CEST
for reviewing your package it would be better to post a download link in this
format:

Spec URL: <link to the .spec file>
SRPM URL: <link to the .srpm file>

and of course a changelog:

%changelog
* Sat Dec 06 2014 Martin Gansser <martinkg@fedoraproject.org> - 3.4.8-1
- rebuild for new version
Comment 9 Tomas Smetana 2015-08-20 21:11:29 CEST
Hello.

This seems to be stalled... Which is a pity. It would be great to have tvheadend easily available in Fedora. (I'm packaging it for myself, which is how I got here...)

I've taken a look at the spec file and have two suggestions:

* Don't create anything in /home. The standard place for service homes is /var/lib (compare to e.g., transmission or pulseaudio), so %{_sharedstatedir}/tvheadend should be the correct place: this requires a patch for the rpm/tvheadend.sysconfig file too.

* The manual page is still not being installed even though it's present in the sources:

mkdir -p -m755 %{buildroot}%{_mandir}/man1
install -p -m 644 man/tvheadend.1 %{buildroot}%{_mandir}/man1
Comment 10 perex 2016-08-11 12:53:12 CEST
It's not resolved. I'll give another shot when my time permits.
Comment 11 Xavier Bachelot 2016-08-11 13:50:04 CEST
Another review for tvheadend has been submitted and accepted, so it is resolved. However, I'm pretty sure the maintainer wouldn't be against having some help, so feel free to request to co-maintain.

*** This bug has been marked as a duplicate of bug 4159 ***