use DIST variable to see if el7

This commit is contained in:
joshuaboud 2021-06-17 16:44:30 -03:00
parent 975e55412b
commit a24945ac82
No known key found for this signature in database
GPG Key ID: 17EFB59E2A8BF50E
2 changed files with 2 additions and 4 deletions

View File

@ -21,7 +21,7 @@ all: default
install:
mkdir -p $(DESTDIR)/usr/share/cockpit/
cp -rpf navigator $(DESTDIR)/usr/share/cockpit
ifeq ($(EL7),1)
ifeq ($(DIST),"el7")
sed -i "s/pf-c-button/btn/g;s/pf-m-primary/btn-primary/g;s/pf-m-secondary/btn-default/g;s/pf-m-danger/btn-danger/g" $(DESTDIR)/usr/share/cockpit/navigator/navigator.html
endif

View File

@ -21,9 +21,7 @@ A File System Browser for Cockpit.
# empty
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}
cp -a * %{buildroot}
make DESTDIR=%{buildroot} DIST=%{dist} install
%clean
rm -rf %{buildroot}