Repository navigation
Expand file tree
/
Copy pathpython-irc.spec
More file actions
66 lines (47 loc) · 1.87 KB
/
Copy pathpython-irc.spec
File metadata and controls
66 lines (47 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
Name: python-irc
Version: 11.0.1
Release: 4%{?dist}
Summary: IRC protocol library for Python
License: MIT
URL: http://python-irclib.sourceforge.net
Source0: https://pypi.python.org/packages/source/i/irc/irc-11.0.1.zip
BuildArch: noarch
BuildRequires: python-devel
BuildRequires: python-setuptools
Requires: python-more-itertools, python-jaraco-util, python-importlib
%description
IRC protocol library for Python.
%prep
%setup -q -n irc-%{version}
%build
%{__sed} -i 's|use_hg_version=True|version="%{version}"|' setup.py
%{__sed} -i "s| 'hgtools>=5',||" setup.py
%{__sed} -i "s| 'six',||" setup.py
%{__sed} -i "s| 'pytest',||" setup.py
%{__sed} -i "s| 'pytest-runner',||" setup.py
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
%files
%doc README.rst LICENSE COPYING
# For noarch packages: sitelib
%{python_sitelib}/*
%exclude %{python_sitelib}/irc/tests
%changelog
* Mon Nov 17 2014 Ryan Cook <rcook@redhat.com> - 11.0.1-4
- Python importlib
* Mon Nov 17 2014 Steve Milner <stevem@gnulinux.net> - 11.0.1-3
- Fixing more deps.
* Mon Nov 17 2014 Steve Milner <stevem@gnulinux.net> - 11.0.1-2
- Fixing deps.
* Mon Nov 17 2014 Steve Milner <stevem@gnulinux.net> - 11.0.1-1
- Big version bump.
* Wed Jun 4 2014 Tim Bielawa <tbielawa@redhat.com> - 8.9.1-3
- Don't include unittests in production RPM
* Wed Jun 4 2014 Tim Bielawa <tbielawa@redhat.com> - 8.9.1-2
- Add buildrequires on python-setuptools
* Wed Jun 4 2014 Steve Milner <stevem@gnulinux.net> - 8.9.1-1
- Initial spec.