Last active
February 6, 2020 15:02
-
-
Save AdamSaleh/84ad48974cdb8436fb24efeb77633733 to your computer and use it in GitHub Desktop.
Spec-file with lua exec
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Our dummy-test-packages are named after canary varieties, meet Gloster, Rubino and Crested | |
# Source: https://www.omlet.co.uk/guide/finches_and_canaries/canary/canary_varieties | |
Name: dummy-test-package-gloster | |
%{lua: | |
local lcmd = "git --no-pager log --after=2018-01-28 --pretty=oneline --format='%w(1000)**%h**%n* %cd %an <%ae>%n%w(60,0,2)- %s%n' --date='format:%a %b %d %Y'" | |
local logfile = io.popen(lcmd) | |
log = "" | |
comits = 0 | |
for l in logfile:lines() do | |
log = log..l..'\n' | |
if l:sub(1,2) == "**" then | |
comits = comits + 1 | |
end | |
end | |
} | |
Version: 0 | |
Release: %{lua: print(comits)}%{?dist} | |
Summary: Dummy Test Package called Gloster | |
License: CC0 | |
URL: http://fedoraproject.org/wiki/DummyTestPackages | |
# The tarball contains a file with an uuid to test later and a LICENSE | |
Source0: %{name}-%{version}.tar.gz | |
BuildArch: noarch | |
%description | |
This is a dummy test package for the purposes of testing if the Fedora CI | |
pipeline is working. There is nothing useful here. | |
Package ID test: | |
%{lua: | |
local curl_cmd = "curl -X POST 'https://koji.stg.fedoraproject.org/kojihub' -d '<methodCall><methodName>getPackageID</methodName><params><param><value>dummy-test-package-crested</value></param></params></methodCall>'" | |
local response = io.popen(curl_cmd) | |
for l in response:lines() do | |
print(l) | |
end | |
} | |
%prep | |
%autosetup | |
%build | |
# nothing to do | |
%install | |
mkdir -p %{buildroot}%{_datadir} | |
cp -p uuid %{buildroot}%{_datadir}/%{name} | |
%files | |
%license LICENSE | |
%{_datadir}/%{name} | |
%changelog | |
%{lua: print(log)} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name: dummy-test-package-gloster | |
Version: 0 | |
Release: 39.fc31 | |
Summary: Dummy Test Package called Gloster | |
License: CC0 | |
URL: http://fedoraproject.org/wiki/DummyTestPackages | |
Source0: dummy-test-package-gloster-0.tar.gz | |
BuildArch: noarch | |
%description | |
This is a dummy test package for the purposes of testing if the Fedora CI | |
pipeline is working. There is nothing useful here. | |
Package ID test: | |
<?xml version='1.0'?><methodResponse><params><param><value><int>30500</int></value></param></params></methodResponse> | |
%prep | |
%setup -q | |
%build | |
# nothing to do | |
%install | |
mkdir -p /home/asaleh/rpmbuild/BUILDROOT/dummy-test-package-gloster-0-39.fc31.x86_64/usr/share | |
cp -p uuid /home/asaleh/rpmbuild/BUILDROOT/dummy-test-package-gloster-0-39.fc31.x86_64/usr/share/dummy-test-package-gloster | |
%files | |
%license LICENSE | |
/usr/share/dummy-test-package-gloster | |
%changelog | |
**61230c6** | |
* Thu Jan 30 2020 Adam Saleh <[email protected]> | |
- Bump release | |
**d47b71e** | |
* Thu Jan 30 2020 Adam Saleh <[email protected]> | |
- Bump release | |
**c43adc5** | |
* Thu Jan 30 2020 Adam Saleh <[email protected]> | |
- Bump release | |
**711a25e** | |
* Thu Jan 30 2020 Adam Saleh <[email protected]> | |
- Bump release | |
**c642bbd** | |
* Thu Jan 30 2020 Adam Saleh <[email protected]> | |
- Bump release | |
**1f636ce** | |
* Wed Jan 29 2020 Adam Saleh <[email protected]> | |
- Bump release | |
**96d09ea** | |
* Tue Jan 28 2020 Adam Saleh <[email protected]> | |
- Bump release | |
**4c3c313** | |
* Tue Jan 28 2020 Adam Saleh <[email protected]> | |
- Bump release | |
**2421d12** | |
* Tue Jan 28 2020 Adam Saleh <[email protected]> | |
- Bump release | |
**bf7bc15** | |
* Tue Jan 28 2020 Adam Saleh <[email protected]> | |
- Bump release | |
**920bd0c** | |
* Tue Jan 28 2020 Adam Saleh <[email protected]> | |
- Bump release | |
**2d34750** | |
* Tue Jan 28 2020 Adam Saleh <[email protected]> | |
- Bump release | |
**77856e6** | |
* Tue Jan 28 2020 Adam Saleh <[email protected]> | |
- Bump release | |
**c92e635** | |
* Tue Jan 28 2020 Adam Saleh <[email protected]> | |
- Bump release | |
**321891b** | |
* Mon Jan 27 2020 Adam Saleh <[email protected]> | |
- Bump release | |
**639dcb8** | |
* Mon Jan 27 2020 Adam Saleh <[email protected]> | |
- Bump release | |
**7719941** | |
* Sat Jan 25 2020 Pierre-Yves Chibon <[email protected]> | |
- Bump release | |
**e4a1028** | |
* Sat Jan 25 2020 Pierre-Yves Chibon <[email protected]> | |
- Bump release | |
**02e2a9e** | |
* Sat Jan 25 2020 Pierre-Yves Chibon <[email protected]> | |
- Bump release | |
**b8865ea** | |
* Sat Jan 25 2020 Pierre-Yves Chibon <[email protected]> | |
- Bump release | |
**5bb92a1** | |
* Sat Jan 25 2020 Pierre-Yves Chibon <[email protected]> | |
- Bump release | |
**02cea4d** | |
* Sat Jan 25 2020 Pierre-Yves Chibon <[email protected]> | |
- Bump release | |
**6bb4185** | |
* Sat Jan 25 2020 Pierre-Yves Chibon <[email protected]> | |
- Bump release | |
**9c93d08** | |
* Fri Jan 24 2020 Pierre-Yves Chibon <[email protected]> | |
- Bump release | |
**473aa7e** | |
* Fri Jan 24 2020 Pierre-Yves Chibon <[email protected]> | |
- Bump release | |
**6f0610e** | |
* Fri Jan 24 2020 Pierre-Yves Chibon <[email protected]> | |
- Bump release | |
**8220527** | |
* Fri Jan 24 2020 Pierre-Yves Chibon <[email protected]> | |
- Bump release | |
**6877dfc** | |
* Fri Jan 24 2020 Pierre-Yves Chibon <[email protected]> | |
- Bump release | |
**ad77870** | |
* Fri Jan 24 2020 Pierre-Yves Chibon <[email protected]> | |
- Bump release | |
**3a454c3** | |
* Tue Jan 21 2020 Pierre-Yves Chibon <[email protected]> | |
- Bump release | |
**f402fe8** | |
* Tue Jan 21 2020 Pierre-Yves Chibon <[email protected]> | |
- Bump release | |
**9e94797** | |
* Tue Jan 21 2020 Pierre-Yves Chibon <[email protected]> | |
- Bump release | |
**ad22667** | |
* Tue Jan 21 2020 Pierre-Yves Chibon <[email protected]> | |
- Bump release | |
**c1dadd1** | |
* Thu Jan 16 2020 Pierre-Yves Chibon <[email protected]> | |
- Bump release | |
**117c649** | |
* Fri Jan 10 2020 Pierre-Yves Chibon <[email protected]> | |
- Bump release | |
**44de06c** | |
* Fri Jan 10 2020 Pierre-Yves Chibon <[email protected]> | |
- Bump release | |
**412c8e5** | |
* Thu Jan 09 2020 Pierre-Yves Chibon <[email protected]> | |
- Add gating.yaml and some tests | |
**89ff7c2** | |
* Thu Jan 09 2020 Pierre-Yves Chibon <[email protected]> | |
- Initial import post review | |
**6675323** | |
* Wed Jan 08 2020 Gwyn Ciesla <[email protected]> | |
- Added the README | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment