[ff-utils] Initial import of ff-utils.

rebus rebus at fedoraproject.org
Sun Nov 13 23:45:41 UTC 2011


commit 6f5a4d2ef2b7a706bbcd5126ded6e26dfc2181e6
Author: Michal Ambroz <rebus at seznam.cz>
Date:   Mon Nov 14 00:44:57 2011 +0100

    Initial import of ff-utils.

 .gitignore                          |    1 +
 ff-utils-2.6.22-64bitPort.patch.tgz |  Bin 0 -> 16271 bytes
 ff-utils-cflags.patch               |   34 ++++++++
 ff-utils-manpages.patch             |  149 +++++++++++++++++++++++++++++++++++
 ff-utils.spec                       |   69 ++++++++++++++++
 sources                             |    1 +
 6 files changed, 254 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ae8202f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ff-utils.tar.bz2
diff --git a/ff-utils-2.6.22-64bitPort.patch.tgz b/ff-utils-2.6.22-64bitPort.patch.tgz
new file mode 100644
index 0000000..484e24e
Binary files /dev/null and b/ff-utils-2.6.22-64bitPort.patch.tgz differ
diff --git a/ff-utils-cflags.patch b/ff-utils-cflags.patch
new file mode 100644
index 0000000..0645b2c
--- /dev/null
+++ b/ff-utils-cflags.patch
@@ -0,0 +1,34 @@
+Only in ff-utils: ffcfstress
+Only in ff-utils: ffmvforce
+Only in ff-utils: ffmvforce.o
+Only in ff-utils: ffset
+Only in ff-utils: fftest
+diff -ru ff-utils/Makefile ff-utils.fc12/Makefile
+--- ff-utils/Makefile	2002-05-03 18:19:09.000000000 +0200
++++ ff-utils.fc12/Makefile	2010-01-16 16:24:17.000000000 +0100
+@@ -30,7 +30,7 @@
+ #
+ 
+ CC		= gcc
+-CFLAGS		= -g -O2 -Wall
++CFLAGS          += -g -O2 -Wall
+ CPPFLAGS	= -I.
+ 
+ PROGRAMS	= evtest inputattach jstest jscal fftest ffmvforce ffset \
+@@ -42,14 +42,13 @@
+ 	$(RM) *.o *.swp $(PROGRAMS) *.orig *.rej map *~
+ 
+ ffcfstress: ffcfstress.c
+-	$(CC) -O2 -fno-implement-inlines -funsigned-char \
+-	 -lm ffcfstress.c -o ffcfstress $(CPPFLAGS)
++	$(CC) $(CFLAGS) -lm ffcfstress.c -o ffcfstress $(CPPFLAGS)
+ 
+ ffmvforce.o: ffmvforce.c
+ 	$(CC) -c $(CFLAGS) $(CPPFLAGS) $^ -o $@ `sdl-config --cflags`
+ 
+ ffmvforce: ffmvforce.o
+-	$(CC) $^ -o $@ $(LDFLAGS) -g -lm `sdl-config --libs`
++	$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) -g -lm `sdl-config --libs`
+ 
+ jscal: jscal.o
+ 	$(CC) $(CFLAGS) $(CPPFLAGS) -lm $^ -o $@
diff --git a/ff-utils-manpages.patch b/ff-utils-manpages.patch
new file mode 100644
index 0000000..aa89d31
--- /dev/null
+++ b/ff-utils-manpages.patch
@@ -0,0 +1,149 @@
+Add manpages from the Debian joystick package
+http://ftp.de.debian.org/debian/pool/main/j/joystick/joystick_20051019-12.debian.tar.gz
+diff -Nru ff-utils/ffcfstress.1 ff-utils.new/ffcfstress.1
+--- ff-utils/ffcfstress.1	1970-01-01 01:00:00.000000000 +0100
++++ ff-utils.new/ffcfstress.1	2010-06-21 22:05:43.000000000 +0200
+@@ -0,0 +1,46 @@
++.TH ffcfstress 1 "March 8, 2009" ffcfstress
++.SH NAME
++ffcfstress \- constant force stress test for force-feedback devices
++.SH SYNOPSIS
++.B ffcfstress
++.RB "[" \-d " <\fIdevice\fP>] [" \-u " <\fIupdate rate\fP>] [" \-f " <\fIfrequency\fP>] [" \-a " <\fIamplitude\fP>] [" \-s " <\fIstrength\fP>] [" \-o "]"
++.SH "DESCRIPTION"
++ffcfstress stress tests constant non-enveloped forces on a force
++feedback device.
++It simulates a moving spring force by applying a frequently updated
++constant force effect.
++.PP
++.B Beware, the stress test may damage your device!
++.SH OPTIONS
++At least one option is required.
++.TP
++.BR \-d " <\fIdevice\fP>"
++The device to test (by default \fI/dev/input/event0\fR).
++.TP
++.BR \-u " <\fIupdate rate\fP>"
++The update rate in Hz (25 by default).
++.TP
++.BR \-f " <\fIfrequency\fP>"
++The spring center motion frequency in Hz (0.1 by default).
++.TP
++.BR \-a " <\fIamplitude\fP>"
++The spring center motion amplitude, between 0.0 and 1.0 (1.0 by
++default).
++.TP
++.BR \-s " <\fIstrength\fP>"
++The spring strength factor (1.0 by default).
++.TP
++.B \-o
++Dummy option, useful when all defaults should be used.
++.SH SEE ALSO
++\fBffmvforce\fP(1), \fBfftest\fP(1), \fBjstest\fP(1).
++.SH AUTHOR
++.B ffcfstress
++was written by Oliver Hamann.
++.PP
++This manual page was written by Stephen Kitt <steve at sk2.org>, for the Debian
++GNU/Linux system (but may be used by others).
++It was last modified for
++.B ffcfstress
++dated February 15, 2002.
++
+diff -Nru ff-utils/ffmvforce.1 ff-utils.new/ffmvforce.1
+--- ff-utils/ffmvforce.1	1970-01-01 01:00:00.000000000 +0100
++++ ff-utils.new/ffmvforce.1	2009-07-04 17:39:35.000000000 +0200
+@@ -0,0 +1,30 @@
++.TH ffmvforce 1 "March 8, 2009" ffmvforce
++.SH NAME
++ffmvforce \- force orientation test for force-feedback devices
++.SH SYNOPSIS
++.B ffmvforce
++.RI "<" device "> [\fB-u\fP <" "update rate" ">]"
++.SH "DESCRIPTION"
++ffmvforce generates a force in a given direction, indicated by the
++position of the mouse pointer in relation to the center of the tool's
++window.
++.PP
++.B Beware, the stress test may damage your device!
++.SH OPTIONS
++.TP
++.RI "<" device ">"
++The device to test.
++.TP
++.BR \-u " <\fIupdate rate\fP>"
++The update rate in Hz (5 by default).
++.SH SEE ALSO
++\fBffcfstress\fP(1), \fBfftest\fP(1), \fBjstest\fP(1).
++.SH AUTHOR
++.B ffmvforce
++was written by Oliver Hamann.
++.PP
++This manual page was written by Stephen Kitt <steve at sk2.org>, for the Debian
++GNU/Linux system (but may be used by others).
++It was last modified for
++.B ffmvforce
++dated February 15, 2002.
+diff -Nru ff-utils/ffset.1 ff-utils.new/ffset.1
+--- ff-utils/ffset.1	1970-01-01 01:00:00.000000000 +0100
++++ ff-utils.new/ffset.1	2009-07-04 17:40:18.000000000 +0200
+@@ -0,0 +1,30 @@
++.TH ffset 1 "March 8, 2009" ffset
++.SH NAME
++ffset \- set force-feedback device parameters
++.SH SYNOPSIS
++.B ffset
++.RI "<" device "> [\fB\-g\fP <" gain ">] [\fB\-a\fP <" "autocenter strength" ">]"
++.SH "DESCRIPTION"
++ffset sets the gain and autocenter strength of a force-feedback
++device.
++.SH OPTIONS
++.TP
++.RI "<" device ">"
++The device to configure.
++.TP
++.BR \-g " <\fIgain\fP>"
++The gain (0-100).
++.TP
++.BR \-a " <\fIautocenter strength\fP>"
++The autocenter strength (0-100).
++.SH SEE ALSO
++\fBffcfstress\fP(1), \fBffmvforce\fP(1), \fBfftest\fP(1), \fBjscal\fP(1), \fBjstest\fP(1).
++.SH AUTHOR
++.B ffset
++was written by Johann Deneux.
++.PP
++This manual page was written by Stephen Kitt <steve at sk2.org>, for the
++Debian GNU/Linux system (but may be used by others).
++It was last modified for
++.B ffmvforce
++dated May 30, 2001.
+diff -Nru ff-utils/fftest.1 ff-utils.new/fftest.1
+--- ff-utils/fftest.1	1970-01-01 01:00:00.000000000 +0100
++++ ff-utils.new/fftest.1	2009-07-04 17:40:40.000000000 +0200
+@@ -0,0 +1,25 @@
++.TH fftest 1 "March 8, 2009" fftest
++.SH NAME
++fftest \- tests force-feedback devices.
++.SH SYNOPSIS
++.B fftest
++.RI "<" device ">"
++.SH "DESCRIPTION"
++fftest provides a variety of tests which can be applied to
++force-feedback devices.
++.B Beware, the tests may damage your device!
++.SH OPTIONS
++.TP
++.RI "<" device ">"
++The device to test.
++.SH SEE ALSO
++\fBffcfstress\fP(1), \fBffmvforce\fP(1), \fBjstest\fP(1).
++.SH AUTHOR
++.B fftest
++was written by Johann Deneux.
++.PP
++This manual page was written by Stephen Kitt <steve at sk2.org>, for the Debian
++GNU/Linux system (but may be used by others).
++It was last modified for
++.B fftest
++dated October 19, 2004.
diff --git a/ff-utils.spec b/ff-utils.spec
new file mode 100644
index 0000000..ae61413
--- /dev/null
+++ b/ff-utils.spec
@@ -0,0 +1,69 @@
+Name:		ff-utils
+Version:	2.4.21
+Release:	4%{?dist}
+Summary:	Utilities to test force feedback of input device
+
+Group:		Amusements/Games
+License:	GPLv2+
+URL:		http://sourceforge.net/apps/mediawiki/libff/
+Source0:	http://downloads.sourceforge.net/libff/%{name}.tar.bz2
+
+#Add 64-bit port and kernel 2.6.22 compatibility
+#http://sourceforge.net/tracker/download.php?group_id=44724&atid=440671&file_id=292511&aid=2098907
+Patch0:		ff-utils-2.6.22-64bitPort.patch.tgz
+
+#Add manpages fromt the Debian joystick package
+#http://ftp.de.debian.org/debian/pool/main/j/joystick/joystick_20051019-12.debian.tar.gz
+Patch1:		ff-utils-manpages.patch
+
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires:	SDL-devel
+
+%description
+Set of utilities provides possibility to test force feedback of
+input devices like joysticks, game-pads or game-wheels in Linux.
+
+
+%prep
+%setup -q -n %{name}
+%patch0 -p 1 -b .64bit
+%patch1 -p 1
+make clean
+
+
+%build
+make -e CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags} ffcfstress ffmvforce ffset fftest
+gzip *.1
+
+
+%install
+rm -rf %{buildroot}
+install -d %{buildroot}%{_bindir}
+install -m 0755 ffcfstress ffmvforce ffset fftest %{buildroot}%{_bindir}/
+install -d %{buildroot}%{_mandir}/man1
+install -m 0644 *.1.gz %{buildroot}%{_mandir}/man1/
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+#There are no doc files in the package
+%{_bindir}/*
+%{_mandir}/man1/*.1*
+
+%changelog
+* Mon Apr 11 2011 Michal Ambroz <rebus at, seznam.cz> 2.4.21-4
+- apply patch as suggested by Didier Moens in package review
+- add manpages from Debian joystick package
+
+* Sun Apr 18 2010 Michal Ambroz <rebus at, seznam.cz> 2.4.21-3
+- cleanup directory macros
+
+* Sun Jan 24 2010 Michal Ambroz <rebus at, seznam.cz> 2.4.21-2
+- added build requirement for the SDL-devel
+
+* Sat Jan 16 2010 Michal Ambroz <rebus at, seznam.cz> 2.4.21-1
+- Initial SPEC for Fedora 12
diff --git a/sources b/sources
index e69de29..6f648e2 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+37f5197aa38362cac1364d3d9f409912  ff-utils.tar.bz2


More information about the scm-commits mailing list