You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tde-guidance/package/mandrake/guidance.spec

80 lines
2.6 KiB

%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 --mode=a=r,u+w package/mandrake/guidance-kcmdisplayconfig $RPM_BUILD_ROOT/%{_menudir}/guidance-kcmdisplayconfig
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
install -D kde/displayconfig/pics/16x16/displayconfig.png $RPM_BUILD_ROOT/%{_iconsdir}/displayconfig.png
rm $RPM_BUILD_ROOT/usr/share/applnk/Settings/Peripherals/displayconfig.desktop
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/displayconfig.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/kde3/*
%_libdir/python2.3/*
%{_menudir}/*
%{_iconsdir}/daemons.png
%{_iconsdir}/disksfilesystems.png
%{_iconsdir}/userconfig.png
%{_iconsdir}/displayconfig.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.