source: projects/specs/trunk/p/python-urwid/python-urwid-vl.spec @ 4835

Revision 4835, 2.1 KB checked in by kudoh, 13 years ago (diff)

%{!?python_sitearch: %global python_sitearch %(%{python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}

Name: python-urwid
Version: 1.0.0
Release: 1%{?_dist_release}
Summary: Console user interface library
Summary(ja): コンソールユーザーインターフェースライブラリ

Group: Development/Libraries?
License: LGPLv2+
URL:  http://excess.org/urwid/
Source0:  http://excess.org/urwid/urwid-%{version}.tar.gz

BuildRoot?: %{_tmppath}/%{name}-%{version}-root
BuildRequires?: ncurses-devel
BuildRequires?: python-devel
BuildRequires?: python-twisted
BuildRequires?: pygobject

%description
Urwid is a Python library for making text console applications. It has many
features including fluid interface resizing, support for UTF-8 and CJK
encodings, standard and custom text layout modes, simple markup for setting
text attributes, and a powerful, dynamic list box that handles a mix of widget
types. It is flexible, modular, and leaves the developer in control.

%prep
%setup -q -n urwid-%{version}
find urwid -type f -name "*.py" -exec sed -i -e '/#!\, 1d' {} \;
find urwid -type f -name "*.py" -exec chmod 644 {} \;

%build
CFLAGS="%{optflags}" %{python} setup.py build

#%check
#./test_urwid.py

%install
rm -rf %{buildroot}
%{python} setup.py install --skip-build --no-compile --root %{buildroot}
rm -f tmpl_tutorial.html
mkdir examples
cp -p *.py examples/
rm -f examples/test_urwid.py examples/docgen_*.py

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc CHANGELOG *.html examples
%{python_sitearch}/urwid
%{python_sitearch}/urwid-%{version}*.egg-info

%changelog

  • Fri Sep 23 2011 Toshiharu Kudoh <toshi.kd2@…> - 1.0.0-1
  • new upstream release
  • Sat Aug 20 2011 Toshiharu Kudoh <toshi.kd2@…> - 0.9.9.2-1
  • new upstream release
  • Wed Sep 29 2010 Toshiharu Kudoh <toshi.kd2@…> - 0.9.9.1-2
  • rebuilt with rpm-4.8.1 for pkg-config
  • Fri May 28 2010 Toshiharu Kudoh <toshi.kd2@…> - 0.9.9.1-1
  • initial build for VineSeed
  • Wed May 19 2010 David Cantrell <dcantrell@…> - 0.9.9.1-1
  • Initial package
Line 
1%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
2
3Name:          python-urwid
4Version:       1.0.0
5Release:       1%{?_dist_release}
6Summary:       Console user interface library
7Summary(ja):   コンソールユーザーインターフェースライブラリ
8
9Group:         Development/Libraries
10License:       LGPLv2+
11URL:           http://excess.org/urwid/
12Source0:       http://excess.org/urwid/urwid-%{version}.tar.gz
13
14BuildRoot:     %{_tmppath}/%{name}-%{version}-root
15BuildRequires: ncurses-devel
16BuildRequires: python-devel
17BuildRequires: python-twisted
18BuildRequires: pygobject
19
20%description
21Urwid is a Python library for making text console applications.  It has many
22features including fluid interface resizing, support for UTF-8 and CJK
23encodings, standard and custom text layout modes, simple markup for setting
24text attributes, and a powerful, dynamic list box that handles a mix of widget
25types.  It is flexible, modular, and leaves the developer in control.
26
27%prep
28%setup -q -n urwid-%{version}
29find urwid -type f -name "*.py" -exec sed -i -e '/^#!\//, 1d' {} \;
30find urwid -type f -name "*.py" -exec chmod 644 {} \;
31
32%build
33CFLAGS="%{optflags}" %{__python} setup.py build
34
35#%check
36#./test_urwid.py
37
38%install
39rm -rf %{buildroot}
40%{__python} setup.py install --skip-build --no-compile --root %{buildroot}
41rm -f tmpl_tutorial.html
42mkdir examples
43cp -p *.py examples/
44rm -f examples/test_urwid.py examples/docgen_*.py
45
46%clean
47rm -rf %{buildroot}
48
49%files
50%defattr(-,root,root,-)
51%doc CHANGELOG *.html examples
52%{python_sitearch}/urwid
53%{python_sitearch}/urwid-%{version}*.egg-info
54
55%changelog
56* Fri Sep 23 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.0-1
57- new upstream release
58
59* Sat Aug 20 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.9.2-1
60- new upstream release
61
62* Wed Sep 29 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.9.1-2
63- rebuilt with rpm-4.8.1 for pkg-config
64
65* Fri May 28 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.9.1-1
66- initial build for VineSeed
67
68* Wed May 19 2010 David Cantrell <dcantrell@redhat.com> - 0.9.9.1-1
69- Initial package
Note: See TracBrowser for help on using the repository browser.