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