Skip to content

Commit 201eb88

Browse files
authoredNov 12, 2024··
Merge pull request #129 from jelu/spec
SPEC
2 parents 226fa76 + ef58030 commit 201eb88

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed
 

‎.copr/Makefile

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ $(top)/rpmbuild:
1515
mkdir -p "$(top)"/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
1616

1717
srpm: prereq update-dist-tools
18-
git config --global safe.directory "*"
1918
test -f .gitmodules && git submodule update --init || true
2019
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
2120
overwrite=yes nosign=yes "$(top)/dist-tools/create-source-packages" rpm

‎rpm/packetq.spec

+4-10
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ License: GPL-3.0
88
URL: https://github.com/DNS-OARC/PacketQ
99
# Source needs to be generated by dist-tools/create-source-packages, see
1010
# https://github.com/jelu/dist-tools
11-
Source0: https://github.com/DNS-OARC/PacketQ/archive/v%{version}.tar.gz?/%{name}_%{version}.orig.tar.gz
11+
Source0: %{name}_%{version}.orig.tar.gz
1212

1313
BuildRequires: zlib-devel
1414
BuildRequires: autoconf
@@ -33,24 +33,18 @@ it was rebuilt and could handle protocols other than DNS among other things.
3333
%build
3434
sh autogen.sh
3535
%configure
36-
make %{?_smp_mflags}
36+
%make_build
3737

3838

3939
%install
40-
rm -rf $RPM_BUILD_ROOT
41-
make install DESTDIR=$RPM_BUILD_ROOT
40+
%make_install
4241

4342

4443
%check
45-
make test
46-
47-
48-
%clean
49-
rm -rf $RPM_BUILD_ROOT
44+
%make_build test
5045

5146

5247
%files
53-
%defattr(-,root,root)
5448
%{_bindir}/*
5549
%{_datadir}/doc/*
5650

0 commit comments

Comments
 (0)
Please sign in to comment.