diff options
| -rw-r--r-- | eduvpncommon.spec | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/eduvpncommon.spec b/eduvpncommon.spec new file mode 100644 index 0000000..26c5535 --- /dev/null +++ b/eduvpncommon.spec @@ -0,0 +1,51 @@ +%global modname eduvpncommon +%global sum eduVPN common Go library + +Name: lib%{modname} +Version: 0.1.0 +Release: 1%{?dist} +Summary: %{sum} + +License: MIT +URL: https://github.com/jwijenbergh/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-%{modname} +BuildArch: noarch +Requires: %{name} +Summary: Python3 eduvpncommon wrapper + +%description -n python3-%{modname} +The python wrapper for the eduVPN common Go shared library + +%files -n python3-%{modname} +%{python3_sitelib}/%{modname}/ +%{python3_sitelib}/%{modname}-%{version}* |
