]> git.pld-linux.org Git - packages/Zope-ZAttachmentAttribute.git/blame - Zope-ZAttachmentAttribute.spec
- tabs in preamble
[packages/Zope-ZAttachmentAttribute.git] / Zope-ZAttachmentAttribute.spec
CommitLineData
42292efb 1%define zope_subname ZAttachmentAttribute
2Summary: A system to manage attachments within Zope objects
a9679beb 3Summary(pl.UTF-8): Produkt dla Zope do zarządzania załącznikami
42292efb 4Name: Zope-%{zope_subname}
5Version: 2.3
6Release: 1
7License: GPL
8Group: Development/Tools
9Source0: http://dl.sourceforge.net/ingeniweb/%{zope_subname}-%{version}.tar.gz
10# Source0-md5: 1a88288063cbd373e38470f4618ab7b0
42292efb 11URL: http://sourceforge.net/projects/ingeniweb/
d161d330 12BuildRequires: rpmbuild(macros) >= 1.268
42292efb 13%pyrequires_eq python-modules
42292efb 14Requires(post,postun): /usr/sbin/installzopeproduct
d161d330 15Requires: Zope
42292efb 16BuildArch: noarch
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
20A system to manage attachments within Zope objects.
21
5f6bfe00
JR
22%description -l pl.UTF-8
23Produkt dla Zope do zarządzania załącznikami.
42292efb 24
25%prep
26%setup -q -n %{zope_subname}
42292efb 27
42292efb 28%install
29rm -rf $RPM_BUILD_ROOT
42292efb 30install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
31
32cp -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
38rm -rf $RPM_BUILD_ROOT
39
40%post
41/usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
d161d330 42%service -q zope restart
42292efb 43
44%postun
45if [ "$1" = "0" ]; then
46 /usr/sbin/installzopeproduct -d %{zope_subname}
d161d330 47 %service -q zope restart
42292efb 48fi
49
50%files
51%defattr(644,root,root,755)
52%doc doc/* CHANGES ChangeLog README
53%{_datadir}/%{name}
This page took 0.070637 seconds and 4 git commands to generate.