summaryrefslogtreecommitdiff
path: root/packaging/ico-uxf-device-input-controller.spec
blob: 4ce0560aa87d7c288afeb7fb740c617ad22c79a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Name:       ico-uxf-device-input-controller
Summary:    Device Input Controller
Version:    0.5.03
Release:    1.1
Group:      System/GUI
License:    Apache License, Version 2.0
URL:        ""
Source0:    %{name}-%{version}.tar.bz2

BuildRequires: pkgconfig(wayland-client) >= 1.0
BuildRequires: pkgconfig(wayland-egl)
BuildRequires: pkgconfig(egl)
BuildRequires: pkgconfig(glesv2)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: ico-uxf-weston-plugin-devel >= 0.5.03
Requires: weston >= 1.0
Requires: ico-uxf-weston-plugin >= 0.5.03

%description
Device Input Controller for ico-uxf-weston-plugin(Multi Input Manager)

%prep
%setup -q -n %{name}-%{version}

%build
autoreconf --install

%autogen --prefix=/usr

%configure
make %{?_smp_mflags}

%install
rm -rf %{buildroot}
%make_install

# configurations
%define ictl_conf /opt/etc/ico-uxf-device-input-controller
mkdir -p %{buildroot}%{ictl_conf}
install -m 0644 joystick_gtforce.conf %{buildroot}%{ictl_conf}
install -m 0644 egalax_calibration.conf %{buildroot}%{ictl_conf}

%files
%defattr(-,root,root,-)
%{_bindir}/ico_ictl-joystick_gtforce
%{_bindir}/ico_ictl-touch_egalax
%{_bindir}/ico_ictl-egalax_calibration
%{ictl_conf}/joystick_gtforce.conf
%{ictl_conf}/egalax_calibration.conf