]> git.pld-linux.org Git - packages/Zope3-zwiki.git/commitdiff
- new
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 20 Dec 2005 22:24:30 +0000 (22:24 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    Zope3-zwiki.spec -> 1.1

Zope3-zwiki.spec [new file with mode: 0644]

diff --git a/Zope3-zwiki.spec b/Zope3-zwiki.spec
new file mode 100644 (file)
index 0000000..f4f2417
--- /dev/null
@@ -0,0 +1,75 @@
+%define        zope_subname    ZWiki
+Summary:       Zope product which allows you to build wiki webs in Zope
+Summary(pl):   Produkt Zope umo¿liwiaj±cy budowanie stron WWW typu wiki
+Name:          Zope3-%{zope_subname}
+Version:       3.0.0
+Release:       1
+License:       GPL
+Group:         Development/Tools
+Source0:       http://www.zope.org/Products/Zope3-Packages/zwiki/%{version}/zwiki-%{version}.tgz
+# Source0-md5: 7a469eb4c313c40c89a4e0a47da27e8e
+URL:           http://www.zope.org/DevHome/Wikis/DevSite/Projects/ComponentArchitecture/ZwikiForZope3
+BuildRequires: python
+Requires(post,postun): /usr/sbin/installzope3package
+%pyrequires_eq python-modules
+Requires:      Zope3
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define         zope_libdir             /usr/lib/zope3
+%define         zope_pyscriptdir        /usr/share/zope3/lib/python
+
+%description
+ZWiki is a Zope product which allows you to build wiki webs in Zope.
+
+%description -l pl
+ZWiki to produkt Zope umo¿liwiaj±cy budowanie stron WWW typu wiki.
+
+%prep
+%setup -q -n zwiki-%{version}
+
+%build
+./configure \
+       --with-python=%{_bindir}/python
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/zope3
+install -d $RPM_BUILD_ROOT%{_var}/spool/%{name}/{tmp,new,cur}
+
+python install.py install \
+        --root="$RPM_BUILD_ROOT" \
+        --install-purelib="%{zope_pyscriptdir}"
+
+mv $RPM_BUILD_ROOT%{_prefix}/zopeskel $RPM_BUILD_ROOT%{_sysconfdir}/zope3
+
+%py_comp $RPM_BUILD_ROOT%{zope_pyscriptdir}
+%py_ocomp $RPM_BUILD_ROOT%{zope_pyscriptdir}
+%py_postclean
+
+ln -s %{_var}/spool/%{name} $RPM_BUILD_ROOT%{zope_pyscriptdir}/zwiki/mail-queue
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%{_sbindir}/installzope3package %{zope_pyscriptdir}/zwiki zwiki
+if [ -f /var/lock/subsys/zope3 ]; then
+       /etc/rc.d/init.d/zope3 restart >&2
+fi
+
+%postun
+if [ "$1" = "0" ]; then
+       %{_sbindir}/installzope3package -d zwiki
+       if [ -f /var/lock/subsys/zope ]; then
+               /etc/rc.d/init.d/zope restart >&2
+       fi
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc zwiki/*.txt
+%{zope_pyscriptdir}
+%{_sysconfdir}/zope3/zopeskel%{_sysconfdir}/package-includes/*.zcml
+%attr(770,zope,zope) %{_var}/spool/%{name}
This page took 0.112334 seconds and 4 git commands to generate.