aboutsummaryrefslogtreecommitdiffstats
path: root/userdrake.spec
blob: 4510111bbb88f80a7e2550c3c8410a38ac7c051d (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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# 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:    1mdk
#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 <daouda@mandrakesoft.com>
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
rm -rf %{buildroot}

%setup -q
		
%build
cd USER
%{__perl} Makefile.PL INSTALLDIRS=vendor PREFIX=%{_prefix}
make OPTIMIZE="$RPM_OPT_FLAGS" PREFIX=%{_prefix}

%install
rm -rf %{buildroot}
make prefix=%{buildroot} install 

cd USER
%makeinstall PREFIX=$RPM_BUILD_ROOT%{_prefix}

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

#install lang
#%{find_lang} userdrake2
rm -f $RPM_BUILD_ROOT/usr/share/locale/fr/LC_MESSAGES/userdrake2.mo

%post
%{update_menus}

%postun
%{clean_menus}

%clean
rm -rf %{buildroot}

%files 
#-f userdrake2.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 23 2003 Daouda LO <daouda@mandrakesoft.com> 0.92-1mdk
- Rewriting of userdrake with many features (Check RELEASE_NOTES files)
- perl-Gtk2 port.
- Use of libuser facility through xs.