Skip to content

Commit b166053

Browse files
authored
build: use _topdir macro instead of hardcoded relative path (#1749)
1 parent add48c1 commit b166053

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build/resources/rpm/SPECS/build.spec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ mkdir -p %{buildroot}/opt/sourcegit
2020
mkdir -p %{buildroot}/%{_bindir}
2121
mkdir -p %{buildroot}/usr/share/applications
2222
mkdir -p %{buildroot}/usr/share/icons
23-
cp -f ../../../SourceGit/* %{buildroot}/opt/sourcegit/
23+
cp -f %{_topdir}/../../SourceGit/* %{buildroot}/opt/sourcegit/
2424
ln -rsf %{buildroot}/opt/sourcegit/sourcegit %{buildroot}/%{_bindir}
25-
cp -r ../../_common/applications %{buildroot}/%{_datadir}
26-
cp -r ../../_common/icons %{buildroot}/%{_datadir}
25+
cp -r %{_topdir}/../_common/applications %{buildroot}/%{_datadir}
26+
cp -r %{_topdir}/../_common/icons %{buildroot}/%{_datadir}
2727
chmod 755 -R %{buildroot}/opt/sourcegit
2828
chmod 755 %{buildroot}/%{_datadir}/applications/sourcegit.desktop
2929

0 commit comments

Comments
 (0)