- converted to UTF-8
[packages/Zope-ExtFile.git] / Zope-ExtFile.spec
1 %define         zope_subname    ExtFile
2 Summary:        Product stores large files in an external file-repository
3 Summary(pl.UTF-8):   Produkt umożliwiający obsługę dużych plików w zewnętrznych repozytoriach
4 Name:           Zope-%{zope_subname}
5 Version:        1.4.4
6 Release:        1
7 License:        Distributable
8 Group:          Development/Tools
9 Source0:        http://zope.org/Members/shh/%{zope_subname}/%{version}/%{zope_subname}-%{version}.tar.gz
10 # Source0-md5:  4e13441da832a904cb75ad367388ae8b
11 URL:            http://zope.org/Members/shh/ExtFile/
12 BuildRequires:  python
13 BuildRequires:  rpmbuild(macros) >= 1.268
14 %pyrequires_eq  python-modules
15 Requires(post,postun):  /usr/sbin/installzopeproduct
16 Requires:       Zope
17 Requires:       python-Imaging
18 BuildArch:      noarch
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 The ExtFile Product stores large files in an external file-repository
23 and is able to display icons for different MIME-Types.
24
25 %description -l pl.UTF-8
26 Produkt ExtFile umożliwia obsługę dużych plików w zewnętrznych
27 repozytoriach i wyświetlanie ich ikonek dla różnych typów MIME.
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,icons,tests,utilities,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 doc-1.1/ CHANGES.txt README.txt UPGRADE.txt
59 %{_datadir}/%{name}
This page took 0.056155 seconds and 3 git commands to generate.