]>
Commit | Line | Data |
---|---|---|
3cd331bd | 1 | Summary: System for embedding Python expressions and statements in template text |
20039910 | 2 | Summary(pl.UTF-8): System wbudowywania wyrażeń języka Python w pliki tekstowe |
3cd331bd | 3 | Name: empy |
cb5dfd7b | 4 | Version: 3.3 |
1490253a | 5 | Release: 6 |
d711f08e | 6 | License: LGPL |
3cd331bd | 7 | Group: Applications/Text |
b18996bd | 8 | Source0: http://www.alcyone.com/software/empy/%{name}-%{version}.tar.gz |
cb5dfd7b | 9 | # Source0-md5: e7b518a6fc4fd28fef87726cdb003118 |
b18996bd | 10 | URL: http://www.alcyone.com/software/empy/ |
266a9b6f JB |
11 | BuildRequires: python >= 1:2.5 |
12 | BuildRequires: rpm-pythonprov | |
253a7b57 | 13 | BuildRequires: rpmbuild(macros) >= 1.219 |
3cd331bd | 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 | ||
efb5f0b3 JR |
22 | %description -l pl.UTF-8 |
23 | System wbudowywania wyrażeń języka Python w pliki tekstowe. | |
3cd331bd | 24 | |
25 | %prep | |
26 | %setup -q | |
27 | ||
28 | %build | |
66d5cd8a | 29 | %py_build |
3cd331bd | 30 | |
31 | %install | |
32 | rm -rf $RPM_BUILD_ROOT | |
df2f4f64 | 33 | install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_bindir}} |
3cd331bd | 34 | |
66d5cd8a | 35 | %py_install |
df2f4f64 AF |
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 | ||
253a7b57 | 43 | %py_postclean |
3cd331bd | 44 | |
45 | %clean | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %files | |
49 | %defattr(644,root,root,755) | |
df2f4f64 | 50 | %doc README *.em doc |
266a9b6f | 51 | %attr(755,root,root) %{_bindir}/em.py |
675eaa70 | 52 | %{py_sitescriptdir}/*.py[co] |
266a9b6f | 53 | %{py_sitescriptdir}/empy-*.egg-info |