-
Notifications
You must be signed in to change notification settings - Fork 0
/
encdec.spec
121 lines (89 loc) · 3.55 KB
/
encdec.spec
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
%ifarch aarch64
%global _arch aarch64
%global BuildArchitectures aarch64
%endif
%ifarch x86_64
%global _arch x86_64
%global BuildArchitectures x86_64
%endif
%define debug_package %{nil}
%define _build_id_links none
%define _name encdec
%define _prefix /opt
%define _version 1.21.02
%define _rel 0
#%define _arch aarch64
%define _binaryname encdec
Name: encdec
Version: %{_version}
Release: %{_rel}
Summary: encdec
Group: SSL
License: GPL2.0
URL: https://github.com/jeanfrancoisgratton/encdec
Source0: %{name}-%{_version}.tar.gz
#BuildArchitectures: aarch64
BuildRequires: gcc
%description
Encode and decode AES-256 strings and files
%prep
%autosetup
%build
cd %{_sourcedir}/%{_name}-%{_version}/src
PATH=$PATH:/opt/go/bin go build -o %{_sourcedir}/%{_binaryname} .
strip %{_sourcedir}/%{_binaryname}
%clean
rm -rf $RPM_BUILD_ROOT
%pre
exit 0
%install
install -Dpm 0755 %{_sourcedir}/%{_binaryname} %{buildroot}%{_bindir}/%{_binaryname}
%post
%preun
%postun
%files
%defattr(-,root,root,-)
%{_bindir}/%{_binaryname}
%changelog
* Tue Aug 13 2024 RPM Builder <[email protected]> 1.21.02-0
- global variable re-scoping ([email protected])
* Mon Aug 12 2024 RPM Builder <[email protected]> 1.21.01-0
- version bump, and tag fix in GHA ([email protected])
* Mon Aug 12 2024 RPM Builder <[email protected]> 1.21.00-0
- inverted the -q switch ([email protected])
* Mon Aug 12 2024 RPM Builder <[email protected]> 1.20.01-2
- Go and package version bump ([email protected])
* Sun Aug 11 2024 RPM Builder <[email protected]> 1.20.01-1
- Make the specfile more arch-independant ([email protected])
* Sun Aug 11 2024 RPM Builder <[email protected]> 1.20.01-0
- Changed arch moniker on aarch64 ([email protected])
- Fixed -q issue ([email protected])
* Fri Aug 09 2024 RPM Builder <[email protected]> 1.20.00-0
- Better file handling, gha added, go version bump (jean-
* Tue Jun 25 2024 RPM Builder <[email protected]> 1.10.00-0
- Added a -q switch ([email protected])
- Updated to GO 1.22.4 ([email protected])
* Mon Nov 06 2023 RPM Builder <[email protected]> 1.02.00-1
- Go version bump ([email protected])
* Mon Nov 06 2023 RPM Builder <[email protected]> 1.02.00-0
- Fixed argcount error, version numbering scheme change (jean-
- Fixed chown issue in packaging ([email protected])
* Wed Aug 02 2023 builder <[email protected]> 1.000-1
- Updated changelog and some forgotten relase numbers in packaging scripts
* Wed Aug 02 2023 builder <[email protected]> 1.000-0
- Prod-ready release: 1.000-0 ([email protected])
* Mon Jul 31 2023 builder <[email protected]> 0.200-1
- Doc and version updates ([email protected])
* Mon Jul 31 2023 builder <[email protected]> 0.200-0
- Go version bump, also forgotten in previous commits ([email protected])
- Version bump (forgotten in previous commit) (jean-
- Completed 0.200 ([email protected])
- File Dec-Enc facilities, stub 1 ([email protected])
- New brandh to fully encode/decode files ([email protected])
* Mon Jul 10 2023 builder <[email protected]> 0.100-0
- new package built with tito