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