From d49ca023d518e860dda56e9175a475cf046baf4c Mon Sep 17 00:00:00 2001 From: Thibault Cohen <thibault.cohen@savoirfairelinux.com> Date: Mon, 13 Apr 2015 15:25:28 -0400 Subject: [PATCH] Add repo package for fedora Change-Id: Ib6ca1e6a1fd28c071ff5fd6fc1099993fd3ed24f --- ring-daemon.spec | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ring-daemon.spec b/ring-daemon.spec index 8c992a0739..52e10c35f3 100644 --- a/ring-daemon.spec +++ b/ring-daemon.spec @@ -29,6 +29,13 @@ Group: Applications/Internet Ring is free software for distributed and secured communication. This is the daemon headers. +%package repository +Summary: Free software for distributed and secured communication. +Group: Applications/Internet + +%description repository +Ring is free software for distributed and secured communication. +This is the ring repository %prep %setup -q @@ -62,6 +69,14 @@ make -j %{?_smp_mflags} %install mkdir -p %{buildroot}/ring-daemon make DESTDIR=%{buildroot} install +cat << EOF > %{buildroot}/%{_sysconfdir}/yum.repo.d/ring.repo +[ring] +name=Fedora $releasever - $basearch - ring +baseurl=http://nightly.yum.ring.cx/fedora_$releasever +enabled=1 +gpgcheck=0 +EOF + %files %defattr(-,root,root,-) @@ -76,6 +91,9 @@ make DESTDIR=%{buildroot} install %{_libdir}/libring.a /usr/include/dring/ +%files repository +%config %{_sysconfdir}/yum.repo.d/ring-nightly.repo + %changelog * Fri Mar 27 2015 Thibault Cohen <thibault.cohen@savoirfairelinux.com> - 2.0.1-1 - New upstream version -- GitLab