]> git.pld-linux.org Git - packages/empy.git/blob - empy.spec
- updated to 3.3.3
[packages/empy.git] / empy.spec
1 Summary:        System for embedding Python expressions and statements in template text
2 Summary(pl.UTF-8):      System wbudowywania wyrażeń języka Python w pliki tekstowe
3 Name:           empy
4 Version:        3.3.3
5 Release:        1
6 License:        LGPL
7 Group:          Applications/Text
8 Source0:        http://www.alcyone.com/software/empy/%{name}-%{version}.tar.gz
9 # Source0-md5:  46ee2d3ca72af048c929c1fa9a3929f8
10 URL:            http://www.alcyone.com/software/empy/
11 BuildRequires:  python >= 1:2.5
12 BuildRequires:  rpm-pythonprov
13 BuildRequires:  rpmbuild(macros) >= 1.714
14 Requires:       python-modules >= 1:2.5
15 BuildArch:      noarch
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 System for embedding Python expressions and statements in template
20 text.
21
22 %description -l pl.UTF-8
23 System wbudowywania wyrażeń języka Python w pliki tekstowe.
24
25 %prep
26 %setup -q
27
28 %build
29 %py_build
30
31 %install
32 rm -rf $RPM_BUILD_ROOT
33 install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_bindir}}
34
35 %py_install
36
37 cat > $RPM_BUILD_ROOT%{_bindir}/em.py <<"EOF"
38 #!/usr/bin/python
39 import em
40 em.invoke(sys.argv[1:])
41 EOF
42
43 %py_postclean
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 %files
49 %defattr(644,root,root,755)
50 %doc README *.em doc
51 %attr(755,root,root) %{_bindir}/em.py
52 %{py_sitescriptdir}/em.py[co]
53 %{py_sitescriptdir}/empy-%{version}-py*.egg-info
This page took 0.076048 seconds and 3 git commands to generate.