]>
Commit | Line | Data |
---|---|---|
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 | |
5 | Release: 6 | |
6 | License: LGPL | |
7 | Group: Applications/Text | |
8 | Source0: http://www.alcyone.com/software/empy/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: e7b518a6fc4fd28fef87726cdb003118 | |
10 | URL: http://www.alcyone.com/software/empy/ | |
11 | BuildRequires: python >= 1:2.5 | |
12 | BuildRequires: rpm-pythonprov | |
13 | BuildRequires: rpmbuild(macros) >= 1.219 | |
14 | %pyrequires_eq python-modules | |
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}/*.py[co] | |
53 | %{py_sitescriptdir}/empy-*.egg-info |