aboutsummaryrefslogtreecommitdiffstats
path: root/userdrake.spec
blob: 82f8b02b33af81738ced8dad9470734556812cb8 (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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# 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:	14mdk
#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.2-0.15mdk, perl-Gtk2 >= 0.26.cvs.2003.07.09.1-2mdk
BuildRoot:	%{_tmppath}/%{name}-buildroot
BuildRequires:  gettext perl-devel libuser-devel libglib2.0-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}/bin/*
%{_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
* Thu Jul 17 2003 Daouda LO <daouda@mandrakesoft.com> 0.92-14mdk
- libuser require fix

* Thu Jul 17 2003 Daouda LO <daouda@mandrakesoft.com> 0.92-13mdk
- change date format (YYYY/MM/DD)
- Use SpinButton to display date format (autoset with current date)
- Cosmetic changes (stock icons everywhere, fix a locale fr typo)

* Wed Jul 16 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 0.92-12mdk
- use stock icons in menus

* Tue Jul 15 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 0.92-11mdk
- still more stock items

* Mon Jul 14 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 0.92-10mdk
- buildrequires

* Thu Jul 10 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 0.92-9mdk
- use stock items

* Thu Jul 10 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 0.92-8mdk
- more gtk2-perl-xs port fixes

* Thu Jul 10 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 0.92-7mdk
- fix embedding in mcc

* Thu Jul 10 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 0.92-6mdk
- fix gtk2-perl-xs port

* Wed Jul  9 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 0.92-5mdk
- convert from gtk2-perl to gtk2-perl-xs
- stop reinventing the wheel: reuse existent infrastructure instead of
  duplicating it

* Fri Jul  4 2003 Daouda LO <daouda@mandrakesoft.com> 0.92-4mdk
- Status of user account (Locked or Expired) displayed in main window
- Keystroke features: 
		o Space bar and Enter key to select deselect user/group
		o Enter Key to perform filtering
		o Ctrl+Q to Quit (titi)
- sanity checks

* Tue Jul  1 2003 Daouda LO <daouda@mandrakesoft.com> 0.92-3mdk
- include link in %%files
- disable warnings when releasing (debug purpose)

* Fri Jun 27 2003 Daouda LO <daouda@mandrakesoft.com> 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 <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.