Skip to content

Commit dfb7068

Browse files
committed
pkg/fedora: Clean up build scripts
1 parent 5276c1c commit dfb7068

File tree

3 files changed

+5
-16
lines changed

3 files changed

+5
-16
lines changed

pkg/fedora/makerpm

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff 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"
8885
done
8986

9087
spectool \
@@ -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
120117
done
121-

pkg/fedora/surface-control

Lines changed: 0 additions & 1 deletion
This file was deleted.

pkg/fedora/surface-control.spec

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ devices.
1919
%prep
2020

2121
%build
22-
cd surface-control
23-
2422
export CARGO_TARGET_DIR="$PWD/target"
2523
export CARGO_INCREMENTAL=0
2624

@@ -29,16 +27,12 @@ strip --strip-all "target/release/surface"
2927

3028
%install
3129
rm -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

0 commit comments

Comments
 (0)