]> git.pld-linux.org Git - packages/Zope-LinguaPlone.git/blob - Zope-LinguaPlone.spec
- tabs in preamble
[packages/Zope-LinguaPlone.git] / Zope-LinguaPlone.spec
1 %define         zope_subname    LinguaPlone
2 Summary:        Powerful add-on for multilingual content management
3 Summary(pl.UTF-8):      Dodatek umożliwiający wygodną pracę z wielojęzycznymi serwisami Plone
4 Name:           Zope-%{zope_subname}
5 Version:        0.7
6 Release:        2
7 License:        GPL
8 Group:          Development/Tools
9 Source0:        http://dl.sourceforge.net/collective/%{zope_subname}-%{version}.tar.gz
10 # Source0-md5:  ec534fe349301a5bbf577b5cfcdf5a6a
11 URL:            http://sourceforge.net/projects/collective/
12 BuildRequires:  python
13 BuildRequires:  rpmbuild(macros) >= 1.268
14 Requires(post,postun):  /usr/sbin/installzopeproduct
15 %pyrequires_eq  python-modules
16 Requires:       Zope
17 Requires:       Zope-CMFPlone >= 2.0.3
18 Requires:       Zope-PloneLanguageTool >= 0.5
19 Requires:       Zope-archetypes >= 1.3
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 LinguaPlone is a powerful add-on for multilingual content management.
25
26 %description -l pl.UTF-8
27 LinguaPlone jest dodatkiem umożliwiającym wygodną pracę z
28 wielojęzycznymi serwisami Plone.
29
30 %prep
31 %setup -q -n %{zope_subname}
32
33 %build
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
38
39 cp -af {Extensions,examples,i18n,skins,tests,*.py,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
40
41 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
42 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
43
44 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %post
50 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
51 %service -q zope restart
52
53 %postun
54 if [ "$1" = "0" ]; then
55         /usr/sbin/installzopeproduct -d %{zope_subname}
56         %service -q zope restart
57 fi
58
59 %files
60 %defattr(644,root,root,755)
61 %doc README.txt
62 %{_datadir}/%{name}
This page took 0.047868 seconds and 3 git commands to generate.