]> git.pld-linux.org Git - packages/Zope-ZAttachmentAttribute.git/blob - Zope-ZAttachmentAttribute.spec
- tabs in preamble
[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.UTF-8):      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 BuildRequires:  rpmbuild(macros) >= 1.268
13 %pyrequires_eq  python-modules
14 Requires(post,postun):  /usr/sbin/installzopeproduct
15 Requires:       Zope
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 A system to manage attachments within Zope objects.
21
22 %description -l pl.UTF-8
23 Produkt dla Zope do zarządzania załącznikami.
24
25 %prep
26 %setup -q -n %{zope_subname}
27
28 %install
29 rm -rf $RPM_BUILD_ROOT
30 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
31
32 cp -af *.py *.txt dtml $RPM_BUILD_ROOT%{_datadir}/%{name}
33
34 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
35 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
36
37 %clean
38 rm -rf $RPM_BUILD_ROOT
39
40 %post
41 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
42 %service -q zope restart
43
44 %postun
45 if [ "$1" = "0" ]; then
46         /usr/sbin/installzopeproduct -d %{zope_subname}
47         %service -q zope restart
48 fi
49
50 %files
51 %defattr(644,root,root,755)
52 %doc doc/* CHANGES ChangeLog README
53 %{_datadir}/%{name}
This page took 0.077019 seconds and 3 git commands to generate.