summaryrefslogtreecommitdiffstats
path: root/package/mandrake/guidance.spec
blob: 833bb64f8ccfacf2ded01f6cc3c7d18b0282dafe (plain)
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
71
72
73
74
%define name guidance
%define version 0.3.0
%define release 1mdk

Summary: 	Configuration Utilities
Name: 		%{name}
Version: 	%{version}
Release: 	%{release}
Packager: 	Simon Edwards <simon@simonzone.com>
Source: 	%{name}-%{version}.tar.bz2
License: 	GPL
Group: 		System/Configuration
URL: 		http://www.simonzone.com/software/guidance/
Requires: 	python
Requires:       libpythonize0
BuildRequires:  python-devel
BuildRequires:  libpythonize0-devel
Requires:       PyKDE
Buildroot: 	%_tmppath/%name-buildroot

%description
Guidance.

Development version.

%prep
rm -rf $RPM_BUILD_ROOT

%setup -q

%build
%install
./setup.py install --root=$RPM_BUILD_ROOT build_kcm
install -D --mode=a=r,u+w package/mandrake/guidance-kcmuserconfig $RPM_BUILD_ROOT/%{_menudir}/guidance-kcmuserconfig
install -D --mode=a=r,u+w package/mandrake/guidance-kcmmountconfig $RPM_BUILD_ROOT/%{_menudir}/guidance-kcmmountconfig
install -D --mode=a=r,u+w package/mandrake/guidance-kcmserviceconfig $RPM_BUILD_ROOT/%{_menudir}/guidance-kcmserviceconfig

install -D kde/serviceconfig/pics/16x16/daemons.png $RPM_BUILD_ROOT/%{_iconsdir}/daemons.png
install -D kde/mountconfig/pics/16x16/disksfilesystems.png $RPM_BUILD_ROOT/%{_iconsdir}/disksfilesystems.png
install -D kde/userconfig/pics/16x16/userconfig.png $RPM_BUILD_ROOT/%{_iconsdir}/userconfig.png

rm $RPM_BUILD_ROOT/usr/share/applnk/Settings/System/mountconfig.desktop
rm $RPM_BUILD_ROOT/usr/share/applnk/Settings/System/serviceconfig.desktop
rm $RPM_BUILD_ROOT/usr/share/applnk/Settings/System/userconfig.desktop
rm $RPM_BUILD_ROOT/usr/share/icons/crystalsvg/16x16/apps/daemons.png
rm $RPM_BUILD_ROOT/usr/share/icons/crystalsvg/16x16/apps/disksfilesystems.png
rm $RPM_BUILD_ROOT/usr/share/icons/crystalsvg/16x16/apps/userconfig.png

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README TODO COPYING ChangeLog
%_bindir/*
%_datadir/apps/guidance/*
%_libdir/trinity/*
%_libdir/python2.3/*
%{_menudir}/*
%{_iconsdir}/daemons.png
%{_iconsdir}/disksfilesystems.png
%{_iconsdir}/userconfig.png

%post
%{update_menus}
%postun
%{clean_menus}

%changelog
* Sun Mar 20 2005 Simon Edwards <simon@simonzone.com> 0.3.0-1mdk
- 0.3.0.

* Thu Dec 9 2004 Simon Edwards <simon@simonzone.com> 0.2.0-1mdk
- Initial rpm.