Commit 2f8733b0 authored by Hugo Hörnquist's avatar Hugo Hörnquist
Browse files

Better turnaround time when testing localy.

parent 2aa68708
Pipeline #634 passed with stage
in 1 minute and 18 seconds
......@@ -3,7 +3,7 @@ image: centos:7
build:
script:
- yum install -y rpmdevtools
- rpmbuild -ba lysator-repo.spec
- rpmbuild -bb lysator-repo.spec
artifacts:
paths:
- $HOME/rpmbuild/RPMS
......@@ -12,11 +12,13 @@ Packager: Hugo Hörnquist <hugo@lysator.liu.se>
Meta-package for adding Lysator local repository
%prep
pwd
find . -mindepth 1 -delete
cp -af %{SOURCEURL0}/. .
%install
cp lysator.repo /etc/yum.repos.d/lysator.repo
mkdir -p $RPM_BUILD_ROOT/etc/yum.repos.d
cp lysator.repo $RPM_BUILD_ROOT/etc/yum.repos.d/lysator.repo
%files
%{_prefix}/etc/yum.repos.d/lysator.repo
/etc/yum.repos.d/lysator.repo
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment