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

Revision 10328, 2.8 KB checked in by kudoh, 8 years ago (diff)

new upstream release

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.3.1
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-setuptools
18BuildRequires: python-twisted
19BuildRequires: pygobject
20
21%description
22Urwid is a Python library for making text console applications.  It has many
23features including fluid interface resizing, support for UTF-8 and CJK
24encodings, standard and custom text layout modes, simple markup for setting
25text attributes, and a powerful, dynamic list box that handles a mix of widget
26types.  It is flexible, modular, and leaves the developer in control.
27
28%prep
29%setup -q -n urwid-%{version}
30find urwid -type f -name "*.py" -exec sed -i -e '/^#!\//, 1d' {} \;
31find urwid -type f -name "*.py" -exec chmod 644 {} \;
32
33%build
34CFLAGS="%{optflags}" %{__python} setup.py build
35
36%check
37#./test_urwid.py
38python setup.py test
39
40%install
41rm -rf %{buildroot}
42%{__python} setup.py install --skip-build --no-compile --root %{buildroot}
43#rm -f tmpl_tutorial.html
44cp -p *.py examples/
45rm -f examples/test_urwid.py examples/docgen_*.py
46
47%clean
48rm -rf %{buildroot}
49
50%files
51%defattr(-,root,root,-)
52%doc COPYING README.rst examples
53%{python_sitearch}/urwid
54%{python_sitearch}/urwid-%{version}*.egg-info
55
56%changelog
57* Tue May 24 2016 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.3.1-1
58- new upstream release
59- fixed %%doc
60
61* Fri Nov 23 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.1.1-1
62- new upstream release
63
64* Fri Nov 09 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.1.0-1
65- new upstream release
66
67* Sat Jul 14 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.2-1
68- new upstream release
69
70* Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.0.1-2
71- rebuild with python-2.7.2
72
73* Sat Dec 03 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.1-1
74- new upstream release
75
76* Thu Oct 20 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.0-2
77- new upstream release
78- added BuildRequires: python-setuptools
79- run %%check
80
81* Fri Sep 23 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.0-1
82- new upstream release
83
84* Sat Aug 20 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.9.2-1
85- new upstream release
86
87* Wed Sep 29 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.9.1-2
88- rebuilt with rpm-4.8.1 for pkg-config
89
90* Fri May 28 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.9.1-1
91- initial build for VineSeed
92
93* Wed May 19 2010 David Cantrell <dcantrell@redhat.com> - 0.9.9.1-1
94- Initial package
Note: See TracBrowser for help on using the repository browser.