]> git.pld-linux.org Git - packages/Zope-GroupUserFolder.git/blob - Zope-GroupUserFolder.spec
- upgraded to version 3.1
[packages/Zope-GroupUserFolder.git] / Zope-GroupUserFolder.spec
1 %define         zope_subname    GroupUserFolder
2 Summary:        A Zope product, a convenient tool to manage groups of users within Zope
3 Summary(pl):    Dodatek do Zope z wygodnym narzêdziem do zarz±dzaniem grupami i u¿ytkownikami w Zope
4 Name:           Zope-%{zope_subname}
5 Version:        3.1
6 # %%define              sub_ver Beta2
7 Release:        1
8 License:        GPL v2+
9 Group:          Development/Tools
10 Source0:        http://dl.sourceforge.net/collective/%{zope_subname}-%{version}.tar.gz
11 # Source0-md5:  1adb7240d34b8983153e33d5d9054f16
12 Patch0:         Zope-GroupUserFolder-bad_path_python.patch
13 URL:            http://sourceforge.net/projects/collective/
14 %pyrequires_eq  python-modules
15 Requires:       Zope
16 Requires(post,postun):  /usr/sbin/installzopeproduct
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 GroupUserFolder is a Zope product that is a convenient tool to manage
22 groups of users within Zope.
23
24 %description -l pl
25 GroupUserFolder jest dodatkiem dla Zope zawieraj±cym wygodne narzêdzie
26 do zarz±dzania grupami i u¿ytkownikami zawartymi w Zope.
27
28 %prep
29 %setup -q -n %{zope_subname}
30 %patch0 -p1
31 rm -f interfaces/.cvsignore
32 rm -f doc/py2htmldoc.py.orig
33
34 %install
35 rm -rf $RPM_BUILD_ROOT
36 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
37
38 cp -af {Extensions,doc,dtml,interfaces,skins,tests,website,www,*.py,*.gif,refresh.txt,version.txt,PRODUCT_NAME,product.txt} \
39         $RPM_BUILD_ROOT%{_datadir}/%{name}
40
41 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
42 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
43
44 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %post
50 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
51 if [ -f /var/lock/subsys/zope ]; then
52         /etc/rc.d/init.d/zope restart >&2
53 fi
54
55 %postun
56 if [ "$1" = "0" ]; then
57         /usr/sbin/installzopeproduct -d %{zope_subname} 
58         if [ -f /var/lock/subsys/zope ]; then
59                 /etc/rc.d/init.d/zope restart >&2
60         fi
61 fi
62
63 %files
64 %defattr(644,root,root,755)
65 %doc ChangeLog CHANGES CONTRIBUTORS README-Plone.stx README.txt TODO INSTALL.txt design.txt
66 %{_datadir}/%{name}
This page took 0.127366 seconds and 3 git commands to generate.