[spice-protocol,v2,2/5] build-sys: Provide spec file during build

Submitted by Frediano Ziglio on Oct. 21, 2019, 2:10 p.m.

Details

Message ID 20191021141048.4847-2-fziglio@redhat.com
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in Spice

Not browsing as part of any series.

Commit Message

Frediano Ziglio Oct. 21, 2019, 2:10 p.m.
Having the RPM spec file produced by the build is helpful in
different situation. Different tools like mock or code
scanners accept source RPMs as input.
Providing this file allows easily build of the source RPM (and
binaries) using a simple command like

  $ rpmbuild -ta spice-protocol-XXXX.tar.bz2

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
---
 Makefile.am            | 1 +
 configure.ac           | 1 +
 spice-protocol.spec.in | 3 ++-
 3 files changed, 4 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/Makefile.am b/Makefile.am
index db2d5ba..c5b9787 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -25,6 +25,7 @@  MAINTAINERCLEANFILES =						\
 EXTRA_DIST =							\
 	README.md						\
 	CHANGELOG.md						\
+	spice-protocol.spec					\
 	meson.build
 
 -include $(top_srcdir)/git.mk
diff --git a/configure.ac b/configure.ac
index bc3e33f..2adcb7c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -18,4 +18,5 @@  AC_OUTPUT([
 Makefile
 spice-protocol.pc
 spice/Makefile
+spice-protocol.spec
 ])
diff --git a/spice-protocol.spec.in b/spice-protocol.spec.in
index a13ae99..cc1fadc 100644
--- a/spice-protocol.spec.in
+++ b/spice-protocol.spec.in
@@ -1,7 +1,8 @@ 
 Name:           spice-protocol
-Version:        0.14.0
+Version:        @VERSION@
 Release:        1%{?dist}
 Summary:        Spice protocol header files
+Group:          Development/Libraries
 # Main headers are BSD, controller / foreign menu are LGPL
 License:        BSD and LGPLv2+
 URL:            http://www.spice-space.org/