Skip to content

Commit 9baee27

Browse files
committed
Converts git source to using tags instead of commit hashes.
1 parent 0525dfc commit 9baee27

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

rpm/specfiles/simengine-core.spec

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ Summary: SimEngine - Core
55
URL: https://github.com/Seneca-CDOT/simengine
66
License: GPLv3+
77

8-
%global commit 1950343e75fcc5b647392e0b7925052d8a1b916f
9-
%global shortcommit %(c=%{commit}; echo ${c:0:7})
8+
%global gittag v0.1-beta
109

11-
Source0: https://github.com/Seneca-CDOT/simengine/archive/%{commit}/simengine-%{commit}.tar.gz
10+
Source0: https://github.com/Seneca-CDOT/simengine/archive/simengine-%{gittag}.tar.gz
1211

1312
BuildRequires: OpenIPMI-devel, gcc
1413
Requires: simengine-database, python3-libvirt, OpenIPMI, OpenIPMI-lanserv, python3-redis, python2-redis, python3-pysnmp, python3-neo4j-driver
@@ -22,10 +21,10 @@ Core files for SimEngine.
2221
pip3 install circuits
2322

2423
%prep
25-
%autosetup -n simengine-%{commit}
24+
%autosetup -n simengine-%{gittag}
2625

2726
%build
28-
gcc -shared -o %{_builddir}/simengine-%{commit}/haos_extend.so -fPIC %{_builddir}/simengine-%{commit}/enginecore/ipmi_sim/haos_extend.c
27+
gcc -shared -o %{_builddir}/simengine-%{gittag}/haos_extend.so -fPIC %{_builddir}/simengine-%{gittag}/enginecore/ipmi_sim/haos_extend.c
2928

3029
%install
3130
mkdir -p %{buildroot}%{_datadir}/simengine/
@@ -53,7 +52,7 @@ systemctl enable simengine-core.service --now
5352
%changelog
5453
* Thu Aug 23 2018 Chris Johnson <chris.johnson@senecacollege.ca>
5554
- Converted paths to macros where applicable
56-
- Changed source to GitHub URL
55+
- Changed source to GitHub URL using gittag release version
5756

5857
* Thu Aug 16 2018 Chris Johnson <chris.johnson@senecacollege.ca>
5958
- Updated dependencies

0 commit comments

Comments
 (0)