dynamixel-0.1.spec 1002 Bytes
Newer Older
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
Name:           dynamixel
Version:        0.1
Release:        1
Summary:        Wrapper for Dynamixel SDK
License:        Apache 2.0
Source0:        https://gitlab.control.lth.se/anders_blomdell/dynamixel/-/archive/master/dynamixel-0.1.tar.gz

%define debug_package %{nil}

%if 0%{!?python3_pkgversion:1}
%define python3_pkgversion 3
%endif

BuildRequires:  python3-devel
Requires:  dynamixel-sdk

%description
Wrapper for Dynamixel SDK

%package python%{python3_pkgversion}
Summary: Python3 support files for %{name}
Requires: %{name} = %{version}-%{release}

%description python%{python3_pkgversion}
Wrapper for Dynamixel SDK

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


%build
make DYNAMIXEL_VERSION=%{version}

%install
rm -rf ${RPM_BUILD_ROOT}

# Python
export DYNAMIXEL_VERSION=%{version}
%{__python3} setup.py install -O1 \
             --root=$RPM_BUILD_ROOT --prefix /usr \
             --record=INSTALLED_python3

%files

%files python%{python3_pkgversion} -f INSTALLED_python3
%defattr(-,root,root,-)