diff options
author | Daouda Lo <daouda@mandriva.com> | 2001-02-08 12:52:52 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2001-02-08 12:52:52 +0000 |
commit | c56fc59bba121fd2aa6e3227a16a8e2476e89176 (patch) | |
tree | 8d5111e4d9e1bf88fc88d2f7d64237d7e8479eb1 /mdkcc.spec | |
parent | 79a51f51342d77151551fe30f01ef59bc6ab98bc (diff) | |
download | control-center-c56fc59bba121fd2aa6e3227a16a8e2476e89176.tar control-center-c56fc59bba121fd2aa6e3227a16a8e2476e89176.tar.gz control-center-c56fc59bba121fd2aa6e3227a16a8e2476e89176.tar.bz2 control-center-c56fc59bba121fd2aa6e3227a16a8e2476e89176.tar.xz control-center-c56fc59bba121fd2aa6e3227a16a8e2476e89176.zip |
add Control Center spec
Diffstat (limited to 'mdkcc.spec')
-rw-r--r-- | mdkcc.spec | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/mdkcc.spec b/mdkcc.spec new file mode 100644 index 00000000..1fd94ff5 --- /dev/null +++ b/mdkcc.spec @@ -0,0 +1,92 @@ +# Changed by Makefile of cvs. +%define version 0.50 +%define name DrakControl + +Summary: The Mandrake Control Center +Name: %{name} +Version: %{version} +Release: 1mdk +# get the source from our cvs repository (see +# http://www.linuxmandrake.com/en/cvs.php3) +Source0: %{name}-%{version}.tar.bz2 +Source1: drakcontrol16.xpm.bz2 +Source2: drakcontrol32.xpm.bz2 +Source3: drakcontrol48.xpm.bz2 +Copyright: GPL +Group: System/Configuration/Other +BuildRoot: %{_tmppath}/%{name}-buildroot + +%description +DrakControl is an interface to multiple utilities from DrakXtools. It +allows you to launch : + + * KeyboardDrake: configures your keyboard. + * MouseDrake: configures and autodetects your mouse + * PrinterDrake: detects and configures your printer + * Diskdrake: partitions your hard disk. + * XfDrake: configure your graphic card easily and change + the resolution on the fly. + +and many other tools in an embedded way . + +%prep +%setup -q + +%build + +%install +rm -rf $RPM_BUILD_ROOT +make prefix=$RPM_BUILD_ROOT install + +#mkdir -p $RPM_BUILD_ROOT%{_bindir} +#ln -sf consolehelper ${RPM_BUILD_ROOT}%{_bindir}/DrakConf +mv ${RPM_BUILD_ROOT}%{_prefix}/X11R6/bin/DrakControl \ + ${RPM_BUILD_ROOT}%{_prefix}/X11R6/bin/DrakControl.real +ln -sf %{_bindir}/consolehelper ${RPM_BUILD_ROOT}%{_prefix}/X11R6/bin/DrakControl +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/{pam.d,security/console.apps} +cp pam.drakcontrol $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/drakcontrol +cp apps.DrakControl $RPM_BUILD_ROOT%{_sysconfdir}/security/console.apps/DrakControl + + +#install lang +%{find_lang} %{name} + +#install menu +mkdir -p $RPM_BUILD_ROOT%{_menudir} +cat > $RPM_BUILD_ROOT%{_menudir}/DrakControl << EOF +?package(DrakControl): needs="X11" icon="drakcontrol.xpm" section="Configuration/Other" title="DrakControl" longtitle="System configuration tool" command="/usr/X11R6/bin/DrakControl" +EOF + +#install menu icon +mkdir -p $RPM_BUILD_ROOT%{_miconsdir} +mkdir -p $RPM_BUILD_ROOT%{_liconsdir} +bzcat %{SOURCE1} > $RPM_BUILD_ROOT%{_miconsdir}/mdkcc.xpm +bzcat %{SOURCE2} > $RPM_BUILD_ROOT%{_iconsdir}/mdkcc.xpm +bzcat %{SOURCE3} > $RPM_BUILD_ROOT%{_liconsdir}/mdkcc.xpm + +%post +%{update_menus} + +%postun +%{clean_menus} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f %{name}.lang +%defattr(-,root,root) +%doc ChangeLog README.CVS TRANSLATORS +%config(noreplace) /etc/mdkcc/* +%{_prefix}/X11R6/bin/* +%{_menudir}/DrakControl +%{_miconsdir}/*.xpm +%{_iconsdir}/*.xpm +%{_liconsdir}/*.xpm +%config(noreplace) %{_sysconfdir}/pam.d/DrakControl +%config(noreplace) %{_sysconfdir}/security/console.apps/DrakControl + +%changelog + +* Tue Feb 6 2001 Daouda Lo <daouda@mandrakesoft.com> 0.50-1mdk +- First Mandrake release , don't except anything to work ;) + |