3 Summary: Script for easy adding users
4 Summary(pl.UTF-8): Skrypt do prostego dodawania użytkowników
9 Group: Applications/System
10 Source0: http://ftp.debian.org/debian/pool/main/a/adduser/%{name}_%{version}.tar.gz
11 # Source0-md5: 826832470e042eedeff7219071c40743
12 URL: http://alioth.debian.org/projects/adduser/
13 BuildRequires: gettext-tools
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Interactive shell script for easy adding new users to the system.
23 Package contains files copied to new users home directories.
25 %description -l pl.UTF-8
26 Skrypt shella pozwalający interaktywnie dodawać nowych użytkowników do
27 systemu. Pakiet zawiera pliki kopiowane do katalogów domowych nowych
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_datadir}/locale/pl/LC_MESSAGES} \
36 $RPM_BUILD_ROOT%{_sysconfdir}/{skel,adduser.d,default/public_html/{pl,en}}
38 install adduser $RPM_BUILD_ROOT%{_sbindir}
39 install adduser.conf $RPM_BUILD_ROOT%{_sysconfdir}/default/adduser
41 cp -R etcskel/. $RPM_BUILD_ROOT/etc/skel
44 cp -R etcskel/$lang/public_html/* $RPM_BUILD_ROOT%{_sysconfdir}/default/public_html/$lang
45 rm -rf $RPM_BUILD_ROOT/etc/skel/$lang/public_html
47 ln -sf en $RPM_BUILD_ROOT/etc/skel/default
48 msgfmt po/pl.po -o $RPM_BUILD_ROOT%{_datadir}/locale/pl/LC_MESSAGES/adduser.mo
53 rm -rf $RPM_BUILD_ROOT
55 %files -f %{name}.lang
56 %defattr(644,root,root,755)
57 %attr(755,root,root) %{_sbindir}/*
59 %dir %{_sysconfdir}/adduser.d
61 %dir %lang(pl) /etc/skel/pl
64 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/default/adduser
65 %config(noreplace) %verify(not md5 mtime size) /etc/skel/C/*
66 %config(noreplace) %verify(not md5 mtime size) /etc/skel/C/.[a-zA-Z0-9]*
67 #%config(noreplace) %verify(not size mtime md5) %lang(pl) /etc/skel/pl/*
68 %config(noreplace) %verify(not md5 mtime size) %lang(pl) /etc/skel/pl/.[a-zA-Z0-9]*
69 #%config(noreplace) %verify(not size mtime md5) /etc/skel/en/*
70 %config(noreplace) %verify(not md5 mtime size) /etc/skel/en/.[a-zA-Z0-9]*
71 %config(noreplace) %verify(not link) /etc/skel/default
73 %dir %{_sysconfdir}/default/public_html
74 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/default/public_html/*