]> git.pld-linux.org Git - packages/Zope-GroupUserFolder.git/blob - Zope-GroupUserFolder.spec
- tabs in preamble
[packages/Zope-GroupUserFolder.git] / Zope-GroupUserFolder.spec
1 %define         zope_subname    GroupUserFolder
2 %define         part_name groupuserfolder-3-5
3 Summary:        A Zope product, a convenient tool to manage groups of users within Zope
4 Summary(pl.UTF-8):      Dodatek do Zope z wygodnym narzędziem do zarządzaniem grupami i użytkownikami w Zope
5 Name:           Zope-%{zope_subname}
6 Version:        3.5
7 # %%define              sub_ver Beta2
8 Release:        1
9 Epoch:          1
10 License:        GPL v2+
11 Group:          Development/Tools
12 Source0:        http://plone.org/products/groupuserfolder/releases/%{version}/%{part_name}-tar.gz
13 # Source0-md5:  bbde3e369202eed37c833d37f176af26
14 URL:            http://ingeniweb.sourceforge.net/Products/GroupUserFolder/
15 BuildRequires:  python
16 BuildRequires:  rpmbuild(macros) >= 1.268
17 # Patch0:               Zope-GroupUserFolder-bad_path_python.patch
18 %pyrequires_eq  python-modules
19 Requires(post,postun):  /usr/sbin/installzopeproduct
20 Requires:       Zope
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 GroupUserFolder is a Zope product that is a convenient tool to manage
26 groups of users within Zope.
27
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.
31
32 %prep
33 %setup -q -n %{zope_subname}
34 # %%patch0 -p1
35 rm -f interfaces/.cvsignore
36 rm -f doc/py2htmldoc.py.orig
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
41
42 cp -af {Extensions,doc,dtml,interfaces,skins,tests,www,*.py,*.gif,refresh.txt,version.txt,PRODUCT_NAME,product.txt} \
43         $RPM_BUILD_ROOT%{_datadir}/%{name}
44
45 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
46 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
47
48 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %post
54 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
55 %service -q zope restart
56
57 %postun
58 if [ "$1" = "0" ]; then
59         /usr/sbin/installzopeproduct -d %{zope_subname}
60         %service -q zope restart
61 fi
62
63 %files
64 %defattr(644,root,root,755)
65 %doc ABOUT CHANGES CONTRIBUTORS README.txt TODO INSTALL.txt design.txt
66 %{_datadir}/%{name}
This page took 0.057844 seconds and 3 git commands to generate.