From: Jacek Konieczny Date: Tue, 30 Aug 2005 12:24:46 +0000 (+0000) Subject: - /usr/share/zope3/lib/python directory added to the package (so external X-Git-Tag: auto/ac/Zope3-3_1_0-1~11 X-Git-Url: http://git.pld-linux.org/?p=packages%2FZope3.git;a=commitdiff_plain;h=8ee2dd7b269c9e0aadeff591cb697d5bf6401af6 - /usr/share/zope3/lib/python directory added to the package (so external packages may be noarch) - skeleton directory moved to /etc/zope3 (so external packages may be noarch) - installzope3package script added to automate installing new add-on packages in existing Zope 3 instances Changed files: Zope3.spec -> 1.6 --- diff --git a/Zope3.spec b/Zope3.spec index d40049e..77c307b 100644 --- a/Zope3.spec +++ b/Zope3.spec @@ -1,7 +1,3 @@ -# -# TODO: -# - product registration mechanism (like installzopeproduct script for Zope 2) -# Summary: An application server and portal toolkit for building Web sites Summary(es): Un servidor de aplicaciones y un conjunto de herramientas para la construcción de sitios Web Summary(pl): Serwer aplikacji i toolkit portalowy do tworzenia serwisów WWW @@ -9,7 +5,7 @@ Summary(pt_BR): Um servidor de aplica Name: Zope3 Version: 3.1.0 %define sub_ver c1 -Release: 0.%{sub_ver}.0.1 +Release: 0.%{sub_ver}.0.2 License: Zope Public License (ZPL) Group: Networking/Daemons Source0: http://www.zope.org/Products/Zope3/%{version}%{sub_ver}/%{name}-%{version}%{sub_ver}.tgz @@ -18,11 +14,13 @@ Source1: %{name}.init Source2: %{name}.sysconfig Source3: %{name}.logrotate Source4: mkzope3instance +Source5: installzope3package +Patch0: %{name}-skeleton_path.patch URL: http://dev.zope.org/Zope3 BuildRequires: python-devel >= 1:2.4.1 BuildRequires: perl-base BuildRequires: rpmbuild(macros) >= 1.213 -PreReq: rc-scripts +Requires(post,preun): rc-scripts Requires(pre): /bin/id Requires(pre): /usr/bin/getgid Requires(pre): /usr/sbin/groupadd @@ -41,7 +39,8 @@ Provides: group(zope) Provides: user(zope) BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define zope_dir /usr/lib/zope3 +%define zope_libdir /usr/lib/zope3 +%define zope_datadir /usr/share/zope3 %description The Z Object Programming Environment (Zope) is a free, Open Source @@ -49,8 +48,8 @@ Python-based application server for building high-performance, dynamic web sites, using a powerful and simple scripting object model and high-performance, integrated object database. -This project is a redesign of Zope 2 and seeks to improve the Zope development -experience through the use of Interfaces and Components. +This project is a redesign of Zope 2 and seeks to improve the Zope +development experience through the use of Interfaces and Components. %description -l es Zope es una aplicación basada en Python, Open Source[tm], para la @@ -128,58 +127,63 @@ od "zope.interface". %prep %setup -q -n Zope-%{version}%{sub_ver} +%patch0 -p1 + cp %{SOURCE4} ./mkzope3instance chmod a+x ./mkzope3instance %build ./configure \ - --prefix=%{zope_dir} \ + --prefix=%{zope_libdir} \ --force %{__make} %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{py_sitedir},%{_sbindir}} \ +install -d $RPM_BUILD_ROOT{%{py_sitedir},%{_sbindir},%{zope_datadir}/lib/python} \ $RPM_BUILD_ROOT{/etc/logrotate.d,/etc/sysconfig,/etc/rc.d/init.d} \ $RPM_BUILD_ROOT{/var/lib/zope3/main,/var/run/zope3,/var/log/zope3/main} \ - $RPM_BUILD_ROOT%{_sysconfdir}/zope3/main - -python install.py -q install --skip-build --home "%{zope_dir}" --root "$RPM_BUILD_ROOT" -mv $RPM_BUILD_ROOT%{zope_dir}/lib/python/zope $RPM_BUILD_ROOT%{py_sitedir} +$RPM_BUILD_ROOT%{_sysconfdir}/zope3/main + +python install.py -q install --skip-build --home "%{zope_libdir}" --root "$RPM_BUILD_ROOT" +mv $RPM_BUILD_ROOT%{zope_libdir}/lib/python/zope $RPM_BUILD_ROOT%{py_sitedir} +rm $RPM_BUILD_ROOT%{zope_libdir}/zopeskel/bin/{*.bat.in,zopeservice*} +mv $RPM_BUILD_ROOT%{zope_libdir}/zopeskel $RPM_BUILD_ROOT%{_sysconfdir}/zope3 -cat >$RPM_BUILD_ROOT%{zope_dir}/bin/mkzopeinstance <$RPM_BUILD_ROOT%{zope_libdir}/bin/mkzopeinstance <> $RPM_BUILD_ROOT%{py_sitedir}/zope/app/__init__.py <