forked from mvidner/cnetworkmanager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cnetworkmanager.spec
70 lines (57 loc) · 2.03 KB
/
cnetworkmanager.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#
# spec file for package cnetworkmanager (Version 0.8)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: cnetworkmanager
Version: 0.21.1
Release: 1
Summary: Command-line client for NetworkManager
License: GPL v2 or later
Url: http://vidner.net/martin/software/cnetworkmanager/
Group: Productivity/Networking/System
# build time reqs same as run time because we run tests
BuildRequires: dbus-1-python python-gobject2
%if 0%{?suse_version} <= 1100
BuildRequires: python-devel
%endif
# if suse>11.1 or not suse:
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArch: noarch
%endif
Requires: dbus-1-python python-gobject2
Requires: NetworkManager >= 0.7.0
Provides: NetworkManager-client
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: %{name}-%{version}.tar.gz
%{py_requires}
%description
Cnetworkmanager is a command-line client for NetworkManager, intended
to supplement and replace the GUI applets.
%prep
%setup
#% patch -p1
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
# mark the /etc files as config
sed -i 's,^/etc,%config /etc,' INSTALLED_FILES
%check
make check-nonm
%clean
rm -rf %{buildroot}
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc README COPYING HACKING NEWS screenshots.html
%changelog