]> git.pld-linux.org Git - packages/Zope-TranslationService.git/blob - Zope-TranslationService.spec
- fixed License, cleanups/simplifications
[packages/Zope-TranslationService.git] / Zope-TranslationService.spec
1 %include        /usr/lib/rpm/macros.python
2 %define         zope_subname    TranslationService
3 Summary:        TranslationService - a placeful translation service for Zope
4 Summary(pl):    TranslationService - ¶rodowisko dla t³umaczeñ jêzykowych dla Zope
5 Name:           Zope-%{zope_subname}
6 Version:        0.4
7 Release:        2
8 License:        GPL v2
9 Group:          Development/Tools
10 Source0:        http://www.zope.org/Members/efge/%{zope_subname}/%{zope_subname}-%{version}.tgz
11 # Source0-md5:  b1399f80dc71ea8a54f4c6dc179c12dd
12 URL:            http://www.zope.org/Members/efge/TranslationService
13 %pyrequires_eq  python-modules
14 Requires:       Zope
15 Requires:       Zope-Localizer
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define         product_dir     /usr/lib/zope/Products
20
21 %description
22 TranslationService is a placeful translation service for Zope.
23
24 %description -l pl
25 TranslationService jest ¶rodowiskiem dla t³umaczeñ jêzykowych dla
26 Zope.
27
28 %prep
29 %setup -q -n %{zope_subname}
30
31 %install
32 rm -rf $RPM_BUILD_ROOT
33 install -d $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
34
35 cp -af {zmi,*.py,*.gif} $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
36
37 %py_comp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
38 %py_ocomp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
39
40 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
41
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45 %post
46 if [ -f /var/lock/subsys/zope ]; then
47         /etc/rc.d/init.d/zope restart >&2
48 fi
49
50 %postun
51 if [ -f /var/lock/subsys/zope ]; then
52         /etc/rc.d/init.d/zope restart >&2
53 fi
54
55 %files
56 %defattr(644,root,root,755)
57 %doc HISTORY.txt
58 %{product_dir}/%{zope_subname}
This page took 0.064641 seconds and 4 git commands to generate.