- tabs in preamble
[packages/Zope-CMFMPoll.git] / Zope-CMFMPoll.spec
CommitLineData
2a8edb3a 1%define zope_subname MPoll
2Summary: Sime cookie-based poll product based on Archetypes
fb3618f4 3Summary(pl.UTF-8): Produkt bazujący na Archetypes umożliwiający dodanie pola do głosowań
2a8edb3a 4Name: Zope-CMF%{zope_subname}
5Version: 0.3.1
54a5c49a 6Release: 2
2a8edb3a 7License: GPL
8Group: Development/Tools
fe9be1c0 9Source0: http://dl.sourceforge.net/collective/%{zope_subname}-%{version}.tar.gz
2a8edb3a 10# Source0-md5: bc8dd0f835e51a16a421e550bb4667f3
11URL: http://sourceforge.net/projects/collective/
a7e8e1ed 12BuildRequires: python
e81effdb
ER
13BuildRequires: rpmbuild(macros) >= 1.268
14Requires(post,postun): /usr/sbin/installzopeproduct
2a8edb3a 15%pyrequires_eq python-modules
16Requires: Zope
17Requires: Zope-CMF
18Requires: Zope-archetypes
e81effdb 19Conflicts: CMF
2a8edb3a 20BuildArch: noarch
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
2a8edb3a 22
23%description
fe9be1c0 24Sime cookie-based poll product based on Archetypes.
2a8edb3a 25
dc81a5dd
JR
26%description -l pl.UTF-8
27Produkt bazujący na Archetypes umożliwiający dodanie pola do głosowań.
2a8edb3a 28
29%prep
30%setup -q -n %{zope_subname}
31
32%install
33rm -rf $RPM_BUILD_ROOT
34install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
35
36cp -af {Extensions,i18n,skins,*.py,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
37
38%py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
39%py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
40
41# find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
42
43%clean
44rm -rf $RPM_BUILD_ROOT
45
46%post
47/usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
e81effdb 48%service -q zope restart
2a8edb3a 49
50%postun
51if [ "$1" = "0" ]; then
f1d6a383 52 /usr/sbin/installzopeproduct -d %{zope_subname}
e81effdb 53 %service -q zope restart
2a8edb3a 54fi
55
56%files
57%defattr(644,root,root,755)
58%doc HISTORY.txt README.txt LICENSE.txt
59%{_datadir}/%{name}
This page took 0.093896 seconds and 4 git commands to generate.