blob: d973edca8656cf8f218b15cddcfb6659dbace77d (
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
51
52
|
%global libname eduvpn-common
%global modname eduvpn_common
%global sum eduVPN common Go library
Name: lib%{libname}
Version: 0.2.0
Release: 1%{?dist}
Summary: %{sum}
License: MIT
URL: https://github.com/eduvpn/eduvpn-common
Source0: %{name}.tar.gz
BuildRequires: make
BuildRequires: gcc
BuildRequires: golang
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-wheel
%description
The client side Go shared library to interact with eduVPN servers
%build
make
pushd wrappers/python
%py3_build
popd
%install
mkdir -p ${RPM_BUILD_ROOT}%_libdir
find exports/lib -name '*.so' -exec mv {} ${RPM_BUILD_ROOT}%_libdir/ \;
pushd wrappers/python
%py3_install
popd
%files
%_libdir/*.so
%prep
%autosetup -n %{name}-%{version}
%package -n python3-%{libname}
BuildArch: noarch
Requires: %{name} >= 0.2.0, %{name} < 0.3.0
Summary: Python3 eduvpncommon wrapper
%description -n python3-%{libname}
The python wrapper for the eduVPN common Go shared library
%files -n python3-%{libname}
%{python3_sitelib}/%{modname}/
%{python3_sitelib}/%{modname}-%{version}*
|