-
Notifications
You must be signed in to change notification settings - Fork 0
/
libevdevxx.spec.in
92 lines (65 loc) · 1.68 KB
/
libevdevxx.spec.in
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
%define libname %mklibname evdevxx
%define devname %mklibname evdevxx -d
Name: @PACKAGE_TARNAME@
Version: @PACKAGE_VERSION@
Release: %mkrel 1
Summary: A C++ wrapper for libevdev.
Group: System/Libraries
License: MIT
Source0: @TARBALL_NAME@
%description
This is the library needed to run programs linked with %{name}.
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkgconfig(libevdev)
BuildRequires: gcc-c++
#############
## library ##
#############
%package -n %{libname}
Summary: A C++ wrapper for libevdev.
Group: System/Libraries
%description -n %{libname}
This is the library needed to run programs linked with %{libname}.
###########
## devel ##
###########
%package -n %{devname}
Summary: Development package for %{libname}.
Group: Development/C++
Provides: %{devname} = %{version}
Requires: %{libname} = %{version}-%{release}
%description -n %{devname}
This package provides libraries and headers files for %{name}
development.
##############
## binaries ##
##############
%package -n evdevxx-tools
Summary: Tools from the %{name} package.
Requires: %{libname} = %{version}-%{release}
%description -n evdevxx-tools
This package contains tools from %{name}:
- evdevxx-query
- evdevxx-read
%prep
%autosetup
%build
%configure --disable-static
%make_build
%install
%make_install
%files -n %{libname}
%license COPYING
%doc AUTHORS
%{_libdir}/*.so.*
%files -n %{devname}
%doc README.md
%doc ChangeLog
%doc NEWS
%{_pkgdocdir}/html
%{_includedir}/libevdevxx/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/libevdevxx.pc
%files -n evdevxx-tools
%{_bindir}/evdevxx-*