]>
Commit | Line | Data |
---|---|---|
418887e5 | 1 | %define zope_subname ZAAPlugins |
2 | Summary: A set of plugins for use with ZAttachmentAttribute | |
608bcf0a | 3 | Summary(pl.UTF-8): Zestaw wtyczek do wykorzystania z ZAttachmentAttribute |
418887e5 | 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/ | |
8c95e74e | 12 | BuildRequires: rpmbuild(macros) >= 1.268 |
418887e5 | 13 | %pyrequires_eq python-modules |
418887e5 | 14 | Requires(post,postun): /usr/sbin/installzopeproduct |
8c95e74e | 15 | Requires: Zope |
418887e5 | 16 | BuildArch: noarch |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | A set of plugins for use with ZAttachmentAttribute. | |
21 | ||
32553e49 | 22 | %description -l pl.UTF-8 |
418887e5 | 23 | Zestaw wtyczek do wykorzystania z ZAttachmentAttribute. |
24 | ||
25 | %prep | |
26 | %setup -q -n %{zope_subname} | |
27 | ||
418887e5 | 28 | %install |
29 | rm -rf $RPM_BUILD_ROOT | |
418887e5 | 30 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name} |
31 | ||
32 | cp -af Audio Autocad Extensions HTML Image \ | |
33 | MS{Access,Excel,PowerPoint,Project,Word} PDF Zip skins text visio *.py *.txt \ | |
34 | $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} | |
8c95e74e | 44 | %service -q zope restart |
418887e5 | 45 | |
46 | %postun | |
47 | if [ "$1" = "0" ]; then | |
48 | /usr/sbin/installzopeproduct -d %{zope_subname} | |
8c95e74e | 49 | %service -q zope restart |
418887e5 | 50 | fi |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
54 | %doc doc/* CHANGES ChangeLog README | |
55 | %{_datadir}/%{name} |