Skip to content

Commit

Permalink
SPEC
Browse files Browse the repository at this point in the history
- Fix/modernize spec file
  • Loading branch information
jelu committed Nov 12, 2024
1 parent 90b7c76 commit 15057bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
1 change: 0 additions & 1 deletion .copr/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ $(top)/rpmbuild:
mkdir -p "$(top)"/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}

srpm: prereq update-dist-tools
git config --global safe.directory "*"
test -f .gitmodules && git submodule update --init || true
echo "$(spec)" | grep -q "develop.spec" && auto_build_number=`date --utc +%s` message="Auto build `date --utc --iso-8601=seconds`" "$(top)/dist-tools/spec-new-changelog-entry" || true
overwrite=yes nosign=yes "$(top)/dist-tools/create-source-packages" rpm
Expand Down
17 changes: 5 additions & 12 deletions rpm/dnsperf.spec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ License: Apache-2.0
URL: https://www.dns-oarc.net/tools/dnsperf
# Source needs to be generated by dist-tools/create-source-packages, see
# https://github.com/jelu/dist-tools
Source0: https://www.dns-oarc.net/files/dnsperf/%{name}-%{version}.tar.gz?/%{name}_%{version}.orig.tar.gz
Source0: %{name}_%{version}.orig.tar.gz

BuildRequires: autoconf
BuildRequires: automake
Expand Down Expand Up @@ -64,31 +64,24 @@ rate to simulate caching DNS services.
%build
sh autogen.sh
%configure "--with-extra-cflags=-I /usr/include/bind"
make %{?_smp_mflags}


%check
make test
%make_build


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%make_install


%clean
rm -rf $RPM_BUILD_ROOT
%check
%make_build test


%files
%defattr(-,root,root)
%{_bindir}/dnsperf
%{_datadir}/doc/*
%{_mandir}/man1/dnsperf.*


%files -n resperf
%defattr(-,root,root)
%{_bindir}/resperf
%{_bindir}/resperf-report
%{_mandir}/man1/resperf.*
Expand Down

0 comments on commit 15057bc

Please sign in to comment.