]> git.pld-linux.org Git - packages/empy.git/blame - empy.spec
automatic change: use py_build/py_install macros
[packages/empy.git] / empy.spec
CommitLineData
3cd331bd 1Summary: System for embedding Python expressions and statements in template text
20039910 2Summary(pl.UTF-8): System wbudowywania wyrażeń języka Python w pliki tekstowe
3cd331bd 3Name: empy
cb5dfd7b 4Version: 3.3
1490253a 5Release: 6
d711f08e 6License: LGPL
3cd331bd 7Group: Applications/Text
b18996bd 8Source0: http://www.alcyone.com/software/empy/%{name}-%{version}.tar.gz
cb5dfd7b 9# Source0-md5: e7b518a6fc4fd28fef87726cdb003118
b18996bd 10URL: http://www.alcyone.com/software/empy/
266a9b6f
JB
11BuildRequires: python >= 1:2.5
12BuildRequires: rpm-pythonprov
253a7b57 13BuildRequires: rpmbuild(macros) >= 1.219
3cd331bd 14%pyrequires_eq python-modules
15BuildArch: noarch
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%description
19System for embedding Python expressions and statements in template
20text.
21
efb5f0b3
JR
22%description -l pl.UTF-8
23System 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
32rm -rf $RPM_BUILD_ROOT
df2f4f64 33install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_bindir}}
3cd331bd 34
66d5cd8a 35%py_install
df2f4f64
AF
36
37cat > $RPM_BUILD_ROOT%{_bindir}/em.py <<"EOF"
38#!/usr/bin/python
39import em
40em.invoke(sys.argv[1:])
41EOF
42
253a7b57 43%py_postclean
3cd331bd 44
45%clean
46rm -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
This page took 0.128089 seconds and 4 git commands to generate.