File tree 3 files changed +12
-3
lines changed
3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -234,6 +234,8 @@ distclean: clean
234
234
fi
235
235
236
236
# -------------------------------------
237
+ RPMBUILD =rpmbuild
238
+ RPMTMP =.rpmtmp
237
239
snapshot :
238
240
@echo " [$( TAG) ]" > RELNOTES.NEW
239
241
@echo >> RELNOTES.NEW
@@ -250,3 +252,8 @@ snapshot:
250
252
@git tag -s -m " iputils-$( TAG) " $(TAG )
251
253
@git archive --format=tar --prefix=iputils-$(TAG ) / $(TAG ) | bzip2 -9 > ../iputils-$(TAG ) .tar.bz2
252
254
255
+ rpm :
256
+ @git archive --format=tar --prefix=iputils/ HEAD | bzip2 -9 > $(RPMTMP ) /iputils.tar.bz2
257
+ @$(RPMBUILD ) -ta --define ' current yes' $(RPMTMP ) /iputils.tar.bz2
258
+ @rm -f $(RPMTMP ) /iputils.tar.bz2
259
+
Original file line number Diff line number Diff line change 3
3
#
4
4
5
5
%define ssdate 20140519
6
+ %define srcbase iputils%{! ?current:-s%{ssdate }}
7
+
6
8
Summary: The ping program for checking to see if network hosts are alive.
7
9
Name: iputils
8
- Version: s %{ssdate }
10
+ Version: %{ssdate }%{?current:+ }
9
11
Release: 1local
10
12
License: GPLv2+
11
13
Group: System Environment/Daemons
12
- Source0: iputils-s%{ ssdate }.tar.bz2
14
+ Source0: %{ srcbase }.tar.bz2
13
15
Prefix: %{_prefix }
14
16
BuildRoot: %{_tmppath }/%{name }-root
15
17
#BuildPrereq: docbook-dtd31-sgml, perl
@@ -22,7 +24,7 @@ specified network host and can tell you if that machine is alive and
22
24
receiving network traffic.
23
25
24
26
%prep
25
- %setup -q %{ name }
27
+ %setup -q -n %{ srcbase }
26
28
27
29
%build
28
30
make
You can’t perform that action at this time.
0 commit comments