Compare commits

...
This repository has been archived on 2026-09-10. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.

64 commits

Author SHA1 Message Date
Miro Hrončok
a41ebbd2ab Orphaned for 6+ weeks 2019-04-08 19:17:32 +02:00
Fedora Release Engineering
94cd0795b6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-03 11:42:20 +00:00
441fb36941 Remove obsolete Group tag
References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag
2019-01-28 20:24:54 +01:00
David Cantrell
5e145af3d2 Get wicd building correctly under rawhide again (#1606676)
Fix %{_unitdir} usage in the spec file
2018-07-24 14:54:45 -04:00
Fedora Release Engineering
5ad4e702cd - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-14 08:50:11 +00:00
Iryna Shcherbina
ddae43d1f7 Update Python 2 dependency declarations to new packaging standards 2018-02-09 23:39:08 +01:00
Fedora Release Engineering
3eac356f55 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-09 20:55:55 +00:00
e5ca93f251 Remove obsolete scriptlets
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-01-18 22:49:19 +01:00
Fedora Release Engineering
7eff0d6285 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-03 10:16:24 +00:00
Fedora Release Engineering
25cb05879d - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 21:36:14 +00:00
Fedora Release Engineering
ce8c6c89ee - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-11 17:22:33 +00:00
Filipe Rosset
841eee5a4f - Rebuilt for new upstream release 1.7.4 fixes rhbz #1301799
- Fixes rhbz #1308240
2016-11-08 12:13:18 -02:00
Filipe Rosset
ae7742dcd7 Spec cleanup 2016-11-08 11:17:44 -02:00
Fedora Release Engineering
2179b70a4b - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages 2016-07-19 13:09:27 +00:00
Fedora Release Engineering
90b42cc9b4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-05 03:01:37 +00:00
Dennis Gilmore
48ba61c71e - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-19 02:24:43 +00:00
David Cantrell
5474a54f73 Upgrade to wicd-1.7.3 (#1176990) 2015-05-05 14:47:11 -04:00
David Cantrell
0055b5a448 Upgrade to wicd-1.7.3 (#1176990) 2015-04-09 15:49:21 -04:00
David Cantrell
17a18bb8db Upgrade to wicd-1.7.3 (#1176990) 2015-04-09 15:38:11 -04:00
David Cantrell
65440e4966 Upgrade to wicd-1.7.3 (#1176990) 2015-04-09 15:32:06 -04:00
David Cantrell
59d72d40cc Upgrade to wicd-1.7.3 (#1176990) 2015-04-09 15:14:02 -04:00
David Cantrell
b833dc34e0 Upgrade to wicd-1.7.3 (#1176990) 2015-04-09 14:46:15 -04:00
David Cantrell
96a18146b2 Upgrade to wicd-1.7.3 (#1176990) 2015-04-09 13:19:41 -04:00
David Cantrell
97a738e359 Remove dependency on pm-utils (#1208313) 2015-04-09 10:00:45 -04:00
David Cantrell
4a5124dbc2 Remove dependency on pm-utils (#1208313) 2015-04-09 09:16:22 -04:00
David Cantrell
7523d014a3 Remove dependency on pm-utils (#1208313) 2015-04-09 09:10:48 -04:00
David Cantrell
01a181a9fb self.prog_name -> self.prof_name in netentry_curses.py (#1162118) 2014-11-25 11:46:12 -05:00
David Cantrell
7baa159fe9 Remove check for daemon patch (#1074315) 2014-09-29 09:47:52 -04:00
David Cantrell
55b6a950f7 Fix string.translate() usage in misc.py (#1005515) 2014-09-25 16:34:49 -04:00
a418458e3c - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild 2014-08-18 08:36:10 +00:00
David Cantrell
1828b1dd1e Prevent crash when saving network settings (#996693) 2014-07-02 11:53:27 -04:00
David Cantrell
aa678f6fce Do not assume wicd-daemon is running when wicd-client runs (#1074315)
- Fix wicd-curses crash on startup (#894646)
- Edit default D-Bus policy file to allow 'users' group members to run
  wicd client programs (#1074372)
2014-06-30 10:35:02 -04:00
Dennis Gilmore
f2dc53aa3f - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-07 23:31:39 -05:00
David Cantrell
a45da003c0 Apply upstream patch to fix exception when changing properties in
wicd-gtk (#981667)
2013-12-09 08:56:40 -05:00
Dennis Gilmore
0e0fcc5867 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild 2013-08-04 01:54:08 -05:00
David Cantrell
60425f8a7c systemd_post_with_restart -> systemd_postun_with_restart (#901753) 2013-04-01 14:22:07 -04:00
Dennis Gilmore
357efedf47 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild 2013-02-14 21:07:12 -06:00
David Cantrell
9d2447bd84 Fix some Unicode string handling and display problems (#845749) 2012-10-23 14:08:21 -04:00
David Cantrell
8def0d7bbe Use new systemd macros in trigger scripts (#850367) 2012-10-23 10:20:03 -04:00
David Cantrell
299042626c Don't need this file anymore. 2012-08-02 10:59:36 -04:00
David Cantrell
35e4310725 Upgrade to wicd-1.7.2.4
- Remove duplicate logrotate file (#820139)
- The curses package requires some code from the gtk module, so add explicit
  dependency (#831309)
2012-08-02 10:33:29 -04:00
David Cantrell
80eafe0546 Upgrade to wicd-1.7.2.4
- Remove duplicate logrotate file (#820139)
- The curses package requires some code from the gtk module, so add explicit
  dependency (#831309)
2012-08-02 10:21:08 -04:00
Dennis Gilmore
238c818670 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-21 22:35:37 -05:00
David Cantrell
fa1e9f6038 Upgrade to wicd-1.7.2.1 to fix CVE-2012-2095 (#811763) 2012-04-13 09:44:52 -04:00
David Cantrell
29a13776ba Remove our wicd.service file, this is provided by upstream now 2012-03-26 13:52:33 -04:00
David Cantrell
f0c195baf1 Make sure systemd unit files go to /usr/lib/systemd
- Stop mangling logfile.py so bytecompiling will actually work
- 91wicd -> 55wicd
- Pick up new encryption template files in the %files list
2012-03-26 12:59:45 -04:00
David Cantrell
4dee156ed8 BR babel
- Remove po/ast.po because babel doesn't understand it
2012-03-22 11:15:20 -04:00
David Cantrell
ed242365fb Ensure wpath.etc is set to /etc/wicd, not /etc/dhcp (#754412)
- Initialize child_pid to None in wicd-daemon.py (#798692)
- Make wicd-gtk subpackage require notify-python (#748258)
- Work around no-op problem in DaemonClosing calls (#740317)
- BR babel
- Remove po/ast.po because babel doesn't understand it
2012-03-22 11:03:12 -04:00
David Cantrell
693809f4a3 Ensure wpath.etc is set to /etc/wicd, not /etc/dhcp (#754412)
- Initialize child_pid to None in wicd-daemon.py (#798692)
- Make wicd-gtk subpackage require notify-python (#748258)
- Work around no-op problem in DaemonClosing calls (#740317)
- BR babel
- Remove po/ast.po because babel doesn't understand it
2012-03-22 10:55:40 -04:00
David Cantrell
cd9993d45e Ensure wpath.etc is set to /etc/wicd, not /etc/dhcp (#754412)
- Initialize child_pid to None in wicd-daemon.py (#798692)
- Make wicd-gtk subpackage require notify-python (#748258)
- Work around no-op problem in DaemonClosing calls (#740317)
- BR babel
2012-03-22 10:42:59 -04:00
David Cantrell
eb6827b624 Ensure wpath.etc is set to /etc/wicd, not /etc/dhcp (#754412)
- Initialize child_pid to None in wicd-daemon.py (#798692)
- Make wicd-gtk subpackage require notify-python (#748258)
- Work around no-op problem in DaemonClosing calls (#740317)
2012-03-22 10:34:15 -04:00
David Cantrell
a5fe60f17b Upgrade to wicd-1.7.1 final release (#789380)
- Have wicd-common require pygobject2 (#754416)
- Remove patches that have been incorporated upstream
2012-02-10 16:23:53 -05:00
David Cantrell
32a2db9bf6 Upgrade to wicd-1.7.1 final release (#789380)
- Have wicd-common require pygobject2 (#754416)
- Remove patches that have been incorporated upstream
2012-02-10 15:58:36 -05:00
David Cantrell
89370f8843 Upgrade to wicd-1.7.1 final release (#789380)
- Have wicd-common require pygobject2 (#754416)
- Remove patches that have been incorporated upstream
2012-02-10 15:34:19 -05:00
David Cantrell
c2d5eff08c Upgrade to wicd-1.7.1 final release (#789380)
- Have wicd-common require pygobject2 (#754416)
2012-02-10 15:07:25 -05:00
David Cantrell
befbfe6e38 Upgrade to wicd-1.7.1 final release (#789380)
- Have wicd-common require pygobject2 (#754416)
2012-02-10 15:01:04 -05:00
David Cantrell
95559128ea Upgrade to wicd-1.7.1 final release (#789380)
- Have wicd-common require pygobject2 (#754416)
2012-02-10 14:57:29 -05:00
David Cantrell
72dbba8484 Upgrade to wicd-1.7.1 final release 2012-02-10 14:33:31 -05:00
David Cantrell
309fe7376a Fix CVS-2012-0813 (#785147) 2012-01-27 14:21:47 -05:00
Dennis Gilmore
6f8d521575 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild 2012-01-14 02:18:45 -06:00
David Cantrell
24496c4d39 Upgrade to wicd-1.7.1b2 2011-08-19 17:11:48 -04:00
David Cantrell
c4d69e5809 Upgrade to wicd-1.7.1b2 2011-08-19 16:57:17 -04:00
David Cantrell
0c5da92eb1 Upgrade to wicd-1.7.1b2 2011-08-19 16:56:38 -04:00
David Cantrell
2d89c88e0b Initialize appGui._wired_showing in __init__ (#723553)
Make sure check and message in wicd-cli are a lambda (#712435)
Correct systemd unit file for wicd, add D-Bus service file (#699116)
Move docs to the wicd-common subpackage
Correct /etc/dbus-1/system.d/wicd.conf (#699116)
2011-08-19 16:32:27 -04:00
8 changed files with 1 additions and 420 deletions

1
.gitignore vendored
View file

@ -1 +0,0 @@
wicd-1.7.0.tar.bz2

1
dead.package Normal file
View file

@ -0,0 +1 @@
Orphaned for 6+ weeks

View file

@ -1 +0,0 @@
7e5956891d6696b6185baa7f5dc70c56 wicd-1.7.0.tar.bz2

View file

@ -1,50 +0,0 @@
diff -up wicd-1.7.0/wicd/configmanager.py.deepcopy wicd-1.7.0/wicd/configmanager.py
--- wicd-1.7.0/wicd/configmanager.py.deepcopy 2010-01-14 18:49:11.000000000 -1000
+++ wicd-1.7.0/wicd/configmanager.py 2010-10-22 10:18:14.000000000 -1000
@@ -25,6 +25,7 @@ reusable for other purposes as well.
#
import os, copy
+import cPickle
from ConfigParser import RawConfigParser
@@ -35,7 +36,7 @@ from dbus import Int32
class ConfigManager(RawConfigParser):
""" A class that can be used to manage a given configuration file. """
def __init__(self, path, debug=False, mark_whitespace="`'`"):
- RawConfigParser.__init__(self)
+ RawConfigParser.__init__(self, allow_no_value = True)
self.config_file = path
self.debug = debug
self.mrk_ws = mark_whitespace
@@ -67,7 +68,7 @@ class ConfigManager(RawConfigParser):
if value.startswith(' ') or value.endswith(' '):
value = "%(ws)s%(value)s%(ws)s" % {"value" : value,
"ws" : self.mrk_ws}
- RawConfigParser.set(self, section, str(option), value)
+ RawConfigParser.set(self, section, str(option), "None" if value is None else value)
if write:
self.write()
@@ -176,9 +177,7 @@ class ConfigManager(RawConfigParser):
def _copy_section(self, name):
- # Yes, deepcopy sucks, but it is robust to changes in both
- # this class and RawConfigParser.
- p = copy.deepcopy(self)
+ p = cPickle.loads(cPickle.dumps(self, -1))
for sname in p.sections():
if sname != name:
p.remove_section(sname)
@@ -188,8 +187,7 @@ class ConfigManager(RawConfigParser):
def write(self):
""" Writes the loaded config file to disk. """
- # Really don't like this deepcopy.
- p = copy.deepcopy(self)
+ p = cPickle.loads(cPickle.dumps(self, -1))
for sname in p.sections():
fname = p.get_option(sname, '_filename_')
if fname and fname != self.config_file:

View file

@ -1,53 +0,0 @@
diff -up wicd-1.7.0/in/man=wicd-curses.8.in.orig wicd-1.7.0/in/man=wicd-curses.8.in
--- wicd-1.7.0/in/man=wicd-curses.8.in.orig 2010-01-14 18:49:11.000000000 -1000
+++ wicd-1.7.0/in/man=wicd-curses.8.in 2010-05-19 09:20:00.000000000 -1000
@@ -57,10 +57,6 @@ Bring up instructions on how to edit the
.BR O
Raise the Ad-Hoc network creation dialog
-.SH "FILES"
-.TP
-.I ~/.wicd/WHEREAREMYFILES
-Reminder that your network configuration files are not here ;-)
.PP
.SH "SEE ALSO"
.BR wicd-client (1),
diff -up wicd-1.7.0/in/scripts=wicd-client.in.orig wicd-1.7.0/in/scripts=wicd-client.in
--- wicd-1.7.0/in/scripts=wicd-client.in.orig 2010-01-14 18:49:11.000000000 -1000
+++ wicd-1.7.0/in/scripts=wicd-client.in 2010-05-19 09:20:25.000000000 -1000
@@ -6,10 +6,6 @@ NC=$(tput sgr0)
if [ ! -d "$HOME/.wicd" ]; then
mkdir -p "$HOME/.wicd"
fi
-# Make sure the user knows WHEREAREMYFILES ;-)
-if [ -e "%VARLIB%WHEREAREMYFILES" ] && [ ! -L "$HOME/.wicd/WHEREAREMYFILES" ]; then
- ln -s "%VARLIB%WHEREAREMYFILES" "$HOME/.wicd/WHEREAREMYFILES"
-fi
if [ "$DISPLAY" = "" ]; then
if [ -x "%BIN%wicd-curses" ]; then
if [ ! -f "$HOME/.wicd/CLIENT_CURSES_WARNING" ]; then
diff -up wicd-1.7.0/in/scripts=wicd-curses.in.orig wicd-1.7.0/in/scripts=wicd-curses.in
--- wicd-1.7.0/in/scripts=wicd-curses.in.orig 2010-01-14 18:49:11.000000000 -1000
+++ wicd-1.7.0/in/scripts=wicd-curses.in 2010-05-19 09:20:36.000000000 -1000
@@ -2,8 +2,5 @@
if [ ! -d "$HOME/.wicd" ]; then
mkdir -p "$HOME/.wicd"
fi
-if [ -e "%VARLIB%WHEREAREMYFILES" ] && [ ! -L "$HOME/.wicd/WHEREAREMYFILES" ]; then
- ln -s "%VARLIB%WHEREAREMYFILES" "$HOME/.wicd/WHEREAREMYFILES"
-fi
exec %PYTHON% -O %SHARE%curses/wicd-curses.py $@
diff -up wicd-1.7.0/in/scripts=wicd-gtk.in.orig wicd-1.7.0/in/scripts=wicd-gtk.in
--- wicd-1.7.0/in/scripts=wicd-gtk.in.orig 2010-01-14 18:49:11.000000000 -1000
+++ wicd-1.7.0/in/scripts=wicd-gtk.in 2010-05-19 09:20:44.000000000 -1000
@@ -4,9 +4,5 @@
if [ ! -d "$HOME/.wicd" ]; then
mkdir -p "$HOME/.wicd"
fi
-# Make sure the user knows WHEREAREMYFILES ;-)
-if [ -e "/var/lib/wicd/WHEREAREMYFILES" ] && [ ! -L "$HOME/.wicd/WHEREAREMYFILES" ]; then
- ln -s "/var/lib/wicd/WHEREAREMYFILES" "$HOME/.wicd/WHEREAREMYFILES"
-fi
exec %PYTHON% -O %SHARE%gtk/wicd-client.py $@

View file

@ -1,6 +0,0 @@
/var/log/wicd.log {
missingok
notifempty
size 30k
create 0600 root root
}

View file

@ -1,11 +0,0 @@
[Unit]
Description=Wicd a wireless and wired network manager for Linux
After=syslog.target
[Service]
Type=forking
ExecStart=/usr/sbin/wicd
ExecStop=/usr/sbin/wicd -k
[Install]
WantedBy=multi-user.target

298
wicd.spec
View file

@ -1,298 +0,0 @@
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif
%{!?_systemd_unitdir: %global _systemd_unitdir %(pkg-config systemd --variable=systemdsystemunitdir)}
%define debug_package %{nil}
Name: wicd
Version: 1.7.0
Release: 8%{?dist}
Summary: Wireless and wired network connection manager
Group: System Environment/Base
License: GPLv2+
URL: http://wicd.sourceforge.net/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Source1: wicd.logrotate
Source2: wicd.service
Patch0: wicd-1.7.0-remove-WHEREAREMYFILES.patch
Patch1: wicd-1.7.0-deepcopy.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
BuildRequires: python2-devel
BuildRequires: desktop-file-utils
BuildRequires: pkgconfig
BuildRequires: systemd-units
Requires: pm-utils >= 1.2.4
Requires: %{name}-common = %{version}-%{release}
%description
Wicd is designed to give the user as much control over behavior of network
connections as possible. Every network, both wired and wireless, has its
own profile with its own configuration options and connection behavior.
Wicd will try to automatically connect only to networks the user specifies
it should try, with a preference first to a wired network, then to wireless.
This package provides the architecture-dependent components of wicd.
%package common
Summary: Wicd common files
Group: System Environment/Base
BuildArch: noarch
Requires: dbus
Requires: dbus-python
Requires: dhclient
Requires: ethtool
Requires: iproute
Requires: logrotate
Requires: net-tools
Requires: wireless-tools
Requires: wpa_supplicant
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
%description common
This package provides the main wicd daemon and the wicd-cli front-end.
%package curses
Summary: Curses client for wicd
Group: Applications/System
BuildArch: noarch
Requires: %{name}-common = %{version}-%{release}
Requires: python-urwid >= 0.9.8.3
%description curses
Client program for wicd that uses a curses interface.
%package gtk
Summary: GTK+ client for wicd
Group: Applications/Internet
BuildArch: noarch
Requires: %{name}-common = %{version}-%{release}
Requires: pygtk2-libglade >= 2.10
%description gtk
Client program for wicd that uses a GTK+ interface.
%prep
%setup -q
# Remove the WHEREAREMYFILES and resetting of ~/.wicd/WHEREAREMYFILES
# This is pointless. The documentation can just provide WHEREAREMYFILES,
# which we do in this package.
%patch0 -p1
# Use cPickle instead of deepcopy in configmanager.py
%patch1 -p1
%build
# NOTE: --etc is where dhclient.conf.template goes
%{__python} setup.py configure \
--distro redhat \
--lib %{_libdir} \
--share %{_datadir}/wicd \
--etc %{_sysconfdir}/dhcp \
--bin %{_bindir} \
--pmutils %{_libdir}/pm-utils/sleep.d \
--log %{_localstatedir}/log \
--no-install-init
%{__python} setup.py build
%install
rm -rf %{buildroot}
%{__python} setup.py install --skip-build --no-compile --root %{buildroot}
sed -i -e '/^#!\//, 1d' %{buildroot}%{_datadir}/wicd/backends/be-external.py
sed -i -e '/^#!\//, 1d' %{buildroot}%{_datadir}/wicd/backends/be-ioctl.py
sed -i -e '/^#!\//, 1d' %{buildroot}%{_datadir}/wicd/cli/wicd-cli.py
sed -i -e '/^#!\//, 1d' %{buildroot}%{_datadir}/wicd/curses/curses_misc.py
sed -i -e '/^#!\//, 1d' %{buildroot}%{_datadir}/wicd/curses/netentry_curses.py
sed -i -e '/^#!\//, 1d' %{buildroot}%{_datadir}/wicd/curses/prefs_curses.py
sed -i -e '/^#!\//, 1d' %{buildroot}%{_datadir}/wicd/daemon/wicd-daemon.py
sed -i -e '/^#!\//, 1d' %{buildroot}%{_datadir}/wicd/gtk/gui.py
sed -i -e '/^#!\//, 1d' %{buildroot}%{_datadir}/wicd/gtk/prefs.py
sed -i -e '/^#!\//, 1d' %{buildroot}%{_datadir}/wicd/gtk/wicd-client.py
rm -f %{buildroot}%{_localstatedir}/lib/wicd/WHEREAREMYFILES
rm -rf %{buildroot}%{_datadir}/doc
find %{buildroot} -type f -name ".empty_on_purpose" | xargs rm
for lib in %{buildroot}%{python_sitelib}/wicd/*.py ; do
sed '/\/usr\/bin\/env/d' $lib > $lib.new &&
touch -r $lib $lib.new &&
mv $lib.new $lib
done
sed -i -e 's/.$//' %{buildroot}%{python_sitelib}/wicd/logfile.py
sed -i -e '/^#!\//, 1d' %{buildroot}%{python_sitelib}/wicd/logfile.py
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/wicd
mkdir -p %{buildroot}%{_systemd_unitdir}
install -m 0644 %{SOURCE2} %{buildroot}%{_systemd_unitdir}/wicd.service
desktop-file-install \
--remove-category="Application" \
--delete-original \
--dir=%{buildroot}%{_datadir}/applications \
%{buildroot}%{_datadir}/applications/wicd.desktop
desktop-file-install \
--dir=%{buildroot}%{_sysconfdir}/xdg/autostart \
%{buildroot}%{_sysconfdir}/xdg/autostart/wicd-tray.desktop
%find_lang %{name}
%clean
rm -rf %{buildroot}
%post common
if [ $1 -eq 1 ]; then
# Package install, not upgrade
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi
%preun common
if [ $1 -eq 0 ] ; then
# Package removal, not upgrade
/bin/systemctl disable wicd.service > /dev/null 2>&1 || :
/bin/systemctl stop wicd.service > /dev/null 2>&1 || :
fi
%postun common
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -ge 1 ] ; then
# Package upgrade, not uninstall
/bin/systemctl try-restart wicd.service >/dev/null 2>&1 || :
fi
%triggerun -- wicd-common < 1.7.0-5
if /sbin/chkconfig --level 3 wicd ; then
/bin/systemctl enable wicd.service >/dev/null 2>&1 || :
fi
%post gtk
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%postun gtk
if [ $1 -eq 0 ]; then
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi
%posttrans gtk
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%files
%defattr(-,root,root,-)
%doc AUTHORS CHANGES LICENSE NEWS README other/WHEREAREMYFILES
%{_libdir}/pm-utils/sleep.d/91wicd
%files common -f %{name}.lang
%defattr(-,root,root,-)
%dir %{python_sitelib}/wicd
%dir %{_sysconfdir}/wicd
%dir %{_sysconfdir}/wicd/encryption
%dir %{_sysconfdir}/wicd/encryption/templates
%dir %{_sysconfdir}/wicd/scripts
%dir %{_sysconfdir}/wicd/scripts/postconnect
%dir %{_sysconfdir}/wicd/scripts/postdisconnect
%dir %{_sysconfdir}/wicd/scripts/preconnect
%dir %{_sysconfdir}/wicd/scripts/predisconnect
%{_sysconfdir}/acpi/resume.d/80-wicd-connect.sh
%{_sysconfdir}/acpi/suspend.d/50-wicd-suspend.sh
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/wicd.conf
%config(noreplace) %{_sysconfdir}/dhcp/dhclient.conf.template.default
%config(noreplace) %{_sysconfdir}/logrotate.d/wicd
%config(noreplace) %{_sysconfdir}/wicd/encryption/templates/active
%config(noreplace) %{_sysconfdir}/wicd/encryption/templates/eap
%config(noreplace) %{_sysconfdir}/wicd/encryption/templates/eap-tls
%config(noreplace) %{_sysconfdir}/wicd/encryption/templates/leap
%config(noreplace) %{_sysconfdir}/wicd/encryption/templates/peap
%config(noreplace) %{_sysconfdir}/wicd/encryption/templates/peap-tkip
%config(noreplace) %{_sysconfdir}/wicd/encryption/templates/ttls
%config(noreplace) %{_sysconfdir}/wicd/encryption/templates/wep-hex
%config(noreplace) %{_sysconfdir}/wicd/encryption/templates/wep-passphrase
%config(noreplace) %{_sysconfdir}/wicd/encryption/templates/wep-shared
%config(noreplace) %{_sysconfdir}/wicd/encryption/templates/wpa
%config(noreplace) %{_sysconfdir}/wicd/encryption/templates/wpa-psk
%{_systemd_unitdir}/wicd.service
%{python_sitelib}/wicd/*
%{python_sitelib}/Wicd-%{version}*.egg-info
%{_bindir}/wicd-cli
%{_bindir}/wicd-client
%{_sbindir}/wicd
%{_datadir}/applications/wicd.desktop
%{_datadir}/man/man1/wicd-client.1*
%{_datadir}/man/man5/wicd-manager-settings.conf.5*
%{_datadir}/man/man5/wicd-wired-settings.conf.5*
%{_datadir}/man/man5/wicd-wireless-settings.conf.5*
%{_datadir}/man/man8/wicd-cli.8*
%{_datadir}/man/man8/wicd.8*
%lang(nl) %{_datadir}/man/nl/man1/wicd-client.1*
%lang(nl) %{_datadir}/man/nl/man5/wicd-manager-settings.conf.5*
%lang(nl) %{_datadir}/man/nl/man5/wicd-wired-settings.conf.5*
%lang(nl) %{_datadir}/man/nl/man5/wicd-wireless-settings.conf.5*
%lang(nl) %{_datadir}/man/nl/man8/wicd.8*
%dir %{_datadir}/wicd
%dir %{_datadir}/wicd/backends
%dir %{_datadir}/wicd/cli
%dir %{_datadir}/wicd/daemon
%{_datadir}/wicd/backends/*
%{_datadir}/wicd/cli/*
%{_datadir}/wicd/daemon/*
%dir %{_localstatedir}/lib/wicd
%dir %{_localstatedir}/lib/wicd/configurations
%files curses
%defattr(-,root,root,-)
%dir %{_datadir}/wicd/curses
%{_datadir}/wicd/curses/*
%{_bindir}/wicd-curses
%{_datadir}/man/man8/wicd-curses.8*
%lang(nl) %{_datadir}/man/nl/man8/wicd-curses.8*
%files gtk
%defattr(-,root,root,-)
%dir %{_datadir}/wicd/gtk
%dir %{_datadir}/pixmaps/wicd
%{_sysconfdir}/xdg/autostart/wicd-tray.desktop
%{_datadir}/wicd/gtk/*
%{_datadir}/pixmaps/wicd/*
%{_datadir}/pixmaps/wicd-gtk.xpm
%{_bindir}/wicd-gtk
%{_datadir}/icons/hicolor/*/apps/wicd-gtk.png
%{_datadir}/icons/hicolor/scalable/apps/wicd-gtk.svg
%changelog
* Mon May 09 2011 Bill Nottingham <notting@redhat.com> - 1.7.0-8
- fix systemd scriptlets for upgrade
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Sat Jan 15 2011 David Cantrell <dcantrell@redhat.com> - 1.7.0-6
- Correct typo with _systemd_unitdir macro usage in spec file
* Sat Jan 15 2011 David Cantrell <dcantrell@redhat.com> - 1.7.0-5
- Replace existing init script with systemd unit file (#661226)
* Fri Oct 22 2010 David Cantrell <dcantrell@redhat.com> - 1.7.0-4
- Use cPickle instead of deepcopy in configmanager.py (#645251)
* Wed Aug 25 2010 David Cantrell <dcantrell@redhat.com> - 1.7.0-3
- Remove hard dependency on the base package by wicd-common. The
base package is arch-specific and contains optional components
for wicd. If it is present, wicd will make use of it, but it is
not required for normal functionality.
* Fri Jul 30 2010 Thomas Spura <tomspur@fedoraproject.org> - 1.7.0-2
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
* Mon Jun 21 2010 David Cantrell <dcantrell@redhat.com> - 1.7.0-1
- Initial package