1 Summary: Mailing list manager written in Ruby
2 Summary(pl.UTF-8): Zarządca list dyskusyjnych napisany w języku Ruby
7 Group: Applications/Mail
8 Source0: http://www.tmtm.org/ja/ruby/tml/%{name}-%{version}.tar.gz
9 # Source0-md5: fc6b32f55999c0d7887c386842a6092d
10 Patch0: %{name}-paths.patch
11 URL: http://www.tmtm.org/ja/ruby/tml/
12 BuildRequires: rpmbuild(macros) >= 1.277
13 BuildRequires: ruby-devel
14 Requires(post): fileutils
16 Requires(postun): /usr/sbin/groupdel
17 Requires(postun): /usr/sbin/userdel
18 Requires(pre): /bin/id
19 Requires(pre): /usr/bin/getgid
20 Requires(pre): /usr/sbin/groupadd
21 Requires(pre): /usr/sbin/useradd
22 %{?ruby_mod_ver_requires_eq}
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 Mailing list manager written in Ruby.
32 %description -l pl.UTF-8
33 Zarządca list dyskusyjnych napisany w języku Ruby.
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT{%{_localstatedir}/spool/tml,%{_sbindir},%{_libdir}/%{name}/templates,%{ruby_rubylibdir}/%{name},%{_localstatedir}/spool/%{name},/etc/mail}
45 install tmladmin $RPM_BUILD_ROOT%{_sbindir}
46 install tml tmlctl $RPM_BUILD_ROOT%{_libdir}/%{name}
47 install tml.rb mail.rb tml-file.rb tml-mysql.rb $RPM_BUILD_ROOT%{ruby_rubylibdir}/%{name}
48 install templates/* $RPM_BUILD_ROOT%{_libdir}/%{name}/templates
49 echo '$domain = "localdomain"' > $RPM_BUILD_ROOT/etc/mail/tml.conf
52 rm -rf $RPM_BUILD_ROOT
55 %groupadd -f -g 132 -r tml
56 %useradd -u 132 -r -d %{_localstatedir}/spool/tml -s /bin/false -c "TML Mailing list manager" -g tml tml
59 if [ "$1" = "0" ]; then
67 if [ -f /etc/mail/aliases ]; then
68 if [ -e /etc/smrsh ]; then
69 if ! grep -q "^%{name}:" /etc/mail/aliases; then
70 echo "%{name}: \"|/etc/smrsh/tml\"" >> /etc/mail/aliases
74 if ! grep -q "^%{name}:" /etc/mail/aliases; then
75 echo "%{name}: \"|%{_libdir}/%{name}/%{name}\"" >> /etc/mail/aliases
82 if [ ! -f /etc/mail/mailname -a -d /etc/mail -a -x /bin/hostname ]; then
83 hostname -f > /etc/mail/mailname
87 if [ -e /etc/smrsh -a ! -e /etc/smrsh/tml ]; then
88 echo "#!/bin/sh" > /etc/smrsh/tml
89 echo "%{_bindir}/tml \$@" >> /etc/smrsh/tml
90 chmod ug+rx /etc/smrsh/tml
92 echo "Your installation has been detected to have SMRSH, the SendMail"
93 echo "Restricted SHell, installed. If this is your first install, you"
94 echo "will want to change the address for TML in the aliases file to be"
95 echo "/etc/smrsh/tml instead of /usr/bin/tml"
96 chmod a+x /etc/smrsh/tml
100 %defattr(644,root,root,755)
101 %doc README.html tommy.css mysql.sql
102 %config(noreplace) /etc/mail/tml.conf
103 %dir %{_libdir}/%{name}
104 %dir %{_libdir}/%{name}/templates
105 %{_libdir}/%{name}/templates/*
106 %attr(755,root,root) %{_libdir}/%{name}/tml
107 %attr(755,root,root) %{_libdir}/%{name}/tmlctl
108 %attr(755,root,root) %{_sbindir}/tmladmin
109 %{ruby_rubylibdir}/%{name}
110 %attr(755,tml,tml) %{_localstatedir}/spool/tml