]> git.pld-linux.org Git - packages/Zope-PloneExFile.git/blob - Zope-PloneExFile.spec
- tabs in preamble
[packages/Zope-PloneExFile.git] / Zope-PloneExFile.spec
1 %define         zope_subname    PloneExFile
2 Summary:        A Plone content type with an attachment
3 Summary(pl.UTF-8):      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 BuildRequires:  rpmbuild(macros) >= 1.268
13 %pyrequires_eq  python-modules
14 Requires(post,postun):  /usr/sbin/installzopeproduct
15 Requires:       Zope
16 Requires:       Zope-ZAttachmentAttribute >= 2.0
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 A Plone content type with an attachment.
22
23 %description -l pl.UTF-8
24 Typ Plone z załącznikami.
25
26 %prep
27 %setup -q -n %{zope_subname}
28
29 %install
30 rm -rf $RPM_BUILD_ROOT
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}
44 %service -q zope restart
45
46 %postun
47 if [ "$1" = "0" ]; then
48         /usr/sbin/installzopeproduct -d %{zope_subname}
49         %service -q zope restart
50 fi
51
52 %files
53 %defattr(644,root,root,755)
54 %doc ABOUT CHANGES CREDITS ChangeLog README.txt doc/*
55 %{_datadir}/%{name}
This page took 0.042515 seconds and 3 git commands to generate.