summaryrefslogtreecommitdiff
path: root/rpm/SPECS/python3-eduvpn-common.spec
blob: 60244bb385ba7125551aca0d6860978f1fe74f5e (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
%global gomodulesmode GO111MODULE=on
    
Name:           python3-eduvpn-common
Version:        5.0.0
Release:        1%{?dist}
Summary:        Python3 eduvpn-common wrapper

License:        MIT
URL:            https://codeberg.org/eduVPN/eduvpn-common
Source0:        eduvpn-common-%{version}.tar.xz

BuildRequires:  gcc
BuildRequires:  golang
BuildRequires:  minisign
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-wheel
BuildRequires:  go-rpm-macros

%description
The python wrapper for the eduVPN common Go shared library

%prep
%setup -qn eduvpn-common-%{version}

%build
# build the Go component
export CGO_ENABLED=1 
%gobuild -o lib/libeduvpn_common-%{version}.so "-buildmode=c-shared" ./exports

# build the Python component
pushd wrappers/python
%py3_build
popd

%install
install -m 0755 -D -p lib/libeduvpn_common-%{version}.so %{buildroot}%{_libdir}/libeduvpn_common-%{version}.so

pushd wrappers/python
%py3_install
popd

%files
%{_libdir}/*
%{python3_sitelib}/eduvpn_common/
%{python3_sitelib}/eduvpn_common-%{version}*

%changelog
* Tue Mar 17 2026 Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> - 5.0.0-1
- New version

* Thu Oct 09 2025 Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> - 4.0.0-1
- update to 4.0.0

* Thu Apr 17 2025 jwijenbergh <jeroen.wijenbergh@geant.org> - 3.0.0-1
- update to 3.0.0

* Thu Oct 31 2024 jwijenbergh <jeroen.wijenbergh@geant.org> - 2.1.0-2
- rebuilt

* Tue Jul 30 2024 jwijenbergh <jeroen.wijenbergh@geant.org> - 2.1.0-1
- update to 2.1.0

* Tue Jun 25 2024 jwijenbergh <jeroen.wijenbergh@geant.org> - 2.0.2-1
- update to 2.0.2

* Thu Jun 06 2024 Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> - 2.0.1-1
- update to 2.0.1

* Wed Jun 05 2024 Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> - 2.0.0-1
- update to 2.0.0

* Fri May 24 2024 Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> - 1.2.1-1
- update to 1.2.1

* Fri Dec 08 2023 Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> - 1.2.0-1
- update to 1.2.0

* Fri Sep 01 2023 Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> - 1.1.2-1
- update to 1.1.2

* Tue Aug 29 2023 Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> - 1.1.1-1
- update to 1.1.1

* Tue Apr 18 2023 Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> - 1.1.0-1
- update to 1.1.0

* Wed Mar 01 2023 Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> - 1.0.0-1
- initial package