1 Summary: Script for easy adding users
2 Summary(pl.UTF-8): Skrypt do prostego dodawania użytkowników
7 Group: Applications/System
8 Source0: %{name}-%{version}.tar.gz
9 # Source0-md5: 44fd89ee3b628806fc569473f5268c39
10 BuildRequires: gettext-devel
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 Interactive shell script for easy adding new users to the system.
20 Package contains files copied to new users home directories.
22 %description -l pl.UTF-8
23 Skrypt shella pozwalający interaktywnie dodawać nowych użytkowników do
24 systemu. Pakiet zawiera pliki kopiowane do katalogów domowych nowych
31 rm -rf $RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_datadir}/locale/pl/LC_MESSAGES} \
33 $RPM_BUILD_ROOT%{_sysconfdir}/{skel,adduser.d,default/public_html/{pl,en}}
35 install adduser $RPM_BUILD_ROOT%{_sbindir}
36 install adduser.conf $RPM_BUILD_ROOT%{_sysconfdir}/default/adduser
38 cp -R etcskel/. $RPM_BUILD_ROOT/etc/skel
41 cp -R etcskel/$lang/public_html/* $RPM_BUILD_ROOT%{_sysconfdir}/default/public_html/$lang
42 rm -rf $RPM_BUILD_ROOT/etc/skel/$lang/public_html
44 ln -sf en $RPM_BUILD_ROOT/etc/skel/default
45 msgfmt po/pl.po -o $RPM_BUILD_ROOT%{_datadir}/locale/pl/LC_MESSAGES/adduser.mo
50 rm -rf $RPM_BUILD_ROOT
52 %files -f %{name}.lang
53 %defattr(644,root,root,755)
54 %attr(755,root,root) %{_sbindir}/*
56 %dir %{_sysconfdir}/adduser.d
58 %dir %lang(pl) /etc/skel/pl
61 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/default/adduser
62 %config(noreplace) %verify(not md5 mtime size) /etc/skel/C/*
63 %config(noreplace) %verify(not md5 mtime size) /etc/skel/C/.[a-zA-Z0-9]*
64 #%config(noreplace) %verify(not size mtime md5) %lang(pl) /etc/skel/pl/*
65 %config(noreplace) %verify(not md5 mtime size) %lang(pl) /etc/skel/pl/.[a-zA-Z0-9]*
66 #%config(noreplace) %verify(not size mtime md5) /etc/skel/en/*
67 %config(noreplace) %verify(not md5 mtime size) /etc/skel/en/.[a-zA-Z0-9]*
68 %config(noreplace) %verify(not link) /etc/skel/default
70 %dir %{_sysconfdir}/default/public_html
71 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/default/public_html/*