]> git.pld-linux.org Git - packages/hdhomerun.git/commitdiff
new, version 20140604
authorElan Ruusamäe <glen@delfi.ee>
Mon, 19 Jan 2015 17:52:37 +0000 (19:52 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 19 Jan 2015 17:52:37 +0000 (19:52 +0200)
based on fedora package 8f7d80c

hdhomerun.spec [new file with mode: 0644]
hdhomerun_config_gui.desktop [new file with mode: 0644]

diff --git a/hdhomerun.spec b/hdhomerun.spec
new file mode 100644 (file)
index 0000000..79b03c4
--- /dev/null
@@ -0,0 +1,126 @@
+# TODO
+# - fix icons
+%define        releasedate 20140604
+%define        rel     0.1
+Summary:       Silicon Dust HDHomeRun configuration utility
+Name:          hdhomerun
+Version:       0.0
+Release:       0.%{releasedate}.%{rel}
+License:       LGPL v3 and GPL v3
+Group:         Applications/System
+Source0:       http://download.silicondust.com/hdhomerun/lib%{name}_%{releasedate}.tgz
+# Source0-md5: 13d4b0f5f20448179a5c05ee85b83786
+Source1:       http://download.silicondust.com/hdhomerun/%{name}_config_gui_%{releasedate}.tgz
+# Source1-md5: 317c833cab1a2c50bdb651ed3149ee2d
+Source2:       %{name}_config_gui.desktop
+URL:           http://www.silicondust.com/
+BuildRequires: desktop-file-utils
+BuildRequires: gtk+2-devel
+BuildRequires: libicns
+Requires:      gtk+2
+Requires:      gtk-update-icon-cache
+Requires:      hicolor-icon-theme
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The configuration and firmware upgrade utility for Silicon Dust's
+networked HDTV dual-tuner HDHomeRun device.
+
+%description
+The configuration and firmware upgrade utility for Silicon Dust's
+networked HDTV dual-tuner HDHomeRun device.
+
+%package devel
+Summary:       Developer tools for the hdhomerun library
+Group:         Development
+Requires:      %{name} = %{version}-%{release}
+
+%description devel
+The hdhumerun-devel package provides developer tools for the hdhomerun
+library.
+
+%prep
+%setup -qc -a 1
+
+# Fix up linefeeds, drop execute bit and don't strip binaries
+%{__sed} -i 's/\r//' libhdhomerun/*
+%{__chmod} -x libhdhomerun/*
+%{__sed} -i -e '/$(STRIP).*/d' -e 's/C\(PP\)\?FLAGS .=/C\1FLAGS ?=/' libhdhomerun/Makefile
+
+# Convert files to utf8
+for f in libhdhomerun/*; do
+       iconv -f iso-8859-1 -t utf-8 --output $f.new $f && mv $f.new $f
+done
+
+cat << __EOF__ > README.firmware
+The HDHomeRun Firmwares are not redistributable, but the latest versions of
+both the US ATSC and European DVB-T firmwares can always be obtained from
+the Silicon Dust web site:
+
+http://www.silicondust.com/downloads/linux
+
+__EOF__
+
+%build
+cd hdhomerun_config_gui
+%configure
+%{__make}
+cd ..
+
+%if 0
+# fails with assertion:
+#+ icns2png -x hdhr.icns
+#icns2png: jpc_dec.c:1072: jpc_dec_tiledecode: Assertion `dec->numcomps == 3' failed.
+cd hdhomerun_config_gui/OSX
+icns2png -x hdhr.icns
+cd -
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} -C hdhomerun_config_gui install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+install -p libhdhomerun/hdhomerun_config $RPM_BUILD_ROOT%{_bindir}
+rm -rf include
+install -d include
+cp -a libhdhomerun/*.h include
+sed -r 's|(^#include +["])(.*)(["] *$)|#include <hdhomerun/\2>|' \
+    libhdhomerun/hdhomerun.h > include/hdhomerun.h
+install -d $RPM_BUILD_ROOT%{_includedir}/hdhomerun
+cp -p include/*.h $RPM_BUILD_ROOT%{_includedir}/hdhomerun
+desktop-file-install --dir=${RPM_BUILD_ROOT}%{_desktopdir} %{SOURCE2}
+
+%if 0
+for size in 16x16 32x32 128x128 256x256 512x512; do
+       install -d $RPM_BUILD_ROOT%{_iconsdir}/hicolor/${size}
+       cp -p hdhomerun_config_gui/OSX/hdhr_${size}x32.png $RPM_BUILD_ROOT%{_iconsdir}/hicolor/${size}/hdhr.png
+done
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if 0
+%post
+%update_icon_cache hicolor
+
+%postun
+%update_icon_cache hicolor
+%endif
+
+%files
+%defattr(644,root,root,755)
+%doc libhdhomerun/lgpl.txt libhdhomerun/README hdhomerun_config_gui/COPYING README.firmware
+# lib and cli are LGPLv3
+%{_libdir}/libhdhomerun.so
+%attr(755,root,root) %{_bindir}/hdhomerun_config
+# gui is GPLv3
+%attr(755,root,root) %{_bindir}/hdhomerun_config_gui
+%{_desktopdir}/hdhomerun_config_gui.desktop
+#%{_iconsdir}/hicolor/*/hdhr.png
+
+%files devel
+%defattr(644,root,root,755)
+%dir %{_includedir}/hdhomerun
+%{_includedir}/hdhomerun/*.h
diff --git a/hdhomerun_config_gui.desktop b/hdhomerun_config_gui.desktop
new file mode 100644 (file)
index 0000000..256cdc8
--- /dev/null
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=HDHomeRun Config
+GenericName=HDHomeRun Config
+Comment=Configuration GUI for SiliconDust HDHomeRun network-attached TV tuners
+Exec=hdhomerun_config_gui
+Icon=hdhr
+Terminal=false
+Type=Application
+Categories=Network;Settings;Utility;AudioVideo
This page took 0.102189 seconds and 4 git commands to generate.