]> git.pld-linux.org Git - packages/Zope-ZAAPlugins.git/blob - Zope-ZAAPlugins.spec
- initial
[packages/Zope-ZAAPlugins.git] / Zope-ZAAPlugins.spec
1 %define         zope_subname    ZAAPlugins
2 Summary:        A set of plugins for use with ZAttachmentAttribute
3 Summary(pl):    Zestaw wtyczek do wykorzystania z ZAttachmentAttribute
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:  64f6476d8ae6f2a572a8a2662fa5ec7c
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 set of plugins for use with ZAttachmentAttribute.
20
21 %description -l pl
22 Zestaw wtyczek do wykorzystania z ZAttachmentAttribute.
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 Audio Autocad Extensions HTML Image \
35         MS{Access,Excel,PowerPoint,Project,Word} PDF Zip skins text visio *.py *.txt \
36         $RPM_BUILD_ROOT%{_datadir}/%{name}
37
38 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
39 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
40
41 %clean
42 rm -rf $RPM_BUILD_ROOT
43
44 %post
45 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
46 if [ -f /var/lock/subsys/zope ]; then
47         /etc/rc.d/init.d/zope restart >&2
48 fi
49
50 %postun
51 if [ "$1" = "0" ]; then
52         /usr/sbin/installzopeproduct -d %{zope_subname}
53         if [ -f /var/lock/subsys/zope ]; then
54                 /etc/rc.d/init.d/zope restart >&2
55         fi
56 fi
57
58 %files
59 %defattr(644,root,root,755)
60 %doc doc/* CHANGES ChangeLog README
61 %{_datadir}/%{name}
This page took 0.029179 seconds and 4 git commands to generate.