File tree Expand file tree Collapse file tree 3 files changed +5
-16
lines changed Expand file tree Collapse file tree 3 files changed +5
-16
lines changed Original file line number Diff line number Diff line change @@ -81,10 +81,7 @@ for file in $FILES; do
8181 [ " $file " = " $DIR /$BUILD " ] && continue
8282 [ " $file " = " $DIR /$RPMS " ] && continue
8383
84- # this three-step process is required to properly handle symlinks to source root
85- mkdir -p " /tmp/makerpm/$( dirname " $file " ) "
86- cp -rH " $file " " /tmp/makerpm/$file "
87- mv " /tmp/makerpm/$file " " $DIR /$BUILD "
84+ cp -r " $file " " $DIR /$BUILD "
8885done
8986
9087spectool \
@@ -118,4 +115,3 @@ for file in $(find out/ -name '*.rpm'); do
118115 rpm --resign $file --define " _gpg_name $KEY " 2>&1 > /dev/null
119116 fi
120117done
121-
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -19,8 +19,6 @@ devices.
1919%prep
2020
2121%build
22- cd surface-control
23-
2422export CARGO_TARGET_DIR=" $PWD /target"
2523export CARGO_INCREMENTAL=0
2624
@@ -29,16 +27,12 @@ strip --strip-all "target/release/surface"
2927
3028%install
3129rm -rf %{buildroot }
32- install -D -m755 " surface-control/target/release/surface" " %{buildroot}/usr/bin/surface"
33- install -D -m644 " surface-control/target/surface.bash" " %{buildroot}/usr/share/bash-completion/completions/surface"
34- install -D -m644 " surface-control/target/_surface" " %{buildroot}/usr/share/zsh/site-functions/_surface"
35- install -D -m644 " surface-control/target/surface.fish" " %{buildroot}/usr/share/fish/vendor_completions.d/surface.fish"
36-
37- %pre
38- %sysusers_create_package %{name } " surface-control/etc/sysusers/surface-control.conf"
30+ install -D -m755 " target/release/surface" " %{buildroot}/usr/bin/surface"
31+ install -D -m644 " target/surface.bash" " %{buildroot}/usr/share/bash-completion/completions/surface"
32+ install -D -m644 " target/_surface" " %{buildroot}/usr/share/zsh/site-functions/_surface"
33+ install -D -m644 " target/surface.fish" " %{buildroot}/usr/share/fish/vendor_completions.d/surface.fish"
3934
4035%files
41- %license surface-control/LICENSE
4236/usr/bin/surface
4337/usr/share/bash-completion/completions/surface
4438/usr/share/zsh/site-functions/_surface
You can’t perform that action at this time.
0 commit comments