Skip to content

Commit

Permalink
Merge pull request #317 from jelu/spec
Browse files Browse the repository at this point in the history
SPEC
  • Loading branch information
jelu authored Nov 11, 2024
2 parents e3da1b9 + e1b79a9 commit 56faf52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 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
12 changes: 5 additions & 7 deletions rpm/dsc.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/oarc/data/dsc
# 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/dsc/%{name}-%{version}.tar.gz?/%{name}_%{version}.orig.tar.gz
Source0: %{name}_%{version}.orig.tar.gz

BuildRequires: libpcap-devel
BuildRequires: libmaxminddb-devel
Expand Down Expand Up @@ -48,20 +48,18 @@ accessed by Grafana for visualzation.
%build
sh autogen.sh
%configure --enable-dnstap
make %{?_smp_mflags}
%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)
%config %{_sysconfdir}/*
%{_bindir}/*
%{_datadir}/doc/*
Expand Down

0 comments on commit 56faf52

Please sign in to comment.