LightYears.spec

lisu lisu87 at gmail.com
Sun Sep 24 11:29:40 CEST 2006


> To nie jest wersja alpha. Tylko wersja bugfixowa do 1.2 - 1.2a - stąd nie 
> dajesz %define _alpha a bo jest to głupota tylko przy Version dajesz 1.2a po 
> prostu.
>
>   
Poprawione.
-------------- next part --------------
--- LightYears.spec.old	2006-09-24 11:24:12.000000000 +0200
+++ LightYears.spec	2006-09-24 11:26:37.000000000 +0200
@@ -2,16 +2,18 @@
 Summary:	20,000 Light Years Into Space - a real-time strategy game
 Summary(pl):	20,000 Light Years Into Space - strategia czasu rzeczywistego
 Name:		LightYears
-Version:	1.2
+Version:	1.2a
 Release:	1
 License:	GPL v2
 Group:		X11/Applications/Games
 Source0:	http://www.jwhitham.org.uk/biscuit_games/LightYears/%{name}-%{version}.zip
-# Source0-md5:	f82bb67d14153affc8d9a644cdb25d5b
+# Source0-md5:	b07bf041b3a735248440dd27cf70a3e6
 Source1:	%{name}.desktop
 Patch0:		%{name}-config_path.patch
 URL:		http://www.jwhitham.org.uk/biscuit_games/LightYears/
 %pyrequires_eq	python-modules
+BuildRequires:	rpm-pythonprov
+BuildRequires:	unzip
 Requires:	python-pygame >= 1.7
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-------------- next part --------------
--- LightYears-config_path.patch.orig	2006-09-23 19:11:59.000000000 +0200
+++ LightYears-config_path.patch	2006-09-23 19:11:09.000000000 +0200
@@ -1,33 +1,30 @@
-diff -dur -x '*~' LightYears.orig/code/config.py LightYears/code/config.py
---- LightYears.orig/code/config.py	2006-03-31 21:11:15.000000000 +0200
-+++ LightYears/code/config.py	2006-04-20 22:35:11.000000000 +0200
-@@ -4,6 +4,7 @@
- # 
- 
- import pickle , startup
-+import os
- 
- 
- class Config:
-@@ -17,13 +18,15 @@
+--- LightYears.orig/code/config.py	2006-09-23 19:09:59.000000000 +0200
++++ LightYears/code/config.py	2006-09-23 19:10:17.000000000 +0200
+@@ -17,10 +17,12 @@
  
  cfg = Config()
  
 +DIR = "~/.LightYears"
- FILENAME = "config.dat"
+ FILENAME = None
  
  def Initialise():
 -    global cfg, FILENAME
 +    global cfg, DIR, FILENAME
++
+ 
+     home = extra.Get_Home()
+     if ( home == None ):
+@@ -29,7 +31,8 @@
+         FILENAME = os.path.join(home, ".20k.cfg")
  
      try:
 -        f = file(FILENAME, "rb")
-+        dir = os.path.expanduser(DIR)
-+        f = file(os.path.join(dir, FILENAME), "rb")
++	dir = os.path.expanduser(DIR)
++	f = file(os.path.join(dir, FILENAME), "rb")
          cfg2 = pickle.load(f)
          f.close()
          if ( cfg2.version == startup.Get_Game_Version() ):
-@@ -36,7 +39,10 @@
+@@ -42,7 +45,10 @@
      global cfg, FILENAME
  
      try:


More information about the pld-devel-pl mailing list