remove "-DEV" from useragent ("curl/7.74.0-DEV" -> "curl/7.74.0")

This commit is contained in:
Mikhail Novosyolov 2021-02-02 11:42:40 +03:00
parent f93ec7ad6c
commit bc804a7d20

View file

@ -42,7 +42,7 @@
Summary: Gets a file from a FTP, GOPHER or HTTP server
Name: curl
Version: 7.74.0
Release: 1
Release: 2
Epoch: 1
License: BSD-like
Group: Networking/Other
@ -222,6 +222,9 @@ for i in %{ssl_list}; do
cp -r $(ls -1v | grep -vE "$regexp") "$i"/
done
# remove "-DEV" from useragent ("curl/7.74.0-DEV" -> "curl/7.74.0")
sed -i -e 's,-DEV\",\",' include/curl/curlver.h
# %%_docs copy docs/*.md, remove odd ones
rm -fv docs/README.md
# build scripts seem to remove useful files, backup them