%include /usr/lib/rpm/macros.python
# TODO:
+# - check why initgroups() crashes on AMD64 and something, better than
+# disabling initgroups() completely, with that
# - no/more secure initial user/password settings (currently: zope/zope)
# - ZEO support (mkzeoinstance is not tested and probably doesn't work)
# - perl support?
Summary(pl): Serwer aplikacji i toolkit portalowy do tworzenia serwisów WWW
Summary(pt_BR): Um servidor de aplicações e um conjunto de ferramentas para construção de sites Web
Name: Zope
-Version: 2.7.0
-%define sub_ver b4
-Release: 3.%{sub_ver}.2
+Version: 2.7.1
+# %%define sub_ver b2
+Release: 4
License: Zope Public License (ZPL)
Group: Networking/Daemons
-Source0: http://www.zope.org/Products/%{name}/%{version}%{sub_ver}/%{version}%{sub_ver}/%{name}-%{version}-%{sub_ver}.tgz
-# Source0-md5: 97f5ec08f943de8e933936c05368af0d
+Source0: http://www.zope.org/Products/%{name}/%{version}/%{name}-%{version}.tgz
+# Source0-md5: ae9d4bb3f7220dfffb6e91b42503b16c
Source1: %{name}.init
Source2: %{name}.sysconfig
Source3: %{name}.logrotate
Patch0: %{name}-default_config.patch
Patch1: %{name}-instance_paths.patch
Patch2: %{name}-pld_makefile_fix.patch
+Patch3: %{name}-no_initgroups.patch
URL: http://www.zope.org/
BuildRequires: python-devel >= 2.3.3
BuildRequires: perl-base
Requires: python-libs >= 2.3.3
Requires: expat >= 1.95.7
Requires: python-PyXML >= 0.8.3
+Requires: Zope-Hotfix = 040714
%pyrequires_eq python
+Obsoletes: Zope-Hotfix = 040713
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define zope_dir /usr/lib/zope
%prep
-%setup -q -n %{name}-%{version}-%{sub_ver}
+%setup -q -n %{name}-%{version}-0
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%ifarch amd64 alpha
+%patch3 -p1
+%endif
%build
perl -pi -e "s|data_dir\s+=\s+.*?join\(INSTANCE_HOME, 'var'\)|data_dir=INSTANCE_HOME|" lib/python/Globals.py