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