numad/numad-versioning.patch
Cristian Rodríguez 04680bb10f Accepting request 178908 from home:mgorman
Request inclusion of package with hardware project before submitting to Factory

OBS-URL: https://build.opensuse.org/request/show/178908
OBS-URL: https://build.opensuse.org/package/show/hardware/numad?expand=0&rev=1
2013-06-15 06:51:35 +00:00

33 lines
975 B
Diff

From c2b959b7ce05d5a6a9b486b78f2aaac7b4e874a9 Mon Sep 17 00:00:00 2001
From: Mel Gorman <mgorman@suse.de>
Date: Thu, 23 May 2013 00:49:36 +0100
Subject: [PATCH] Version binary according to openSUSE guidelines
Subject says is all. rpmlint will complain about date in the name and
the binary version should match the rpm string.
Signed-off-by: Mel Gorman <mgorman@suse.de>
diff --git a/numad.c b/numad.c
index c9c86f5..d08b622 100644
--- a/numad.c
+++ b/numad.c
@@ -54,7 +54,7 @@ Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include <values.h>
-#define VERSION_STRING "20121130"
+#define VERSION_STRING "0.5.20130522"
#define VAR_RUN_FILE "/var/run/numad.pid"
@@ -671,7 +671,7 @@ void shut_down_numad() {
void print_version_and_exit(char *prog_name) {
- fprintf(stdout, "%s version: %s: compiled %s\n", prog_name, VERSION_STRING, __DATE__);
+ fprintf(stdout, "%s version: %s\n", prog_name, VERSION_STRING);
exit(EXIT_SUCCESS);
}