Skip to content
Snippets Groups Projects
Commit 4b8dec15 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Cleanup .srpm generation

parent 1e0be74d
Branches
No related tags found
No related merge requests found
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,-)
......@@ -12,7 +12,6 @@ Source0: https://gitlab.control.lth.se/anders_blomdell/dynamixel/-/archiv
%endif
BuildRequires: python3-devel
Requires: dynamixel-sdk
%description
Wrapper for Dynamixel SDK
......@@ -20,6 +19,7 @@ Wrapper for Dynamixel SDK
%package python%{python3_pkgversion}
Summary: Python3 support files for %{name}
Requires: %{name} = %{version}-%{release}
Requires: python3-dynamixel-sdk
%description python%{python3_pkgversion}
Wrapper for Dynamixel SDK
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment