Blob Blame History Raw
Summary: Simple Video for Linux radio card programs
Name:    fmtools
Version: 2.0.1
Release: 1%{?dist}
License: GPLv2+
Group:   Applications/Multimedia
URL:     http://www.stanford.edu/~blp/fmtools/
Source0: http://benpfaff.org/fmtools/%{name}-%{version}.tar.gz
Source1: fmcontrol.tar.gz
Source2: http://www.stanford.edu/~blp/fmtools/tkradio
Source3: http://www.stanford.edu/~blp/fmtools/tkradio-mute
Source4: fmtools.desktop
Source5: radio.png
Source8: radio.gif
Source6: tkradio.py
Source7: fmlircrc
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%description
This is a pair of hopefully useful control programs for Video for Linux
(v4l2) radio card drivers.  The focus is on control, so you may find these
programs a bit unfriendly.  Users are encouraged to investigate the source
and create wrappers or new programs based on this design.

fm      - a simple tuner
fmscan  - a simple band scanner

%package tkradio
Summary:       Python/Tk wrapper for fmtools
Group:         Applications/Multimedia
BuildRequires: desktop-file-utils
Requires:      %{name} = %{version}
Requires:      python, python-lirc, notify-python
Requires:      vorbis-tools, tkinter, alsa-utils
BuildArch:     noarch

%description tkradio
This package provides a GUI for %{name}, with lirc support.
The stations are read from the same files used by fmcontrol,
and the lirc configuration file is in $HOME/.fmlircrc

The script fmcontrol.py saves one from remembering frequencies
and volumes when using the "fm" program from %{name}.
All that it does is to tune into a station specified by name, at the
frequency and volume specified in $HOME/.fmrc or $HOME/.radiostations,
or the volume given on the command line.

%prep
%setup -q -a1

%build
%configure
make %{_smp_mflags}

%install
rm -rf %{buildroot}
make DESTDIR=%{buildroot} install
install -pm 0755 %{SOURCE2} %{buildroot}%{_bindir}/tkradio.tcl
install -pm 0755 %{SOURCE3} %{buildroot}%{_bindir}/tkradio-mute.tcl
install -pm 0755 %{SOURCE6} %{buildroot}%{_bindir}/tkradio.py
install -pm 0755 fmcontrol/fmcontrol %{buildroot}%{_bindir}/fmcontrol.py
install -pm 0644 fmcontrol/README README.fmcontrol

# menu entry
desktop-file-install                                    \
        --vendor ""                                     \
        --dir %{buildroot}%{_datadir}/applications      \
        %{SOURCE4}

install -Dpm 0644 %{SOURCE5} %{buildroot}%{_datadir}/pixmaps/radio.png
install -Dpm 0644 %{SOURCE7} %{buildroot}%{_datadir}/%{name}/fmlircrc
install -Dpm 0644 %{SOURCE8} %{buildroot}%{_datadir}/%{name}/radio.gif

%clean
rm -rf %{buildroot}

%files 
%defattr(-,root,root,-)
%doc README COPYING
%{_bindir}/fm
%{_bindir}/fmscan
%{_mandir}/man1/fm*.gz

%files tkradio
%defattr(-,root,root,-)
%doc README.fmcontrol fmcontrol/dot.*
%{_bindir}/tkradio*
%{_bindir}/fmcontrol.py
%{_datadir}/applications/fmtools.desktop
%{_datadir}/pixmaps/radio.png
%{_datadir}/%{name}/fmlircrc
%{_datadir}/%{name}/radio.gif

%changelog

* Sat Jan 09 2010 Paulo Roma <roma@lcg.ufrj.br> 2.0.1-1
- Updated to 2.0.1
- Removed fmtools.patch
- Added man pages.

* Thu Jan 07 2010 Paulo Roma <roma@lcg.ufrj.br> 2.0-10
- Fixed grep expression in tkradio.py

* Sat Jan 02 2010 Paulo Roma <roma@lcg.ufrj.br> 2.0-9
- Added libnotify support.
- Addded compression using oggenc.
- Added window icon.

* Sun Dec 30 2009 Paulo Roma <roma@lcg.ufrj.br> 2.0-8
- Added recording support.

* Sun Dec 27 2009 Paulo Roma <roma@lcg.ufrj.br> 2.0-7
- Replaced fmcontrol for fmcontrol.py
- Moved fmcontrol to tkradio package.
- Added lirc support.

* Sun Dec 23 2009 Paulo Roma <roma@lcg.ufrj.br> 2.0-5
- Replaced BR tk for tkinter.

* Sun Dec 23 2009 Paulo Roma <roma@lcg.ufrj.br> 2.0-4
- Include tkradio.py
- Fixed fmtools.desktop

* Sun Dec 20 2009 Paulo Roma <roma@lcg.ufrj.br> 2.0-3
- Packaging tkradio separately.

* Sun Dec 20 2009 Paulo Roma <roma@lcg.ufrj.br> 2.0-2
- Patched to make it work.
- Added desktop entry.

* Sun Dec 13 2009 Paulo Roma <roma@lcg.ufrj.br> 2.0-1
- Initial v4l2 support provided by version 2.0
- Included tkradio and fmcontrol.

* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Fri Oct 17 2008 kwizart < kwizart at gmail.com > - 1.0.2-4
- Rebuild for F-10

* Sat Feb 09 2008 kwizart < kwizart at gmail.com > - 1.0.2-3
- Rebuild for gcc43

* Fri Sep 21 2007 kwizart <kwizart at gmail.com > - 1.0.2-2
- Fix shebang
- Fix perm on source
- Fix mixed use of spaces and tabs
- Remove internal header to use it from kernel-headers

* Sun Aug 26 2007 kwizart <kwizart at gmail.com > - 1.0.2-1
- Update to 1.0.2

* Mon Sep 04 2006 TC Wan <tcwan@cs.usm.my>
- Built Version 1.0 for FC 5