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