From 29a65028407cf81fe4b100c986f0ab68b979da1f Mon Sep 17 00:00:00 2001 From: B Stack Date: Wed, 15 Jul 2020 08:29:43 -0400 Subject: 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. --- chicago95.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit