Paulo Roma Cavalcanti ea132f6
%bcond_with pylirc
Paulo Roma Cavalcanti a0b934a
%bcond_without pulse
Paulo Roma Cavalcanti ea132f6
c994406
Summary: Simple Video for Linux radio card programs
c994406
Name:    fmtools
Paulo Roma Cavalcanti df35fa8
Version: 2.0.7
2fab811
Release: 28%{?dist}
c994406
License: GPLv2+
6f3f81f
URL:     http://benpfaff.org/fmtools
22ecf9d
c994406
Source0: http://benpfaff.org/fmtools/%{name}-%{version}.tar.gz
c994406
Source1: fmcontrol.tar.gz
6f3f81f
Source2: http://benpfaff.org/fmtools/tkradio
6f3f81f
Source3: http://benpfaff.org/fmtools/tkradio-mute
c994406
Source4: fmtools.desktop
c994406
Source5: radio.png
c994406
Source8: radio.gif
c994406
Source6: tkradio.py
c994406
Source7: fmlircrc
03d935c
Patch0: fmcontrol-py3.patch
Paulo Roma Cavalcanti df35fa8
BuildRequires: autoconf automake
5ee23cd
BuildRequires: gcc
35c7f65
BuildRequires: python3-devel
9184902
9184902
%description
9184902
This is a pair of hopefully useful control programs for Video for Linux
c994406
(v4l2) radio card drivers.  The focus is on control, so you may find these
9184902
programs a bit unfriendly.  Users are encouraged to investigate the source
9184902
and create wrappers or new programs based on this design.
9184902
c994406
fm      - a simple tuner
c994406
fmscan  - a simple band scanner
c994406
c994406
%package tkradio
c994406
Summary:       Python/Tk wrapper for fmtools
c994406
BuildRequires: desktop-file-utils
522f8f0
BuildRequires: make
c994406
Requires:      %{name} = %{version}
35c7f65
Requires:      python3
35c7f65
%{?with_pylirc:Requires: python3-lirc}
35c7f65
Requires:      vorbis-tools, python3-tkinter, alsa-utils
Paulo Roma Cavalcanti a0b934a
%if %{with pulse}
6f3f81f
Requires:      pulseaudio-utils
c994406
BuildArch:     noarch
Paulo Roma Cavalcanti a0b934a
%endif
c994406
c994406
%description tkradio
c994406
This package provides a GUI for %{name}, with lirc support.
c994406
The stations are read from the same files used by fmcontrol,
c994406
and the lirc configuration file is in $HOME/.fmlircrc
c994406
c994406
The script fmcontrol.py saves one from remembering frequencies
c994406
and volumes when using the "fm" program from %{name}.
c994406
All that it does is to tune into a station specified by name, at the
c994406
frequency and volume specified in $HOME/.fmrc or $HOME/.radiostations,
9184902
or the volume given on the command line.
9184902
9184902
%prep
c994406
%setup -q -a1
03d935c
%patch0 -p1 -b .py3
9184902
9184902
%build
22ecf9d
autoreconf -vif
c994406
%configure
c151dec
%make_build
9184902
9184902
%install
c151dec
%make_install
c994406
install -pm 0755 %{SOURCE2} %{buildroot}%{_bindir}/tkradio.tcl
c994406
install -pm 0755 %{SOURCE3} %{buildroot}%{_bindir}/tkradio-mute.tcl
c994406
install -pm 0755 %{SOURCE6} %{buildroot}%{_bindir}/tkradio.py
c994406
install -pm 0755 fmcontrol/fmcontrol %{buildroot}%{_bindir}/fmcontrol.py
c994406
install -pm 0644 fmcontrol/README README.fmcontrol
c994406
c994406
# menu entry
c994406
desktop-file-install                                    \
c994406
        --vendor ""                                     \
c994406
        --dir %{buildroot}%{_datadir}/applications      \
c994406
        %{SOURCE4}
c994406
c994406
install -Dpm 0644 %{SOURCE5} %{buildroot}%{_datadir}/pixmaps/radio.png
c994406
install -Dpm 0644 %{SOURCE7} %{buildroot}%{_datadir}/%{name}/fmlircrc
c994406
install -Dpm 0644 %{SOURCE8} %{buildroot}%{_datadir}/%{name}/radio.gif
9184902
c994406
%files 
c151dec
%doc README
c151dec
%license COPYING
c994406
%{_bindir}/fm
c994406
%{_bindir}/fmscan
c994406
%{_mandir}/man1/fm*.gz
9184902
c994406
%files tkradio
c994406
%doc README.fmcontrol fmcontrol/dot.*
c994406
%{_bindir}/tkradio*
c994406
%{_bindir}/fmcontrol.py
c994406
%{_datadir}/applications/fmtools.desktop
c994406
%{_datadir}/pixmaps/radio.png
c994406
%{_datadir}/%{name}/fmlircrc
c994406
%{_datadir}/%{name}/radio.gif
9184902
9184902
%changelog
2fab811
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.7-28
2fab811
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
2fab811
91569bc
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.7-27
91569bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
91569bc
d7bcfeb
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.7-26
d7bcfeb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
d7bcfeb
c3a4860
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.7-25
c3a4860
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
c3a4860
10a57c0
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.7-24
10a57c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
10a57c0
1f3257a
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.7-23
1f3257a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
1f3257a
a792d94
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.7-22
a792d94
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
a792d94
64af1cd
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.7-21
64af1cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
64af1cd
7c2fd45
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.7-20
7c2fd45
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
7c2fd45
3a35fe9
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.7-19
3a35fe9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
3a35fe9
a449e57
* Wed Sep 11 2019 Nicolas Chauvet <kwizart@gmail.com> - 2.0.7-18
a449e57
- Switch to python3
a449e57
1471c2c
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.7-17
1471c2c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
1471c2c
14672ed
* Thu Apr 18 2019 Filipe Rosset <rosset.filipe@gmail.com> - 2.0.7-16
14672ed
- rebuilt to fix FTBFS on F29+ fixes rhbz #1512890 and rhbz #1674890
14672ed
db648b6
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.7-15
db648b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
db648b6
ddd1d06
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.7-14
ddd1d06
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
ddd1d06
5ee23cd
* Sun Apr 08 2018 Filipe Rosset <rosset.filipe@gmail.com> - 2.0.7-13
5ee23cd
- added gcc as BR
5ee23cd
c151dec
* Sun Feb 18 2018 Filipe Rosset <rosset.filipe@gmail.com> - 2.0.7-12
c151dec
- Fix FTBFS + spec cleanup
c151dec
ac10fde
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.7-11
ac10fde
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ac10fde
a291549
* Fri Jan 05 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.0.7-10
a291549
- Update Python 2 dependency declarations to new packaging standards
a291549
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
a291549
e5c4ad6
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.7-9
e5c4ad6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
e5c4ad6
6810110
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.7-8
6810110
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
6810110
c2bfae3
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.7-7
c2bfae3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c2bfae3
76a5ca5
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.7-6
76a5ca5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
76a5ca5
4ab7c5c
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.7-5
4ab7c5c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4ab7c5c
b391577
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.7-4
b391577
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
b391577
e76368e
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.7-3
e76368e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e76368e
22ecf9d
* Sat Jan 18 2014 Peter Robinson <pbrobinson@fedoraproject.org> 2.0.7-2
22ecf9d
- Fix FTBFS
22ecf9d
- Cleanup spec
22ecf9d
Paulo Roma Cavalcanti df35fa8
* Mon Sep 30 2013 Paulo Roma <roma@lcg.ufrj.br> 2.0.7-1
Paulo Roma Cavalcanti df35fa8
- Updated to 2.0.7
Paulo Roma Cavalcanti df35fa8
Paulo Roma Cavalcanti df35fa8
* Sun Sep 15 2013 Paulo Roma <roma@lcg.ufrj.br> 2.0.6-1
Paulo Roma Cavalcanti df35fa8
- Updated to latest git.
Paulo Roma Cavalcanti df35fa8
Paulo Roma Cavalcanti df35fa8
* Sun Sep 08 2013 Paulo Roma <roma@lcg.ufrj.br> 2.0.2-1
Paulo Roma Cavalcanti df35fa8
- Updated to latest git.
Paulo Roma Cavalcanti df35fa8
Paulo Roma Cavalcanti df35fa8
* Wed Sep 04 2013 Paulo Roma <roma@lcg.ufrj.br> 2.0.1-14
Paulo Roma Cavalcanti df35fa8
- Applied patch volume for working in kernels >= 3.10
Paulo Roma Cavalcanti df35fa8
adea73c
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-13
adea73c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
adea73c
e455b36
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-12
e455b36
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e455b36
8b3f20e
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-11
8b3f20e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
8b3f20e
3ea9fba
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-10
3ea9fba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
3ea9fba
Paulo Roma Cavalcanti a0b934a
* Sun Mar 27 2011 Paulo Roma <roma@lcg.ufrj.br> 2.0.1-9
Paulo Roma Cavalcanti a0b934a
- Using signal module.
Paulo Roma Cavalcanti a0b934a
Paulo Roma Cavalcanti a0b934a
* Sun Mar 13 2011 Paulo Roma <roma@lcg.ufrj.br> 2.0.1-8
Paulo Roma Cavalcanti a0b934a
- Using Master for controling the volume.
Paulo Roma Cavalcanti a0b934a
c151dec
* Thu Mar 10 2011 Paulo Roma <roma@lcg.ufrj.br> 2.0.1-7
Paulo Roma Cavalcanti a0b934a
- Restoring the saved state (persistency).
Paulo Roma Cavalcanti a0b934a
Paulo Roma Cavalcanti 1c62507
* Sat Feb 26 2011 Paulo Roma <roma@lcg.ufrj.br> 2.0.1-6
Paulo Roma Cavalcanti 1c62507
- Ported to python3.
Paulo Roma Cavalcanti 1c62507
7a9e816
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-5
7a9e816
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
7a9e816
Paulo Roma Cavalcanti ea132f6
* Mon Dec 20 2010 Paulo Roma <roma@lcg.ufrj.br> 2.0.1-4
Paulo Roma Cavalcanti ea132f6
- Condionally build with python-lirc.
Paulo Roma Cavalcanti ea132f6
Paulo Roma Cavalcanti 4c89f0c
* Mon Dec 06 2010 Paulo Roma <roma@lcg.ufrj.br> 2.0.1-3
Paulo Roma Cavalcanti 4c89f0c
- Using mtTkinter so pylirc works, since it handles
Paulo Roma Cavalcanti 4c89f0c
  tk objects outside the main thread.
Paulo Roma Cavalcanti 4c89f0c
- Fixed desktop entry.
Paulo Roma Cavalcanti 4c89f0c
6f3f81f
* Sun Jan 24 2010 Paulo Roma <roma@lcg.ufrj.br> 2.0.1-2
6f3f81f
- Fixed exception handling.
6f3f81f
- Using pacat and parec for recording with pulseaudio.
6f3f81f
- Updated URL.
6f3f81f
c994406
* Sat Jan 09 2010 Paulo Roma <roma@lcg.ufrj.br> 2.0.1-1
c994406
- Updated to 2.0.1
c994406
- Removed fmtools.patch
c994406
- Added man pages.
c994406
c994406
* Thu Jan 07 2010 Paulo Roma <roma@lcg.ufrj.br> 2.0-10
c994406
- Fixed grep expression in tkradio.py
c994406
c994406
* Sat Jan 02 2010 Paulo Roma <roma@lcg.ufrj.br> 2.0-9
c994406
- Added libnotify support.
c994406
- Addded compression using oggenc.
c994406
- Added window icon.
c994406
c151dec
* Wed Dec 30 2009 Paulo Roma <roma@lcg.ufrj.br> 2.0-8
c994406
- Added recording support.
c994406
c994406
* Sun Dec 27 2009 Paulo Roma <roma@lcg.ufrj.br> 2.0-7
c994406
- Replaced fmcontrol for fmcontrol.py
c994406
- Moved fmcontrol to tkradio package.
c994406
- Added lirc support.
c994406
c151dec
* Wed Dec 23 2009 Paulo Roma <roma@lcg.ufrj.br> 2.0-5
c994406
- Replaced BR tk for tkinter.
c994406
c151dec
* Wed Dec 23 2009 Paulo Roma <roma@lcg.ufrj.br> 2.0-4
c994406
- Include tkradio.py
c994406
- Fixed fmtools.desktop
c994406
c994406
* Sun Dec 20 2009 Paulo Roma <roma@lcg.ufrj.br> 2.0-3
c994406
- Packaging tkradio separately.
c994406
c994406
* Sun Dec 20 2009 Paulo Roma <roma@lcg.ufrj.br> 2.0-2
c994406
- Patched to make it work.
c994406
- Added desktop entry.
c994406
c994406
* Sun Dec 13 2009 Paulo Roma <roma@lcg.ufrj.br> 2.0-1
c994406
- Initial v4l2 support provided by version 2.0
c994406
- Included tkradio and fmcontrol.
c994406
4ba942f
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-6
4ba942f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
4ba942f
a889210
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-5
a889210
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
a889210
4387d1d
* Fri Oct 17 2008 kwizart < kwizart at gmail.com > - 1.0.2-4
4387d1d
- Rebuild for F-10
4387d1d
c994406
* Sat Feb 09 2008 kwizart < kwizart at gmail.com > - 1.0.2-3
75941b5
- Rebuild for gcc43
75941b5
9184902
* Fri Sep 21 2007 kwizart <kwizart at gmail.com > - 1.0.2-2
9184902
- Fix shebang
9184902
- Fix perm on source
9184902
- Fix mixed use of spaces and tabs
9184902
- Remove internal header to use it from kernel-headers
9184902
9184902
* Sun Aug 26 2007 kwizart <kwizart at gmail.com > - 1.0.2-1
9184902
- Update to 1.0.2
9184902
c994406
* Mon Sep 04 2006 TC Wan <tcwan@cs.usm.my>
9184902
- Built Version 1.0 for FC 5