2 %include /usr/lib/rpm/macros.perl
3 Summary: SMTP authentication tool
4 Summary(pl.UTF-8): Narzędzie do uwierzytelniania SMTP
10 # based on http://jetmore.org/john/code/gen-auth
12 URL: http://jetmore.org/john/code/#gen-auth
13 BuildRequires: perl-tools-pod
14 BuildRequires: rpm-perlprov
15 Suggests: perl-perldoc
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 gen-auth is a tool that generates and decodes SMTP authentication
21 strings (PLAIN, LOGIN, CRAM-MD5, SPA).
23 %description -l pl.UTF-8
24 Narzędzie służące do generowania i dekodowania łancuchów
25 uwierzytelniania SMTP. Obsługiwane standardy to PLAIN, LOGIN, CRAM-MD5
32 pod2man %SOURCE0 > gen-auth.1
33 pod2text %SOURCE0 > gen-auth.txt
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
39 install %SOURCE0 $RPM_BUILD_ROOT%{_bindir}/%{name}
40 install gen-auth.1 $RPM_BUILD_ROOT%{_mandir}/man1/gen-auth.1
43 rm -rf $RPM_BUILD_ROOT
46 %defattr(644,root,root,755)
47 %attr(755,root,root) %{_bindir}/%{name}
48 %{_mandir}/man1/gen-auth.1*