1 |
%define with_printer_applet 0 |
2 |
%{?_with_printer_applet: %{expand: %%global with_printer_applet 1}} |
3 |
|
4 |
%define branch 0 |
5 |
%{?_branch: %{expand: %%global branch 1}} |
6 |
|
7 |
%if %branch |
8 |
%define kde_snapshot svn1198704 |
9 |
%endif |
10 |
|
11 |
Name: kdeadmin4 |
12 |
Version: 4.5.95 |
13 |
Epoch: 2 |
14 |
Summary: K Desktop Environment - Administrative Tools |
15 |
Group: Graphical desktop/KDE |
16 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
17 |
URL: http://www.kde.org |
18 |
%if %branch |
19 |
Release: %mkrel -c %kde_snapshot 1 |
20 |
Source: ftp://ftp.kde.org/pub/kde/unstable/%version/src/kdeadmin-%version%kde_snapshot.tar.bz2 |
21 |
%else |
22 |
Release: %mkrel 3 |
23 |
Source: ftp://ftp.kde.org/pub/kde/stable/%version/src/kdeadmin-%version.tar.bz2 |
24 |
%endif |
25 |
License: GPL |
26 |
Requires: pciutils |
27 |
BuildRequires: kdelibs4-devel |
28 |
BuildRequires: kdepimlibs4-devel |
29 |
BuildRequires: python-kde4-devel |
30 |
BuildRequires: python-devel |
31 |
BuildRequires: python-cups |
32 |
%if %with_printer_applet |
33 |
BuildRequires: system-config-printer-libs |
34 |
%else |
35 |
BuildConflicts: system-config-printer-libs |
36 |
%endif |
37 |
Obsoletes: ksysv |
38 |
Suggests: kcron |
39 |
Suggests: kuser |
40 |
Suggests: ksystemlog |
41 |
|
42 |
%description |
43 |
The kdeadmin package contains packages that usually only a system |
44 |
administrator might need: |
45 |
- kcron: Editor for the cron command scheduler. |
46 |
- kuser: An user manager. |
47 |
|
48 |
%files |
49 |
%defattr(-,root,root) |
50 |
%doc README |
51 |
|
52 |
#------------------------------------------------------------------------ |
53 |
|
54 |
%package -n kuser |
55 |
Group: Graphical desktop/KDE |
56 |
Summary: Users and groups manager |
57 |
Provides: kuser4 |
58 |
Provides: kde4-kuser = %epoch:%version |
59 |
|
60 |
%description -n kuser |
61 |
Kuser is a tool to create, remove and modify user accounts and groups. |
62 |
|
63 |
%files -n kuser |
64 |
%defattr(-,root,root) |
65 |
%_kde_bindir/kuser |
66 |
%_kde_datadir/applications/kde4/kuser.desktop |
67 |
%_kde_datadir/apps/kuser |
68 |
%_kde_datadir/config.kcfg/kuser.kcfg |
69 |
%_kde_docdir/*/*/kuser |
70 |
%_kde_iconsdir/*/*/*/kuser* |
71 |
|
72 |
#------------------------------------------------------------------------ |
73 |
|
74 |
%package -n kcron |
75 |
Group: Graphical desktop/KDE |
76 |
Summary: Graphical task scheduler |
77 |
Provides: kcron4 |
78 |
Provides: kde4-kcron = %epoch:%version |
79 |
|
80 |
%description -n kcron |
81 |
Kcron is a graphical frontend to the cron system, used to schedule regular |
82 |
tasks on a Unix system. |
83 |
|
84 |
%files -n kcron |
85 |
%defattr(-,root,root) |
86 |
%_kde_datadir/kde4/services/kcm_cron.desktop |
87 |
%_kde_libdir/kde4/kcm_cron.so |
88 |
%_kde_docdir/*/*/kcron |
89 |
|
90 |
#------------------------------------------------------------------------ |
91 |
|
92 |
%package -n ksystemlog |
93 |
Group: Graphical desktop/KDE |
94 |
Summary: System log viewer tool for KDE 4 |
95 |
Provides: ksystemlog4 |
96 |
|
97 |
%description -n ksystemlog |
98 |
This program is developed for being used by beginner users, |
99 |
which don't know how to find information about their Linux system, |
100 |
and how the log files are in their computer. |
101 |
But it is also designed for advanced users, |
102 |
who want to quickly see problems occuring on their server. |
103 |
|
104 |
KSystemLog has the following features : |
105 |
|
106 |
- View all the main log of your system, by selecting them |
107 |
directly in a menu |
108 |
- Auto display new lines logged in bold |
109 |
- Tabbed view to allow displaying several logs at the same time |
110 |
- Saving in a file and copying to clipboard the selected log |
111 |
lines are also implemented (and email to your friends) |
112 |
- It can parse the following log files of your system : |
113 |
|
114 |
- X.org (or Xfree) logs |
115 |
- System logs (using the Syslog parser of KSystemLog) |
116 |
- Kernel logs |
117 |
- Daemons logs |
118 |
- Cron logs |
119 |
- Boot logs |
120 |
- Authentication logs |
121 |
- Cups logs |
122 |
- ACPID logs |
123 |
|
124 |
%files -n ksystemlog |
125 |
%defattr(-,root,root) |
126 |
%_kde_bindir/ksystemlog |
127 |
%_kde_appsdir/ksystemlog |
128 |
%_kde_datadir/applications/kde4/ksystemlog.desktop |
129 |
%_kde_docdir/*/*/ksystemlog |
130 |
|
131 |
#------------------------------------------------------------------------ |
132 |
|
133 |
%if %with_printer_applet |
134 |
%package -n system-config-printer-kde |
135 |
Summary: View current print jobs and configure new printers |
136 |
Group: Graphical desktop/KDE |
137 |
URL: http://utils.kde.org/projects/printer-applet |
138 |
Requires: python-kde4 |
139 |
Requires: python-cups |
140 |
Requires: python-dbus |
141 |
Requires: printer-applet |
142 |
|
143 |
%description -n system-config-printer-kde |
144 |
Printer Applet is a system tray utility that shows current print jobs, |
145 |
shows printer warnings and errors and shows when printers that have |
146 |
been plugged in for the first time are being auto-configured by |
147 |
hal-cups-utils. |
148 |
|
149 |
%files -n system-config-printer-kde |
150 |
%defattr(-,root,root) |
151 |
%_kde_datadir/kde4/services/system-config-printer-kde.desktop |
152 |
%_kde_appsdir/system-config-printer-kde |
153 |
%endif |
154 |
#------------------------------------------------------------------------ |
155 |
|
156 |
%prep |
157 |
%if %branch |
158 |
%setup -q -n kdeadmin-%version%kde_snapshot |
159 |
%else |
160 |
%setup -q -n kdeadmin-%version |
161 |
%endif |
162 |
|
163 |
%build |
164 |
%cmake_kde4 |
165 |
%make |
166 |
|
167 |
%install |
168 |
rm -fr %buildroot |
169 |
%makeinstall_std -C build |
170 |
|
171 |
%clean |
172 |
rm -fr %buildroot |