aboutsummaryrefslogtreecommitdiffstats
path: root/redhat/tvtime-0.9.7.spec
blob: 01c0995c048c0830940e246d43e3c12671ae65b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Some useful constants
%define ver 0.9.7
#%define beta beta
%define rpm_ver 2
%define rh_addon tvtime-redhat.tar.gz
%define docsdir docs
%define rhdocsdir redhat
%define icon %{docsdir}/tvtime-icon-black.png
%define desktop_filename %{rhdocsdir}/custom-tvtime.desktop

# 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: %{ver}
Release: %{!?beta:0.%{beta}.}%{rpm_ver}
URL: http://%{name}.sourceforge.net
Source0: %{name}-%{version}.tar.gz
Source1: %{rh_addon}
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 textutils
Requires: sh-utils desktop-file-utils

%description
%{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 -b1

%build
%configure
%{__make} %{_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%makeinstall

# Remove freefont source from binary
%{__rm} %{buildroot}%{_datadir}/%{name}/freefont-sfd.tar.gz

# 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
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}
%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}

%files
%defattr(-,root,root)
%doc AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README docs/DESIGN docs/default.tvtimerc
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/pixmaps/%{name}-logo.png
%{_datadir}/applications/*%{name}.desktop
%{_mandir}/man1/%{name}.1*
%{_mandir}/man5/%{name}rc.5*

%changelog
* Thu Feb 27 2003 Paul Jara <rascasse at users.sourceforge.net>
- Binary RPM no longer contains freefont source code
* Wed Feb 26 2003 Paul Jara <rascasse at users.sourceforge.net>
- Initial build with official tvtime 0.9.7 source
* Mon Feb 24 2003 Paul Jara <rascasse at users.sourceforge.net>
- Added default.tvtimerc to docs directory
- Sync'd with latest CVS version
- tvscanner replaced with timingtest
* Mon Feb 24 2003 Paul Jara <rascasse at users.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 <rascasse at users.sourceforge.net>
- Initial build.

Privacy Policy