Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPEC #312

Merged
merged 1 commit into from
Nov 13, 2024
Merged

SPEC #312

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
16 changes: 5 additions & 11 deletions rpm/dnscap.spec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ License: BSD-3-Clause
URL: https://www.dns-oarc.net/tools/dnscap
# 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/dnscap/%{name}-%{version}.tar.gz?/%{name}_%{version}.orig.tar.gz
Source0: %{name}_%{version}.orig.tar.gz

BuildRequires: libpcap-devel
BuildRequires: ldns-devel
Expand All @@ -35,24 +35,18 @@ to DNS transactions and protocol options.
%build
sh autogen.sh
%configure
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}/*
%{_datadir}/doc/*
%{_mandir}/man1/*
Expand Down