]> git.pld-linux.org Git - packages/Zope-LocalFS.git/blob - Zope-LocalFS.spec
- upgraded to version 1.3
[packages/Zope-LocalFS.git] / Zope-LocalFS.spec
1 #
2 # WARNING: this product not work propertly on Zope 2.7* !
3 #
4 %include        /usr/lib/rpm/macros.python
5 %define         zope_subname    LocalFS
6 Summary:        This product allows you to store Zope objects as human-readable files
7 Summary(pl):    Dodatek umo¿liwiaj±cy praktyczniejsze przetrzymywanie obiektów Zope
8 Name:           Zope-%{zope_subname}
9 Version:        1.3
10 Release:        1
11 License:        Distributable
12 Group:          Development/Tools
13 Source0:        http://www.easyleading.org/Downloads/%{zope_subname}-%{version}-andreas.tar.gz
14 # Source0-md5:  0fe97ac8a24e1e706df8d5d4d9543858
15 URL:            http://www.easyleading.org/Members/Eddy/LocalFS_1_3/
16 %pyrequires_eq  python-modules
17 Requires:       Zope
18 Requires(post,postun):  /usr/sbin/installzopeproduct
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 This product allows you to store Zope objects as human-readable files
24 in the local file system.
25
26 %description -l pl
27 Dodatek dla Zope umo¿liwiaj±cy przetrzymywanie obiektów Zope w
28 lokalnym systemie plików.
29
30 %prep
31 %setup -q -n %{zope_subname}
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
36
37 cp -af {Extensions,dtml,help,www,*.py,version.txt,refresh.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
38
39 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
40 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
41
42 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %post
48 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
49 if [ -f /var/lock/subsys/zope ]; then
50         /etc/rc.d/init.d/zope restart >&2
51 fi
52
53 %postun
54 if [ "$1" = "0" ]; then
55         /usr/sbin/installzopeproduct -d %{zope_subname}
56         if [ -f /var/lock/subsys/zope ]; then
57                 /etc/rc.d/init.d/zope restart >&2
58         fi
59 fi
60
61 %files
62 %defattr(644,root,root,755)
63 %doc CHANGES LICENSE README TODO
64 %{_datadir}/%{name}
This page took 0.163494 seconds and 3 git commands to generate.