File gmlive.spec of Package gmlive
Name: gmlive
BuildRequires: gcc-c++ libxml2-devel gtkmm2-devel perl-XML-Bare intltool update-desktop-files gtk2-devel
Version: 0.22
Release: 1
URL: http://code.google.com/p/gmlive/
License: GPL v2 or later
Source0: %{name}-%{version}.tar.bz2
Source1: %{name}-extra.tar.gz
Group: Productivity/Multimedia/Video/Players
Summary: A UI for mplayer by playing live video.
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: MPlayer
%description
A UI for mplayer by playing live video.
%prep
%setup -a1
%build
./configure --prefix=/usr
make
%install
make DESTDIR=%buildroot install
install -m 755 sp-sc-auth $RPM_BUILD_ROOT%{_bindir}
install -m 755 xpplive $RPM_BUILD_ROOT%{_bindir}
%suse_update_desktop_file gmlive Audiovideo TV
# Write a proper %%files section and remove these two commands and
# the '-f filelist' option to %%files
echo '%%defattr(-,root,root)' >filelist
find %buildroot -type f -printf '/%%P*\n' >>filelist
%clean
rm -rf %buildroot
%files -f filelist
%defattr(-,root,root)
%dir /usr/share/gmlive
# This is a place for a proper filelist:
# /usr/bin/gmlive
# You can also use shell wildcards:
# /usr/share/gmlive/*
# This installs documentation files from the top build directory
# into /usr/share/doc/...
# %doc README COPYING
# The advantage of using a real filelist instead of the '-f filelist' trick is
# that rpmbuild will detect if the install section forgets to install
# something that is listed here