aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2020-07-15 08:29:43 -0400
committerB Stack <bgstack15@gmail.com>2020-07-15 08:29:43 -0400
commit29a65028407cf81fe4b100c986f0ab68b979da1f (patch)
tree6a77edfc994abe3e49759a313fa7b9a79e0d1018
parentrpm rc1 (diff)
downloadchicago95-packages-29a65028407cf81fe4b100c986f0ab68b979da1f.tar.gz
chicago95-packages-29a65028407cf81fe4b100c986f0ab68b979da1f.tar.bz2
chicago95-packages-29a65028407cf81fe4b100c986f0ab68b979da1f.zip
WIP: add %obsbuild condition
Adding an attribute to OBS project (https://en.opensuse.org/openSUSE:Build_Service_prjconf#Macros) and using it in the spec to change the tarball name means we can use the one downloaded tarball for the dpkg and rpm. So the theory goes.
-rw-r--r--chicago95.spec6
1 files changed, 5 insertions, 1 deletions
diff --git a/chicago95.spec b/chicago95.spec
index 45e56cb..f7ec125 100644
--- a/chicago95.spec
+++ b/chicago95.spec
@@ -3,6 +3,10 @@
# debian/ for this package
%define debug_package %{nil}
%define committish master
+%define archivename %{committish}.tar.gz
+%if 0%{?obsbuild}
+%define archivename Chicago95.tar.gz
+%endif
Name: chicago95-theme
Version: 2.0.1
Release: 1%{?dist}
@@ -11,7 +15,7 @@ Summary: XFCE Windows 95 Total Conversion
Group: User Interface/Desktops
License: GPLv3.0+/MIT
URL: https://github.com/grassmunk/Chicago95
-Source0: https://github.com/grassmunk/Chicago95/archive/%{committish}.tar.gz
+Source0: https://github.com/grassmunk/Chicago95/archive/%{archivename}
BuildArch: noarch
Packager: B Stack <bgstack15@gmail.com>
bgstack15