]> git.pld-linux.org Git - packages/Zope-FileSystemSite.git/blob - Zope-FileSystemSite.spec
- updated 2.1
[packages/Zope-FileSystemSite.git] / Zope-FileSystemSite.spec
1 %define         zope_subname    FileSystemSite
2 Summary:        Repackaging of the CMF's FileSystem Directory Views
3 Summary(pl.UTF-8):      Produkt zmieniający organizacje wyświetlania katalogów w CMF
4 Name:           Zope-%{zope_subname}
5 Version:        2.1
6 Release:        1
7 License:        ZPL 2.0
8 Group:          Development/Tools
9 Source0:        http://www.infrae.com/download/%{zope_subname}/%{version}/%{zope_subname}-%{version}.tgz
10 # Source0-md5:  8c3069af49168023ea8e56c54f2bf4c8
11 URL:            http://zope.org/Members/philikon/FileSystemSite/
12 BuildRequires:  python
13 BuildRequires:  rpmbuild(macros) >= 1.268
14 %pyrequires_eq  python-modules
15 Requires:       Zope >= 2.7
16 Requires:       Zope-CMF >= 1:1.4.1
17
18 Requires(post,postun):  /usr/sbin/installzopeproduct
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 FileSystemSite repackaging of the CMF's FileSystem Directory Views
24
25 %description -l pl.UTF-8
26 FileSystemSite jest produktem Zope zmieniającym sposób wyświetlania
27 katalogów w CMF
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 {EditorUtils,ExampleSite,Extensions,dtml,images,templates,tests,*.py,version.txt,refresh.txt} \
37         $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 %service -q zope restart
50
51 %postun
52 if [ "$1" = "0" ]; then
53         /usr/sbin/installzopeproduct -d %{zope_subname}
54         %service -q zope restart
55 fi
56
57 %files
58 %defattr(644,root,root,755)
59 %doc README.txt HISTORY.txt
60 %{_datadir}/%{name}
This page took 0.068007 seconds and 3 git commands to generate.