]> git.pld-linux.org Git - packages/Zope-PloneExFile.git/blob - Zope-PloneExFile.spec
- upgraded to version 3.02
[packages/Zope-PloneExFile.git] / Zope-PloneExFile.spec
1 %define         zope_subname    PloneExFile
2 Summary:        A Plone content type with an attachment
3 Summary(pl):    Typ Plone z za³±cznikami
4 Name:           Zope-%{zope_subname}
5 Version:        3.02
6 Release:        1
7 License:        ZPL
8 Group:          Development/Tools
9 Source0:        http://dl.sourceforge.net/ingeniweb/%{zope_subname}-%{version}.tar.gz
10 # Source0-md5:  3e23b7fe5e365bfad5ba3dcfa753ab85
11 URL:            http://sourceforge.net/projects/ingeniweb/
12 %pyrequires_eq  python-modules
13 Requires:       Zope
14 Requires:       Zope-ZAttachmentAttribute >= 2.0
15 Requires(post,postun):  /usr/sbin/installzopeproduct
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 A Plone content type with an attachment.
21
22 %description -l pl
23 Typ Plone z za³±cznikami.
24
25 %prep
26 %setup -q -n %{zope_subname}
27
28 %install
29 rm -rf $RPM_BUILD_ROOT
30 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
31
32 cp -af Extensions i18n skins website *.py *.txt \
33         $RPM_BUILD_ROOT%{_datadir}/%{name}
34
35 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
36 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
37
38 %clean
39 rm -rf $RPM_BUILD_ROOT
40
41 %post
42 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
43 if [ -f /var/lock/subsys/zope ]; then
44         /etc/rc.d/init.d/zope restart >&2
45 fi
46
47 %postun
48 if [ "$1" = "0" ]; then
49         /usr/sbin/installzopeproduct -d %{zope_subname}
50         if [ -f /var/lock/subsys/zope ]; then
51                 /etc/rc.d/init.d/zope restart >&2
52         fi
53 fi
54
55 %files
56 %defattr(644,root,root,755)
57 %doc ABOUT CHANGES CREDITS ChangeLog README.txt doc/*
58 %{_datadir}/%{name}
This page took 0.056397 seconds and 4 git commands to generate.