Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release-src > by-pkgid > 4dcaddb8c8be1abea8eee7e9966fcd80 > files > 1

4digits-1.1.4-1.mga5.src.rpm

Index: 4digits-1.1.4/4digits
===================================================================
--- 4digits-1.1.4/4digits
+++ 4digits-1.1.4/4digits	2015-01-16 13:53:51.429266724 +0100
@@ -40,8 +40,8 @@
 import pango
 
 # For distribution packaging
-#LOCALE_PATH = '/usr/share/locale/'
-LOCALE_PATH = 'locale/'
+LOCALE_PATH = '/usr/share/locale/'
+#LOCALE_PATH = 'locale/'
 
 try:
     import pygtk
@@ -53,7 +53,7 @@
     sys.exit(1)
 
 gladefiles = [os.path.join(os.path.dirname(__file__), '4digits.glade'),
-              "/usr/share/4digits/4digits.glade"]  # For debian packages.
+              "/usr/share/games/4digits/4digits.glade"]  # For debian packages.
 helpfiles = [os.path.join(os.path.dirname(__file__), 'doc', 'index.html'),
             "/usr/share/doc/4digits/index.html"]  # For debian packages.
 
Index: 4digits-1.1.4/4digits-text.c
===================================================================
--- 4digits-1.1.4/4digits-text.c
+++ 4digits-1.1.4/4digits-text.c	2015-01-16 13:53:07.313333834 +0100
@@ -44,8 +44,8 @@
 #define N_(str) str
 
 // For distribution packaging
-//#define LOCALE_PATH "/usr/share/locale/"
-#define LOCALE_PATH "locale/"
+#define LOCALE_PATH "/usr/share/locale/"
+//#define LOCALE_PATH "locale/"
 
 //#define DEBUG
 #define VERSION_STRING "1.1.4"
@@ -127,7 +127,7 @@
     bool reinput;
     do {
         reinput = false;
-        printf(_("Input a 4-digit number:"));
+        printf(_("Input a 4-digit number: "));
         if(fgets(mstr, sizeof mstr, stdin) == NULL)
             err_exit(_("Something's got wrong, I'd better quit...\n"));
         // fgets appends the newline entered, if it appears in the first 4
Index: 4digits-1.1.4/Makefile
===================================================================
--- 4digits-1.1.4/Makefile
+++ 4digits-1.1.4/Makefile	2015-01-16 13:53:07.313333834 +0100
@@ -1,14 +1,15 @@
 # Makefile for 4digits
 
 CC = gcc
-CFLAGS = -Wall -std=c99 -pedantic -g
+CFLAGS = -Wall -std=c99 -pedantic -g $(OPTFLAGS)
 SHELL = /bin/sh
 # For distribution packaging
-#INSTALL_DIR = /usr/share/locale
-INSTALL_DIR = locale
+DESTDIR =
+INSTALL_DIR = $(DESTDIR)/usr/share/locale
+#INSTALL_DIR = locale
 
-#all: 4digits-text compile-po
-all: 4digits-text update-po compile-po install-po
+all: 4digits-text compile-po
+#all: 4digits-text update-po compile-po install-po
 
 trans: update-po compile-po install-po