Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > by-pkgid > 7d7ffd4ae32b97dcb28086a909e59328 > files > 2

zope-PlacelessTranslationService-1.2.0-2mdk.src.rpm

%define product		PlacelessTranslationService
%define version 1.2.0
%define release 2

%define zope_minver	2.7

%define zope_home	%{_prefix}/lib/zope
%define software_home	%{zope_home}/lib/python

Summary:	PTS is a way of internationalizing (i18n'ing) and localizing (l10n'ing) software for Zope 2
Name:		zope-%{product}
Version:	%{version}
Release:	%mkrel %{release}
License:	GPL
Group:		System/Servers
Source:		http://ovh.dl.sourceforge.net/sourceforge/collective/PlacelessTranslationService-%{version}.tar.bz2
URL:		http://sourceforge.net/projects/collective
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch:	noarch
Requires:	zope >= %{zope_minver}

%description
PTS is a way of internationalizing (i18n'ing) and localizing (l10n'ing)
software for Zope 2.
It's based on the files supported by the GNU gettext set of utilities.

%prep
%setup -c

%build
# Not much, eh? :-)


%install
%{__rm} -rf %{buildroot}
%{__mkdir_p} %{buildroot}/%{software_home}/Products
%{__cp} -a * %{buildroot}%{software_home}/Products/


%clean
%{__rm} -rf %{buildroot}

%post
if [ "`%{_prefix}/bin/zopectl status`" != "daemon manager not running" ] ; then
	service zope restart
fi

%postun
if [ -f "%{_prefix}/bin/zopectl" ] && [ "`%{_prefix}/bin/zopectl status`" != "daemon manager not running" ] ; then
	service zope restart
fi

%files
%defattr(0644, root, root, 0755)
%{software_home}/Products/*


%changelog
* Sun Aug 21 2005 Gaetan Lehmann <gaetan.lehmann@jouy.inra.fr> 1.2.0-2mdk
- fix path on x86_64

* Thu Aug 04 2005 Gaetan Lehmann <gaetan.lehmann@jouy.inra.fr> 1.2.0-1mdk
- New release 1.2.0

* Tue Apr 24 2005 Gaetan Lehmann <gaetan.lehmann@jouy.inra.fr> 1.0.1-1mdk
- New release 1.0.1
- use mkrel

* Thu Jan 27 2005 Gaetan Lehmann <gaetan.lehmann@jouy.inra.fr> 1.0-1mdk
- initial contrib