rpms/fmtools/FC-6 fmtools.spec,NONE,1.1 sources,1.1,1.2

Chauvet (kwizart) fedora-extras-commits at redhat.com
Tue Sep 25 00:26:07 UTC 2007


Author: kwizart

Update of /cvs/extras/rpms/fmtools/FC-6
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv17646

Modified Files:
	sources 
Added Files:
	fmtools.spec 
Log Message:
Initial import for FC-6



--- NEW FILE fmtools.spec ---
Summary:	Simple Video for Linux radio card programs
Name:		fmtools
Version:	1.0.2
Release:	2%{?dist}
License:	GPLv2+
Group:		Applications/Multimedia
URL:		http://www.stanford.edu/~blp/fmtools/
Source0:	http://www.stanford.edu/~blp/%{name}/%{name}-%{version}.tar.gz
Source1:	fmcontrol.tar.gz
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%description
This is a pair of hopefully useful control programs for Video for Linux
(v4l) 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

The script fmcontrol is something Adrian Lester put together one evening to 
save from himself having to remember frequencies and volumes when using the fm
program from fmtools by Russell Kroll. 

The script does not support any of fm's command line options with the 
exception of volume. 

All that it does is to tune in to a station specified by name at the
frequency and volume specified in $HOME/.fmrc and $HOME/.radiostations
or the volume given on the command line.

%prep
%setup0 -q
# include fmcontrol script
tar xzvf %{SOURCE1}
install -pm 0644 fmcontrol/README README.fmcontrol

# Fix Makefile
sed -i -e 's|/usr/local/bin|%{_bindir}|' Makefile
sed -i -e 's|/usr/local/man|%{_mandir}|' Makefile
sed -i -e 's|-Wall -O2|$(RPM_OPT_FLAGS)|' Makefile

# Remove header
rm videodev.h
sed -i.header -e 's|"videodev.h"|<linux/videodev.h>|'g fm.c fmscan.c

# Add shebang to fmcontrol
sed -i '1i#!/bin/sh' fmcontrol/fmcontrol

%build
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
install -pm 0755 fmcontrol/fmcontrol $RPM_BUILD_ROOT%{_bindir}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc CHANGES COPYING README README.fmcontrol fmcontrol/dot.*
%{_bindir}/*
%{_mandir}/man1/*


%changelog
* 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  4 2006 TC Wan <tcwan at cs.usm.my>
- Built Version 1.0 for FC 5



Index: sources
===================================================================
RCS file: /cvs/extras/rpms/fmtools/FC-6/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	24 Sep 2007 16:33:40 -0000	1.1
+++ sources	25 Sep 2007 00:25:34 -0000	1.2
@@ -0,0 +1,2 @@
+fe40296a7515f506c6b46a0ec7f056eb  fmcontrol.tar.gz
+4bae0e5feeb8cbf4cfcb950301e9509d  fmtools-1.0.2.tar.gz




More information about the fedora-extras-commits mailing list