]>
Commit | Line | Data |
---|---|---|
ffb5ddb6 | 1 | # |
2 | ||
3 | Summary: GiGi | |
4 | Summary(pl.UTF-8): GiGi | |
5 | Name: GG | |
6 | Version: 0.6.0 | |
7 | Release: 0.1 | |
8 | License: GPL | |
9 | Group: Applications | |
b1326fee | 10 | Source0: http://downloads.sourceforge.net/gigi/%{name}-%{version}.tgz |
11 | # Source0-md5: e100bad1c0713b3167a4fdc1cb8898c9 | |
ffb5ddb6 | 12 | Patch0: gg-boots-include-location-fix.patch |
13 | URL: - | |
14 | BuildRequires: scons | |
15 | BuildRequires: boost-devel >= 1.32 | |
16 | BuildRequires: boost-signals >= 1.32 | |
17 | BuildRequires: boost-filesystem >= 1.32 | |
18 | BuildRequires: freetype-devel | |
19 | BuildRequires: DevIL-devel >= 1.6.1 | |
20 | BuildRequires: SDL-devel >= 1.2.7 | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | ||
25 | %description -l pl.UTF-8 | |
26 | ||
27 | %package libs | |
28 | Summary: - | |
29 | Summary(pl.UTF-8): - | |
30 | Group: Libraries | |
31 | ||
32 | %description libs | |
33 | ||
34 | %description libs -l pl.UTF-8 | |
35 | ||
36 | %package devel | |
37 | Summary: Header files for ... library | |
38 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ... | |
39 | Group: Development/Libraries | |
40 | # if base package contains shared library for which these headers are | |
41 | #Requires: %{name} = %{version}-%{release} | |
42 | # if -libs package contains shared library for which these headers are | |
43 | #Requires: %{name}-libs = %{version}-%{release} | |
44 | ||
45 | %description devel | |
46 | Header files for ... library. | |
47 | ||
48 | %description devel -l pl.UTF-8 | |
49 | Pliki nagłówkowe biblioteki .... | |
50 | ||
51 | %package static | |
52 | Summary: Static ... library | |
53 | Summary(pl.UTF-8): Statyczna biblioteka ... | |
54 | Group: Development/Libraries | |
55 | Requires: %{name}-devel = %{version}-%{release} | |
56 | ||
57 | %description static | |
58 | Static ... library. | |
59 | ||
60 | %description static -l pl.UTF-8 | |
61 | Statyczna biblioteka .... | |
62 | ||
63 | %prep | |
64 | %setup -q -n %{name} | |
65 | %patch0 | |
66 | ||
67 | %build | |
68 | scons | |
69 | ||
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | # create directories if necessary | |
73 | #install -d $RPM_BUILD_ROOT | |
74 | #install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
75 | ||
76 | %{__make} install \ | |
77 | DESTDIR=$RPM_BUILD_ROOT | |
78 | ||
79 | %clean | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
82 | %pre | |
83 | %groupadd -g xxx %{name} | |
84 | %useradd -u xxx -d /var/lib/%{name} -g %{name} -c "XXX User" %{name} | |
85 | ||
86 | %post | |
87 | ||
88 | %preun | |
89 | ||
90 | %postun | |
91 | if [ "$1" = "0" ]; then | |
92 | %userremove %{name} | |
93 | %groupremove %{name} | |
94 | fi | |
95 | ||
96 | %if %{with ldconfig} | |
97 | %post -p /sbin/ldconfig | |
98 | %postun -p /sbin/ldconfig | |
99 | %endif | |
100 | ||
101 | %if %{with initscript} | |
102 | %post init | |
103 | /sbin/chkconfig --add %{name} | |
104 | %service %{name} restart | |
105 | ||
106 | %preun init | |
107 | if [ "$1" = "0" ]; then | |
108 | %service -q %{name} stop | |
109 | /sbin/chkconfig --del %{name} | |
110 | fi | |
111 | %endif | |
112 | ||
113 | %files | |
114 | %defattr(644,root,root,755) | |
115 | %doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO | |
116 | ||
117 | %if 0 | |
118 | # if _sysconfdir != /etc: | |
119 | #%%dir %{_sysconfdir} | |
120 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/* | |
121 | %attr(755,root,root) %{_bindir}/* | |
122 | %{_datadir}/%{name} | |
123 | %endif | |
124 | ||
125 | # initscript and its config | |
126 | %if %{with initscript} | |
127 | %attr(754,root,root) /etc/rc.d/init.d/%{name} | |
128 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} | |
129 | %endif | |
130 | ||
131 | #%{_examplesdir}/%{name}-%{version} | |
132 | ||
133 | %if %{with subpackage} | |
134 | %files subpackage | |
135 | %defattr(644,root,root,755) | |
136 | #%doc extras/*.gz | |
137 | #%{_datadir}/%{name}-ext | |
138 | %endif |