rpms/tmda/devel tmda.spec, NONE, 1.1 tofmipd-init.patch, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Bernard Johnson (bjohnson) fedora-extras-commits at redhat.com
Tue Feb 20 01:34:32 UTC 2007


Author: bjohnson

Update of /cvs/extras/rpms/tmda/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv23435/devel

Modified Files:
	.cvsignore sources 
Added Files:
	tmda.spec tofmipd-init.patch 
Log Message:
auto-import tmda-1.1.10-4.fc6 on branch devel from tmda-1.1.10-4.fc6.src.rpm


--- NEW FILE tmda.spec ---
# Once the package is accepted into Fedora Extras, the uid should be assigned
# from the User Registry: http://fedoraproject.org/wiki/PackageUserRegistry
%define         registry_uid  %nil
%define         registry_name tofmipd

%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Name:           tmda
Version:        1.1.10
Release:        4%{?dist}%{?repotag:.%{repotag}}
Summary:        Tagged Message Delivery Agent 

Group:          Applications/System
License:        GPL
URL:            http://tmda.net
Source0:        http://tmda.net/releases/%{name}-%{version}.tgz
Patch0:         tofmipd-init.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch

BuildRequires:  python-devel >= 2.3

Requires:       python >= 2.3

%description
TMDA is an open source anti-spam system and local mail delivery agent.


%prep
%setup -q

%patch -p1 -b .tofmipd-init


%build
# fix shbang line in all executable files
find . -type f -perm 0755 -print | while read i
do
  sed '1,1s|/usr/bin/env python|%{__python}|g' $i > $i.tmp && mv $i.tmp $i && chmod 0755 $i
done
# remove x bits from all files in contrib as they will be used in %%doc
find contrib -type f -print | xargs chmod a-x

%install
rm -rf $RPM_BUILD_ROOT

# Note:  You will notice below that TMDA/pythonlib/email is from the python
# libraries.  TMDA requires an extremely stable API because of it's extensive
# use of these libraries.  Experience over many years has shown that even
# point releases can destabilize these libraries.  Therefore they are included
# here.  Depending on the TMDA release, there may also be bug fixes that appear
# here that are not in the current pythonlib.
install -d $RPM_BUILD_ROOT/%{_bindir}
install -d $RPM_BUILD_ROOT/%{_datadir}/tmda
install -d $RPM_BUILD_ROOT/%{_datadir}/emacs/site-lisp
install -d $RPM_BUILD_ROOT/%{python_sitelib}/TMDA/Queue
install -d $RPM_BUILD_ROOT/%{python_sitelib}/TMDA/pythonlib/email/mime
install -d $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig
install -d $RPM_BUILD_ROOT/%{_initrddir}
install -p -m 0755 bin/tmda-* $RPM_BUILD_ROOT/%{_bindir}
install -p -m 0644 templates/*.txt $RPM_BUILD_ROOT/%{_datadir}/tmda
install -p -m 0644 TMDA/*py $RPM_BUILD_ROOT/%{python_sitelib}/TMDA
install -p -m 0644 TMDA/Queue/*py $RPM_BUILD_ROOT/%{python_sitelib}/TMDA/Queue
install -p -m 0644 TMDA/pythonlib/email/*py $RPM_BUILD_ROOT/%{python_sitelib}/TMDA/pythonlib/email
install -p -m 0644 TMDA/pythonlib/email/mime/*py $RPM_BUILD_ROOT/%{python_sitelib}/TMDA/pythonlib/email/mime
install -p -m 0755 contrib/print{cdb,dbm} $RPM_BUILD_ROOT/%{_bindir}
install -p -m 0755 contrib/collectaddys $RPM_BUILD_ROOT/%{_bindir}
install -p -m 0644 contrib/tmda.el $RPM_BUILD_ROOT/%{_datadir}/emacs/site-lisp
install -p -m 0755 contrib/tofmipd.init $RPM_BUILD_ROOT/%{_initrddir}/tofmipd
install -p -m 0644 contrib/tofmipd.sysconfig $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/tofmipd

 
%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%{python_sitelib}/*
%{_bindir}/*
%{_datadir}/%{name}
%doc ChangeLog CODENAMES COPYING CRYPTO NEWS README THANKS UPGRADE contrib htdocs


%package emacs
Summary:        Tagged Message Deliver Agent - Emacs Support Files
Group:          Applications/System
Requires:       tmda = %{version}-%{release}, emacs

%description emacs
TMDA is an open source anti-spam system and local mail delivery agent.

This module contains useful helper routines for using TMDA from Gnus (and
perhaps other Emacs based mail/news readers).

%files emacs
%defattr(-,root,root,-)
%{_datadir}/emacs/site-lisp/tmda.el


%package ofmipd
Summary:        Tagged Message Delivery Agent - ofmipd server
Group:          System Environment/Daemons
Requires:       tmda = %{version}-%{release}
Url:            http://www.tmda.net/tmda-ofmipd.html

Requires      : initscripts
Requires(post): /sbin/chkconfig
Requires(preun):/sbin/chkconfig
Requires(pre):  fedora-usermgmt
Requires(postun):fedora-usermgmt

%description ofmipd
TMDA is an open source anti-spam system and local mail delivery agent.

tmda-ofmipd is an async I/O based authenticated ofmip proxy for TMDA.
This allows users of any mail client capable of SMTP Authentication
to "tag" their outgoing mail in the TMDA-style.

%files ofmipd
%defattr(0644,root,root)
# note that the tmda-ofmipd program is in %{_bindir} - that is because the
# program can be run by individual users as well as a system service
%attr(0755,root,root) %{_bindir}/tmda-ofmipd
%attr(0755,root,root) %{_initrddir}/tofmipd
%config(noreplace) %{_sysconfdir}/sysconfig/tofmipd

%pre ofmipd
/usr/sbin/fedora-groupadd %registry_uid -r %registry_name &> /dev/null || :
/usr/sbin/fedora-useradd  %registry_uid -r -s /sbin/nologin -d / -M \
  -c "TMDA OFMIP Daemon" -g %registry_name %registry_name &> /dev/null || :

%post ofmipd
if [ "$1" -ge "1" ]; then
  /sbin/chkconfig --add tofmipd &> /dev/null || :
fi

%preun ofmipd
if [ "$1" -eq "0" ]; then
  %{_initrddir}/tofmipd stop &> /dev/null || :
  /sbin/chkconfig --del tofmipd &> /dev/null || :
fi

%postun ofmipd
if [ "$1" -eq "0" ]; then
  /usr/sbin/fedora-userdel  %registry_name &> /dev/null || :
  /usr/sbin/fedora-groupdel %registry_name &> /dev/null || :
else
  %{_initrddir}/tofmipd condrestart &> /dev/null || :
fi


%changelog
* Sun Feb 18 2007 Bernard Johnson <bjohnson at symetrix.com> 1.1.10-4
- missed a %%{version}-%%{release} dependency, fixed it

* Sat Feb 17 2007 Bernard Johnson <bjohnson at symetrix.com> 1.1.10-3
- added NEWS to %%doc
- macro cleanup
- exact version dependency for subpackage

* Sat Feb 17 2007 Bernard Johnson <bjohnson at symetrix.com> 1.1.10-2
- consistent start/stop of daemon in scriptlets
- move requirements created by scripts to daemon package that requires them
- don't include the INSTALL file - it's information can be found elsewhere
- %%{python_sitelib}/TMDA/pythonlib/email/mime files were improperly packaged
- dependency on initscripts because of use of daemon function
- note regarding tmda inclusion of pythonlib/email
- change tofmipd user to / home directory

* Thu Feb 15 2007 Bernard Johnson <bjohnson at symetrix.com> 1.1.10-1
- version 1.1.10
- substitute RPM_BUILD_ROOT for %%{buildroot} macro
- preserve file timestamps
- change tofmipd user to /etc home directory
- switch to fedora-usermgmt user management
- add Require(post,preun) of /sbin/chkconfig

* Tue Nov 28 2006 Bernard Johnson <bjohnson at symetrix.com> 1.1.9-1
- initial release

tofmipd-init.patch:

--- NEW FILE tofmipd-init.patch ---
--- tmda-1.1.10/contrib/tofmipd.init.orig	2003-04-18 16:11:21.000000000 -0600
+++ tmda-1.1.10/contrib/tofmipd.init	2007-02-15 00:25:17.000000000 -0700
@@ -13,7 +13,7 @@
 # You can then start the service with the following command:
 #   service tofmipd start
 #
-# chkconfig: 2345 87 13
+# chkconfig: - 87 13
 # description: tofmipd is a server that allows tagging of outgoing mail \
 #          for the TMDA system.
 # processname: tofmipd
@@ -62,7 +62,7 @@
         status $program
 	RETVAL=$?
 	;;
-  restart)
+  restart|reload)
 	stop
 	start
 	;;


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/tmda/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	20 Feb 2007 01:13:08 -0000	1.1
+++ .cvsignore	20 Feb 2007 01:34:00 -0000	1.2
@@ -0,0 +1 @@
+tmda-1.1.10.tgz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/tmda/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	20 Feb 2007 01:13:08 -0000	1.1
+++ sources	20 Feb 2007 01:34:00 -0000	1.2
@@ -0,0 +1 @@
+6b04bcce2d96e7ba07a42978763949d2  tmda-1.1.10.tgz




More information about the scm-commits mailing list