aboutsummaryrefslogtreecommitdiffstats
path: root/redhat/tvtime-0.9.7.spec
diff options
context:
space:
mode:
authorrascasse <devnull@localhost>2003-02-24 07:43:02 (GMT)
committerrascasse <devnull@localhost>2003-02-24 07:43:02 (GMT)
commit0094d5daf12baeac16692e905c1a161d7f9bbc19 (patch)
tree8fc1e91b3c47743e3ea02da2295fc55d39696c49 /redhat/tvtime-0.9.7.spec
parent39ff9cfa5c6a2ae636d507858717b504f9958ea7 (diff)
Now creates menu entry on RedHat 8.0+ systems and is a bit more standardized.
Diffstat (limited to 'redhat/tvtime-0.9.7.spec')
-rw-r--r--redhat/tvtime-0.9.7.spec42
1 files changed, 31 insertions, 11 deletions
diff --git a/redhat/tvtime-0.9.7.spec b/redhat/tvtime-0.9.7.spec
index 9faa12f..402ebd0 100644
--- a/redhat/tvtime-0.9.7.spec
+++ b/redhat/tvtime-0.9.7.spec
@@ -1,11 +1,14 @@
%define tvtime_ver 0.9.7
%define beta beta
%define tvtime_rpm_ver 1
+%define icon docs/tvtime-icon-black.png
+%{!?rh_ver:%define rh_ver %(cut -d' ' -f5 /etc/redhat-release )}
%if "{%rh_ver}" >= "8.0"
-%define desktop_file 1
-%else
-%define desktop_file 0
+#%define desktop_file 1
+%define desktop_filename redhat/custom-tvtime.desktop
+#%else
+#%define desktop_file 0
%endif
Summary: A high quality TV viewer.
@@ -18,6 +21,8 @@ License: GPL
Group: Applications/Multimedia
BuildRoot: %{_tmppath}/%{name}-root
BuildRequires: freetype-devel zlib-devel libstdc++-devel libpng-devel XFree86-libs libgcc freetype-devel glibc-debug
+BuildPrereq: sh-utils
+Requires: desktop-file-utils fileutils sh-utils
%description
tvtime is a high quality television application for use with video capture cards. tvtime processes the input from a capture card and displays it on a computer monitor or projector.
@@ -27,13 +32,22 @@ tvtime is a high quality television application for use with video capture cards
%build
%configure
-make %{_smp_mflags}
+%{__make} %{_smp_mflags}
%install
-# - Copy RedHat 8.0 desktop file to appropriate directory here
-# - Copy RedHat 8.0 menu item icon file to appropriate directory here
-rm -rf %{buildroot}
+%{__rm} -rf %{buildroot}
%makeinstall
+%if "%{rh_ver}" >= "8.0"
+
+# Copy icon
+install -D -m 644 %{icon} %{buildroot}%{_datadir}/pixmaps/%{name}-logo.png
+
+# Copy desktop file
+mkdir -p %{buildroot}%_datadir}/applications
+desktop-file-install --vendor custom --delete-original --dir %{buildroot}%{_datadir}/applications --add-category X-Red-Hat-Extra --add-category Application --add-category AudioVideo %{desktop_filename}
+%else
+echo RH8.0 version test failed
+%endif
%clean
rm -rf %{buildroot}
@@ -41,11 +55,17 @@ rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README docs/DESIGN docs/TODO
-%{_bindir}/tvtime
-%{_datadir}/tvtime
-%{_mandir}/man1/tvtime.1
-%{_mandir}/man5/tvtime.5
+%{_bindir}/%{name}
+%{_bindir}/tvscanner
+%{_datadir}/%{name}
+%{_datadir}/pixmaps/%{name}-logo.png
+%{_datadir}/applications/*%{name}.desktop
+#%{_mandir}/tvtime.1
+#%{_mandir}/tvtime.5
%changelog
+* Mon Feb 24 2003 Paul Jara
+- Macro-ized some common shell commands
+- Added icon and menu entry for RedHat 8.0+
* Sun Feb 23 2003 Paul Jara
- Initial build.

Privacy Policy