]> git.pld-linux.org Git - packages/xboxdrv.git/blame - xboxdrv.spec
fix %%install syntax
[packages/xboxdrv.git] / xboxdrv.spec
CommitLineData
1b0a5af2
JK
1Summary: Xbox/Xbox360 USB Gamepad userspace driver
2Name: xboxdrv
3Version: 0.8.5
9bf629dd 4Release: 3
1b0a5af2
JK
5License: GPL v3
6Group: Applications
7Source0: http://pingus.seul.org/~grumbel/xboxdrv/%{name}-linux-%{version}.tar.bz2
8# Source0-md5: 7f20b12361770bbff9414a7c6d522c25
9Source1: %{name}.service
10Source2: %{name}.init
11Source3: %{name}.sysconfig
99c7febb 12Source4: %{name}.blacklist.conf
340cec22 13Source5: org.seul.Xboxdrv.conf
1b0a5af2 14URL: http://pingus.seul.org/~grumbel/xboxdrv/
1b0a5af2
JK
15BuildRequires: boost-devel
16BuildRequires: dbus-devel
17BuildRequires: glib2-devel
18BuildRequires: libusb-devel
19BuildRequires: pkgconfig
6098e363 20BuildRequires: rpmbuild(macros) >= 1.647
1b0a5af2
JK
21BuildRequires: scons
22BuildRequires: udev-devel
23BuildRequires: xorg-lib-libX11-devel
6098e363
ER
24Requires(post,preun): /sbin/chkconfig
25Requires(post,preun,postun): systemd-units >= 38
26Requires: rc-scripts
1b0a5af2
JK
27Requires: systemd-units >= 0.38
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31Xboxdrv is a Xbox/Xbox360 gamepad driver for Linux that works in
32userspace. It is an alternative to the xpad kernel driver and has
33support for Xbox1 gamepads, Xbox360 USB gamepads and Xbox360 wireless
34gamepads. The Xbox360 guitar and some Xbox1 dancemats might work too.
35The Xbox 360 racing wheel is not supported, but shouldn't be to hard
36to add if somebody is interested.
37
38Some basic support for the Xbox360 Chatpad on USB controller is
39provided, Chatpad on wireless ones is not supported. The headset is
40not supported, but you can dump raw data from it.
41
42This driver is only of interest if the xpad kernel driver doesn't work
43for you or if you want more configurabity. If the xpad kernel driver
44works for you there is no need to try this driver.
45
46%prep
47%setup -qn %{name}-linux-%{version}
48
49%build
50%scons \
51 BUILD=custom
52
53%install
54rm -rf $RPM_BUILD_ROOT
55install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{systemdunitdir}} \
340cec22
JK
56 $RPM_BUILD_ROOT{/etc/sysconfig,/etc/rc.d/init.d,/etc/modprobe.d} \
57 $RPM_BUILD_ROOT/etc/dbus-1/system.d
1b0a5af2 58
6098e363
ER
59install -p xboxdrv $RPM_BUILD_ROOT%{_bindir}
60install -p xboxdrvctl $RPM_BUILD_ROOT%{_bindir}
1b0a5af2 61
6098e363 62cp -p doc/xboxdrv.1 $RPM_BUILD_ROOT%{_mandir}/man1
1b0a5af2 63
6098e363
ER
64install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/xboxdrv
65cp -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdunitdir}/xboxdrv.service
66cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/xboxdrv
67cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/modprobe.d/xboxdrv.blacklist.conf
9bf629dd 68cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/dbus-1/system.d/org.seul.Xboxdrv.conf
1b0a5af2
JK
69
70%clean
71rm -rf $RPM_BUILD_ROOT
72
73%post
82e4f6a1
JK
74/sbin/chkconfig --add xboxdrv
75%service xboxdrv restart
6098e363 76%systemd_post xboxdrv.service
1b0a5af2
JK
77
78%preun
82e4f6a1 79%systemd_preun xboxdrv.service
1b0a5af2 80if [ "$1" = "0" ]; then
82e4f6a1
JK
81 %service -q xboxdrv stop
82 /sbin/chkconfig --del xboxdrv
1b0a5af2
JK
83fi
84
85%postun
86%systemd_reload
87
88%files
89%defattr(644,root,root,755)
90%doc AUTHORS NEWS PROTOCOL README TODO
91%doc doc/sensitivity.png doc/sensitivity.svg doc/xbox360-asciiart.txt
92%doc examples
82e4f6a1
JK
93%attr(754,root,root) /etc/rc.d/init.d/xboxdrv
94%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/xboxdrv
95%{systemdunitdir}/xboxdrv.service
99c7febb 96%config(noreplace) %verify(not md5 mtime size) /etc/modprobe.d/xboxdrv.blacklist.conf
340cec22 97/etc/dbus-1/system.d/org.seul.Xboxdrv.conf
1b0a5af2
JK
98%attr(755,root,root) %{_bindir}/xboxdrv
99%attr(755,root,root) %{_bindir}/xboxdrvctl
100%{_mandir}/man1/xboxdrv.1*
This page took 0.084244 seconds and 4 git commands to generate.