aboutsummaryrefslogtreecommitdiffstats
path: root/redhat/tvtime-0.9.7.spec
diff options
context:
space:
mode:
authorrascasse <devnull@localhost>2003-02-24 23:42:20 (GMT)
committerrascasse <devnull@localhost>2003-02-24 23:42:20 (GMT)
commite8d6dc1fea9c417fb8a0d81484fa6979f939c773 (patch)
tree2429d2369c53a94bbe89bce4236a57027421c245 /redhat/tvtime-0.9.7.spec
parente5b4d2b176e49fa647663cbbe79444936edf6d6c (diff)
Menu entries are now created properly (RH8+ only), as well as man pages.
Diffstat (limited to 'redhat/tvtime-0.9.7.spec')
-rw-r--r--redhat/tvtime-0.9.7.spec53
1 files changed, 29 insertions, 24 deletions
diff --git a/redhat/tvtime-0.9.7.spec b/redhat/tvtime-0.9.7.spec
index 402ebd0..7a7bbfa 100644
--- a/redhat/tvtime-0.9.7.spec
+++ b/redhat/tvtime-0.9.7.spec
@@ -1,31 +1,29 @@
-%define tvtime_ver 0.9.7
+# Some useful constants
+%define 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 )}
+%define rpm_ver 2
+%define docsdir docs
+%define rhdocsdir redhat
+%define icon %{docsdir}/tvtime-icon-black.png
+%define desktop_filename %{rhdocsdir}/custom-tvtime.desktop
-%if "{%rh_ver}" >= "8.0"
-#%define desktop_file 1
-%define desktop_filename redhat/custom-tvtime.desktop
-#%else
-#%define desktop_file 0
-%endif
+# Check if we're running RedHat 8.0 or higher
+%{!?rh_ver:%define rh_ver %(cut -d' ' -f5 /etc/redhat-release )}
Summary: A high quality TV viewer.
Name: tvtime
-Version: %{tvtime_ver}
-Release: %{?beta:0.%{beta}.}%{tvtime_rpm_ver}
-URL: http://tvtime.sourceforge.net
+Version: %{ver}
+Release: %{?beta:0.%{beta}.}%{rpm_ver}
+URL: http://%{name}.sourceforge.net
Source0: %{name}-%{version}.tar.gz
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
+BuildRequires: freetype-devel zlib-devel libstdc++-devel libpng-devel XFree86-libs libgcc freetype-devel glibc-debug textutils
+Requires: sh-utils man groff desktop-file-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.
+%{name} is a high quality television application for use with video capture cards. %{name} processes the input from a capture card and displays it on a computer monitor or projector.
%prep
%setup -q
@@ -37,18 +35,24 @@ tvtime is a high quality television application for use with video capture cards
%install
%{__rm} -rf %{buildroot}
%makeinstall
+
+# On RedHat 8.0+ distributions, add a menu entry
%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
+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
+# Add man pages
+mkdir -p %{_mandir}/man1
+mkdir -p %{_mandir}/man5
+install -D -m 644 %{docsdir}/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
+install -D -m 644 %{docsdir}/%{name}rc.5 %{buildroot}%{_mandir}/man5/%{name}rc.5
+
%clean
rm -rf %{buildroot}
@@ -60,12 +64,13 @@ rm -rf %{buildroot}
%{_datadir}/%{name}
%{_datadir}/pixmaps/%{name}-logo.png
%{_datadir}/applications/*%{name}.desktop
-#%{_mandir}/tvtime.1
-#%{_mandir}/tvtime.5
+%{_mandir}/man1/%{name}.1*
+%{_mandir}/man5/%{name}rc.5*
%changelog
-* Mon Feb 24 2003 Paul Jara
+* Mon Feb 24 2003 Paul Jara <rascasse at sourceforge.net>
+- Added man pages for tvtime and tvtimerc
- Macro-ized some common shell commands
- Added icon and menu entry for RedHat 8.0+
-* Sun Feb 23 2003 Paul Jara
+* Sun Feb 23 2003 Paul Jara <rascasse at sourceforge.net>
- Initial build.

Privacy Policy