# Changed by Makefile of cvs. # Please change this file only in cvs! %define version 0.92 %define name userdrake Summary: A graphical interface for administering users and groups Name: %{name} Version: %{version} Release: 2mdk #cvs source # http://www.linuxmandrake.com/en/cvs.php3 Source0: %{name}-%{version}.tar.bz2 URL: http://people.mandrakesoft.com/~daouda/mandrake/userdrake.html License: GPL Packager: Daouda Lo Group: System/Configuration/Other Requires: drakxtools >= 9.1-0.19mdk, perl-MDK-Common > 1.0.4-17mdk Requires: perl-GTK2 >= 0.0.cvs.2003.02.12.1, libuser >= 0.51.7-2mdk BuildRoot: %{_tmppath}/%{name}-buildroot BuildRequires: gettext perl-devel libuser-devel %description Userdrake is a user-friendly and powerful tool for administrating users and groups. It depends on the libuser library. %prep %setup -q %build cd USER %{__perl} Makefile.PL INSTALLDIRS=vendor PREFIX=%{_prefix} make OPTIMIZE="$RPM_OPT_FLAGS -w" PREFIX=%{_prefix} %install rm -rf $RPM_BUILD_ROOT make PREFIX=$RPM_BUILD_ROOT install cd USER %makeinstall PREFIX=$RPM_BUILD_ROOT%{_prefix} cd .. #install lang %{find_lang} userdrake mkdir -p $RPM_BUILD_ROOT%{_menudir} cat > $RPM_BUILD_ROOT%{_menudir}/%{name} << EOF ?package(%{name}):\ needs="x11" \ icon="userdrake.png" \ section="Configuration/Other" \ title="User Administration" \ longtitle="Add or remove users and groups" \ command="/usr/sbin/userdrake" EOF %post %{update_menus} %postun %{clean_menus} %clean rm -rf %{buildroot} %files -f userdrake.lang %defattr(-,root,root) %doc README COPYING RELEASE_NOTES %config(noreplace) %{_sysconfdir}/sysconfig/userdrake %{_prefix}/sbin/* %{_datadir}/userdrake %{_mandir}/man3pm/USER* #%{_libdir}/libDrakX/userdrake %{_menudir}/%{name} %{perl_vendorarch}/USER.pm %{perl_vendorarch}/auto/USER %{_iconsdir}/*.png %{_miconsdir}/*.png %{_liconsdir}/*.png %changelog * Mon Jun 30 2003 Daouda LO 0.92-2mdk - disable warnings when releasing (debug purpose) * Fri Jun 27 2003 Daouda LO 0.92-2mdk - added POs. - fixed set_active bug on undefined widget (italian and dutch locale): need testing. - sanity check (users that don't belong to any group) - Check the context before enumerating users (avoir die assertion in gtk) - link %%_bindir/userdrake to %%_sbindir/userdrake (for normal users and drakconf) - remove trailing rm -rf %%{buildroot} after %%setup (Per Oyvind) * Mon Jun 23 2003 Daouda LO 0.92-1mdk - Rewriting of userdrake with many features (Check RELEASE_NOTES files) - perl-Gtk2 port. - Use of libuser facility through xs.