/[packages]/cauldron/djl/current/SPECS/djl.spec
ViewVC logotype

Contents of /cauldron/djl/current/SPECS/djl.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 847 - (show annotations) (download)
Sat Jan 8 16:59:14 2011 UTC (13 years, 3 months ago) by stormi
File size: 2750 byte(s)
imported package djl
1 Name: djl
2 Version: 1.2.20
3 Release: %mkrel 2
4 Summary: A game manager inspired by Steam from Valve software
5 License: GPLv3+
6 Group: Games/Other
7 URL: http://djl-linux.org/
8 Source0: http://en.djl-linux.org/maj_djl/archives/%{name}-%{version}.tar.gz
9 #Source0: http://en.djl-linux.org/dev/maj_djl/archives/%{name}-%{version}-dev3.tar.gz
10 Patch0: djl-1.2.11-path.patch
11 Patch1: djl-1.2.12-hide-add-menu-entry-button.patch
12 BuildRequires: imagemagick
13 Requires: python-qt4 >= 4
14 Requires: python >= 2.5, python < 3
15 BuildArch: noarch
16 BuildRoot: %{_tmppath}/%{name}-%{version}
17
18 %description
19 djl is an open-source (GPL licensed) game manager written in Python for the
20 GNU/Linux Operating System, inspired by Valve's Steam software for Windows.
21
22 It makes it possible to download, install (via a repository) and remove a
23 large number of games placed in a subdirectory in an absolutely invisible
24 way (but without dealing with any dependencies).
25 It can also execute .desktop shortcuts located in another directory (this way,
26 it's possible to launch games which were already installed).
27
28 Several games are available in the repository. Anyone can submit new games to
29 developers via a web page (http://djl.jeuxlinux.fr/djl_addgame_en.php).
30
31 %prep
32 %setup -q -n %name
33 %patch0 -p0 -b .path
34 %patch1 -p0 -b .no-add-desktop-file-button
35 rm djl/.eric4project/ -Rf
36 rm -f djl/libs/test_ws.py #unneeded
37 mv djl/Journal_en.txt djl/Journal.txt .
38 chmod a-x COPYING
39 chmod a-x Journal_en.txt
40 chmod a-x Journal.txt
41
42 %build
43
44 %install
45 rm -rf %{buildroot}
46 install -d -m 755 %{buildroot}%{_gamesdatadir}/djl
47 cp -pr djl/* %{buildroot}%{_gamesdatadir}/djl
48 install -d -m 755 %{buildroot}%{_gamesbindir}
49 install -m 755 djl.sh %{buildroot}%{_gamesbindir}/djl
50
51 mkdir -p %{buildroot}%{_liconsdir}
52 mkdir -p %{buildroot}%{_iconsdir}
53 mkdir -p %{buildroot}%{_miconsdir}
54 convert -resize 48x48 djl/icone.png %{buildroot}%{_liconsdir}/%{name}.png
55 convert -resize 32x32 djl/icone.png %{buildroot}%{_iconsdir}/%{name}.png
56 convert -resize 16x16 djl/icone.png %{buildroot}%{_miconsdir}/%{name}.png
57
58 mkdir -p %{buildroot}%{_datadir}/applications
59 cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
60 [Desktop Entry]
61 Name=DJL
62 Comment=Game manager with lots of games available
63 Exec=%{_gamesbindir}/djl
64 Icon=%{name}
65 Terminal=false
66 Type=Application
67 Categories=Game;
68 EOF
69
70 %find_lang %{name}
71
72 %clean
73 rm -rf %{buildroot}
74
75 %if %mdkversion < 200900
76 %post
77 %update_menus
78 %endif
79
80 %if %mdkversion < 200900
81 %postun
82 %update_menus
83 %endif
84
85 %files -f %{name}.lang
86 %defattr(-,root,root)
87 %doc COPYING LIESMICH LISEZMOI README Journal.txt Journal_en.txt
88 %{_gamesbindir}/djl
89 %{_gamesdatadir}/djl
90 %{_datadir}/applications/mandriva-%{name}.desktop
91 %{_iconsdir}/*
92
93

  ViewVC Help
Powered by ViewVC 1.1.30