]>
Commit | Line | Data |
---|---|---|
2b5183f4 | 1 | %define zope_subname PloneExFile |
2 | Summary: A Plone content type with an attachment | |
7acb0c3a | 3 | Summary(pl.UTF-8): Typ Plone z załącznikami |
2b5183f4 | 4 | Name: Zope-%{zope_subname} |
db52ba53 | 5 | Version: 3.02 |
2b5183f4 | 6 | Release: 1 |
7 | License: ZPL | |
8 | Group: Development/Tools | |
9 | Source0: http://dl.sourceforge.net/ingeniweb/%{zope_subname}-%{version}.tar.gz | |
db52ba53 | 10 | # Source0-md5: 3e23b7fe5e365bfad5ba3dcfa753ab85 |
2b5183f4 | 11 | URL: http://sourceforge.net/projects/ingeniweb/ |
63042173 | 12 | BuildRequires: rpmbuild(macros) >= 1.268 |
2b5183f4 | 13 | %pyrequires_eq python-modules |
63042173 | 14 | Requires(post,postun): /usr/sbin/installzopeproduct |
2b5183f4 | 15 | Requires: Zope |
16 | Requires: Zope-ZAttachmentAttribute >= 2.0 | |
2b5183f4 | 17 | BuildArch: noarch |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | A Plone content type with an attachment. | |
22 | ||
ddaca6c7 JR |
23 | %description -l pl.UTF-8 |
24 | Typ Plone z załącznikami. | |
2b5183f4 | 25 | |
26 | %prep | |
27 | %setup -q -n %{zope_subname} | |
28 | ||
2b5183f4 | 29 | %install |
30 | rm -rf $RPM_BUILD_ROOT | |
2b5183f4 | 31 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name} |
32 | ||
33 | cp -af Extensions i18n skins website *.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} | |
63042173 | 44 | %service -q zope restart |
2b5183f4 | 45 | |
46 | %postun | |
47 | if [ "$1" = "0" ]; then | |
48 | /usr/sbin/installzopeproduct -d %{zope_subname} | |
63042173 | 49 | %service -q zope restart |
2b5183f4 | 50 | fi |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
e094f980 | 54 | %doc ABOUT CHANGES CREDITS ChangeLog README.txt doc/* |
2b5183f4 | 55 | %{_datadir}/%{name} |