Skip to content

Commit

Permalink
GitHub release as source for spec file
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtechtrefny committed Jan 22, 2015
1 parent 513f234 commit 061ca15
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ APPNAME=blivet-gui
SPECFILE=blivet-gui.spec
VERSION=$(shell awk '/Version:/ { print $$2 }' $(SPECFILE))
RELEASE=$(shell awk '/Release:/ { print $$2 }' $(SPECFILE) | sed -e 's|%.*$$||g')
RELEASE_TAG=$(APPNAME)-$(VERSION)-$(RELEASE)
VERSION_TAG=$(APPNAME)-$(VERSION)
RELEASE_TAG=$(VERSION)-$(RELEASE)
VERSION_TAG=$(VERSION)

L10N_FILES = po
ZANATA_PULL_ARGS = -B
Expand Down Expand Up @@ -50,7 +50,7 @@ release: check tag archive
archive: po-pull
@rm -f ChangeLog
$(MAKE) ChangeLog
git archive --format=tar --prefix=$(APPNAME)-$(VERSION)/ $(VERSION_TAG) > $(APPNAME)-$(VERSION).tar
git archive --format=tar --prefix=$(APPNAME)-$(VERSION)/ $(RELEASE_TAG) > $(APPNAME)-$(VERSION)-$(RELEASE).tar
mkdir $(APPNAME)-$(VERSION)
cp -r po $(APPNAME)-$(VERSION)
cp ChangeLog $(APPNAME)-$(VERSION)/
Expand Down
7 changes: 5 additions & 2 deletions blivet-gui.spec
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Summary: Tool for data storage configuration
Name: blivet-gui
Version: 0.2.0
Release: 5%{?dist}
Source0: https://github.com/rhinstaller/blivet-gui/archive/%{name}-%{version}.tar.gz
Release: 6%{?dist}
Source0: http://github.com/rhinstaller/blivet-gui/releases/download/%{version}-6/%{name}-%{version}-6.tar.gz
License: GPLv2+
Group: Applications/System
BuildArch: noarch
Expand Down Expand Up @@ -50,6 +50,9 @@ desktop-file-validate %{buildroot}/%{_datadir}/applications/blivet-gui.desktop

%changelog

* Thu Jan 22 2015 Vojtech Trefny <vtrefny@redhat.com> - 0.2.0-6
- GitHub release as source for spec file (vtrefny)

* Thu Jan 22 2015 Vojtech Trefny <vtrefny@redhat.com> - 0.2.0-5
- Fixed macro-in-changelog rpmlint warning (vtrefny)

Expand Down

0 comments on commit 061ca15

Please sign in to comment.