--- /dev/null
+--- lincity-ng-2.0/src/lincity/fileutil.cpp~ 2009-01-26 05:20:41.000000000 +0900
++++ lincity-ng-2.0/src/lincity/fileutil.cpp 2017-07-13 23:48:55.355365373 +0900
+@@ -498,7 +498,7 @@
+
+ void malloc_failure(void)
+ {
+- printf(_("Out of memory: malloc failure\n"));
++ puts(_("Out of memory: malloc failure\n"));
+ exit(1);
+ }
+
+--- lincity-ng-2.0/src/lincity-ng/Dialog.cpp~ 2009-01-26 05:20:43.000000000 +0900
++++ lincity-ng-2.0/src/lincity-ng/Dialog.cpp 2017-07-13 23:49:41.569815446 +0900
+@@ -378,7 +378,7 @@
+ setParagraphN( "statistic_text", line++, outf );
+ }
+ if (sustain_flag){
+- snprintf (outf, maxlength, _("Economy is sustainable"));
++ snprintf (outf, maxlength, "%s", _("Economy is sustainable"));
+ setParagraphN( "statistic_text", line++, outf );
+ }
+ snprintf (outf, maxlength, _("Population %d of which %d are not housed.")
Summary(pl.UTF-8): Lincity - symulator miasta/kraju Następnej Generacji
Name: lincity-ng
Version: 2.0
-Release: 2
+Release: 3
License: GPL v2+
Group: X11/Applications/Games
Source0: http://download.berlios.de/lincity-ng/%{name}-%{version}.tar.bz2
# Source0-md5: 1bd0f58e0f2b131d70044f4230600ed1
Patch0: %{name}-desktop.patch
+Patch1: format-security.patch
URL: http://lincity-ng.berlios.de/wiki/index.php/Main_Page
BuildRequires: OpenGL-GLU-devel
BuildRequires: OpenGL-devel
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%{__sed} 's/ -O3 -g / /' -i Jamrules
%build
jam -s DESTDIR=$RPM_BUILD_ROOT install
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+
%clean
rm -rf $RPM_BUILD_ROOT