Skip to content

Commit

Permalink
make-srpm.sh: sync the spec file with Fedora
Browse files Browse the repository at this point in the history
  • Loading branch information
kdudka committed Jan 28, 2021
1 parent e14d5b5 commit 95583ee
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions make-srpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ NV="${PKG}-${VER}"
printf "\n%s: preparing a release of \033[1;32m%s\033[0m\n\n" "$SELF" "$NV"

TMP="`mktemp -d`"
trap "echo --- $SELF: removing $TMP... 2>&1; rm -rf '$TMP'" EXIT
trap "rm -rf '$TMP'" EXIT
cd "$TMP" >/dev/null || die "mktemp failed"

# clone the repository
Expand Down Expand Up @@ -92,8 +92,12 @@ Source0: https://github.com/kdudka/nss-pem/releases/download/$NV/$SRC
BuildRequires: cmake
BuildRequires: gcc
BuildRequires: make
BuildRequires: nss-pkcs11-devel
# require at least the version of nss that nss-pem was built against (#1428965)
Requires: nss%{?_isa} >= %(nss-config --version 2>/dev/null || echo 0)
%description
PEM file reader for Network Security Services (NSS), implemented as a PKCS#11
module.
Expand All @@ -120,7 +124,6 @@ ctest %{?_smp_mflags} --output-on-failure
%license COPYING
EOF

set -v
rpmbuild -bs "$SPEC" \
--define "_sourcedir ." \
--define "_specdir ." \
Expand Down

0 comments on commit 95583ee

Please sign in to comment.