Skip to content
Snippets Groups Projects
Commit 3007ae09 authored by Thibault Cohen's avatar Thibault Cohen
Browse files

Fix repo package

Change-Id: Iab4e52fa5f3b03a1b3809902549b980aa4eab186
(cherry picked from commit cf78cede)
parent d466cee7
No related branches found
No related tags found
No related merge requests found
......@@ -5,8 +5,8 @@ PKD = $(abspath $(dir $(MAKEFILE_LIST)))
#PKG = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog --show-field=Source))
PKG = $(shell dpkg-parsechangelog -l$(PKD)/changelog --show-field=Source)
VER ?= $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s+(?:\d+:)?(\d.*)(?:\-\d+.*)};')
DISTRIB_ID = $(shell grep -hPo "ID=\K.*" /etc/*ease)
DISTRIB_VERSION_ID = $(shell grep -hPo "VERSION_ID=\K.*" /etc/*ease)
DISTRIB_ID = $(shell grep -hPo "^ID=\K.*" /etc/*ease)
DISTRIB_VERSION_ID = $(shell grep -hPo "^VERSION_ID=\K.*" /etc/*ease)
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
......
......@@ -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,13 @@ make -j %{?_smp_mflags}
%install
mkdir -p %{buildroot}/ring-daemon
make DESTDIR=%{buildroot} install
mkdir -p %{buildroot}/%{_sysconfdir}/yum.repo.d/
echo '[ring]' > %{buildroot}/%{_sysconfdir}/yum.repo.d/ring-nightly.repo
echo 'name=Fedora $releasever - $basearch - ring' >> %{buildroot}/%{_sysconfdir}/yum.repo.d/ring-nightly.repo
echo 'baseurl=http://nightly.yum.ring.cx/fedora_$releasever' >> %{buildroot}/%{_sysconfdir}/yum.repo.d/ring-nightly.repo
echo 'enabled=1' >> %{buildroot}/%{_sysconfdir}/yum.repo.d/ring-nightly.repo
echo 'gpgcheck=0' >> %{buildroot}/%{_sysconfdir}/yum.repo.d/ring-nightly.repo
%files
%defattr(-,root,root,-)
......@@ -76,6 +90,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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment