]>
Commit | Line | Data |
---|---|---|
09a0a7f9 | 1 | %define zope_subname GroupUserFolder |
20734267 | 2 | %define part_name groupuserfolder-3-5 |
63d1e4f9 | 3 | Summary: A Zope product, a convenient tool to manage groups of users within Zope |
eb072fe4 | 4 | Summary(pl.UTF-8): Dodatek do Zope z wygodnym narzędziem do zarządzaniem grupami i użytkownikami w Zope |
09a0a7f9 | 5 | Name: Zope-%{zope_subname} |
1b9e8bef | 6 | Version: 3.5 |
af379d89 | 7 | # %%define sub_ver Beta2 |
4c6ba8d9 | 8 | Release: 1 |
d5e431ac | 9 | Epoch: 1 |
3df4fd4f | 10 | License: GPL v2+ |
09a0a7f9 | 11 | Group: Development/Tools |
1b9e8bef | 12 | Source0: http://plone.org/products/groupuserfolder/releases/%{version}/%{part_name}-tar.gz |
13 | # Source0-md5: bbde3e369202eed37c833d37f176af26 | |
d5e431ac | 14 | URL: http://ingeniweb.sourceforge.net/Products/GroupUserFolder/ |
00fbf2cb | 15 | BuildRequires: python |
20734267 ER |
16 | BuildRequires: rpmbuild(macros) >= 1.268 |
17 | # Patch0: Zope-GroupUserFolder-bad_path_python.patch | |
09a0a7f9 | 18 | %pyrequires_eq python-modules |
00fbf2cb | 19 | Requires(post,postun): /usr/sbin/installzopeproduct |
20734267 | 20 | Requires: Zope |
09a0a7f9 | 21 | BuildArch: noarch |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
09a0a7f9 | 24 | %description |
1e6c2fc5 JB |
25 | GroupUserFolder is a Zope product that is a convenient tool to manage |
26 | groups of users within Zope. | |
09a0a7f9 | 27 | |
75510705 JR |
28 | %description -l pl.UTF-8 |
29 | GroupUserFolder jest dodatkiem dla Zope zawierającym wygodne narzędzie | |
30 | do zarządzania grupami i użytkownikami zawartymi w Zope. | |
09a0a7f9 | 31 | |
32 | %prep | |
3df4fd4f | 33 | %setup -q -n %{zope_subname} |
4c6ba8d9 | 34 | # %%patch0 -p1 |
981da6aa | 35 | rm -f interfaces/.cvsignore |
9cda513c | 36 | rm -f doc/py2htmldoc.py.orig |
09a0a7f9 | 37 | |
09a0a7f9 | 38 | %install |
39 | rm -rf $RPM_BUILD_ROOT | |
ca2786e0 | 40 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name} |
1e6c2fc5 | 41 | |
4c6ba8d9 | 42 | cp -af {Extensions,doc,dtml,interfaces,skins,tests,www,*.py,*.gif,refresh.txt,version.txt,PRODUCT_NAME,product.txt} \ |
ca2786e0 | 43 | $RPM_BUILD_ROOT%{_datadir}/%{name} |
09a0a7f9 | 44 | |
ca2786e0 JK |
45 | %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name} |
46 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name} | |
09a0a7f9 | 47 | |
53417b3a | 48 | # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;; |
09a0a7f9 | 49 | |
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %post | |
ca2786e0 | 54 | /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname} |
20734267 | 55 | %service -q zope restart |
09a0a7f9 | 56 | |
09a0a7f9 | 57 | %postun |
ca2786e0 | 58 | if [ "$1" = "0" ]; then |
20734267 ER |
59 | /usr/sbin/installzopeproduct -d %{zope_subname} |
60 | %service -q zope restart | |
09a0a7f9 | 61 | fi |
62 | ||
63 | %files | |
64 | %defattr(644,root,root,755) | |
daa2db4b | 65 | %doc ABOUT CHANGES CONTRIBUTORS README.txt TODO INSTALL.txt design.txt |
ca2786e0 | 66 | %{_datadir}/%{name} |