Logoj0ke.net Open Build Service > Projects > home:netmax:tools > func > Changes
Sign Up | Log In

Changes of Revision 2

[-] Changed func.spec
x
 
1
@@ -1,14 +1,13 @@
2
 
3
 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
4
 
5
-%define is_suse %(test -e /etc/SuSE-release && echo 1 || echo 0)
6
-
7
 Summary: Remote management framework
8
 Name: func
9
 Source1: version
10
 Version: %(echo `awk '{ print $1 }' %{SOURCE1}`)
11
 Release: %(echo `awk '{ print $2 }' %{SOURCE1}`)%{?dist}
12
 Source0: %{name}-%{version}.tar.gz
13
+Patch0:    %{name}-init.patch
14
 License: GPLv2+
15
 Group: Applications/System
16
 Requires: python >= 2.3
17
@@ -17,10 +16,10 @@
18
 Requires: certmaster >= 0.24
19
 Requires: logrotate
20
 BuildRequires: python-devel
21
-%if %is_suse
22
+%if 0%{?suse_version}
23
 BuildRequires: gettext-devel
24
 %else
25
-%if 0%{?fedora} >= 8
26
+%if 0%{?fedora_version} >= 8
27
 BuildRequires: python-setuptools-devel
28
 %else
29
 BuildRequires: python-setuptools
30
@@ -35,6 +34,7 @@
31
 
32
 %prep
33
 %setup -q
34
+%patch0
35
 
36
 %build
37
 %{__python} setup.py build
38
@@ -48,7 +48,7 @@
39
 
40
 %files
41
 %defattr(-, root, root, -)
42
-%if 0%{?fedora} > 8
43
+%if 0%{?fedora_version} > 8
44
 %{python_sitelib}/func*.egg-info
45
 %endif
46
 %{_bindir}/funcd
47
[+] Added func-init.patch ^