Skip to content

Commit

Permalink
Update spec files Source0
Browse files Browse the repository at this point in the history
The Source0 currently does not lead to the correct source file.
This updates the spec file and renames the source to what would be
the expected source name.

ref pulp#2784
https://pulp.plan.io/issues/2784
  • Loading branch information
zjhuntin committed May 31, 2017
1 parent 302ae96 commit 51a60b1
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions pulp.spec
Expand Up @@ -31,17 +31,22 @@
# Required gofer version
%global gofer_version 2.5

# The release number
%global release_number 0.1.alpha

# Create tag for the Source0 and setup
%global git_tag %{name}-%{version}-%{release_number}

# ---- Pulp Platform -----------------------------------------------------------

Name: pulp
Version: 2.14.0
Release: 0.1.alpha%{?dist}
Release: %{release_number}%{?dist}
Summary: An application for managing software content
Group: Development/Languages
License: GPLv2
URL: https://fedorahosted.org/pulp/
Source0: https://github.com/%{name}/%{name}/archive/%{name}-%{version}.tar.gz
URL: http://pulpproject.org/
Source0: https://codeload.github.com/pulp/%{name}/tar.gz/%{git_tag}#/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python2-devel
Expand All @@ -59,7 +64,7 @@ BuildRequires: rpm-python
Pulp provides replication, access, and accounting for software repositories.

%prep
%setup -q
%setup -q -n %{name}-%{git_tag}

%build
for directory in agent bindings client_consumer client_lib common devel
Expand Down

0 comments on commit 51a60b1

Please sign in to comment.