]> git.pld-linux.org Git - packages/Zope-ZAttachmentAttribute.git/commitdiff
- initital
authorundefine <undefine@pld-linux.org>
Wed, 8 Jun 2005 15:32:35 +0000 (15:32 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    Zope-ZAttachmentAttribute.spec -> 1.1

Zope-ZAttachmentAttribute.spec [new file with mode: 0644]

diff --git a/Zope-ZAttachmentAttribute.spec b/Zope-ZAttachmentAttribute.spec
new file mode 100644 (file)
index 0000000..12e6af2
--- /dev/null
@@ -0,0 +1,61 @@
+%define                zope_subname    ZAttachmentAttribute
+Summary:       A system to manage attachments within Zope objects
+Summary(pl):   Produkt dla Zope do zarz±dzania za³±cznikami
+Name:          Zope-%{zope_subname}
+Version:       2.3
+Release:       1
+License:       GPL
+Group:         Development/Tools
+Source0:       http://dl.sourceforge.net/ingeniweb/%{zope_subname}-%{version}.tar.gz
+# Source0-md5: 1a88288063cbd373e38470f4618ab7b0
+Patch0:                %{name}-fix_octectstream.patch
+URL:           http://sourceforge.net/projects/ingeniweb/
+%pyrequires_eq python-modules
+Requires:      Zope
+Requires(post,postun): /usr/sbin/installzopeproduct
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A system to manage attachments within Zope objects.
+
+%description -l pl
+Produkt dla Zope do zarz±dzania za³±cznikami
+
+%prep
+%setup -q -n %{zope_subname}
+%patch0 -p1
+
+%build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
+
+cp -af *.py *.txt dtml $RPM_BUILD_ROOT%{_datadir}/%{name}
+
+%py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
+%py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
+if [ -f /var/lock/subsys/zope ]; then
+       /etc/rc.d/init.d/zope restart >&2
+fi
+
+%postun
+if [ "$1" = "0" ]; then
+       /usr/sbin/installzopeproduct -d %{zope_subname}
+       if [ -f /var/lock/subsys/zope ]; then
+               /etc/rc.d/init.d/zope restart >&2
+       fi
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc doc/* CHANGES ChangeLog README
+%{_datadir}/%{name}
This page took 0.066121 seconds and 4 git commands to generate.