diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-07-05 11:17:09 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-07-05 11:17:09 +0200 |
| commit | d286da10015ece8568954639a1297f3f5b8f427b (patch) | |
| tree | efce255862e6ad2e6d71bee7f05cba00cfc66616 /eduvpncommon.spec | |
| parent | c128cb06819832929f96122beb567f23b0d7aa99 (diff) | |
RPM: Add spec file
Diffstat (limited to 'eduvpncommon.spec')
| -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}* |
