Michael J Gruber 08f953f
Name:		gmpy
8f362fc
Version:	1.17
b6e80d0
Release:	14%{?dist}
Michael J Gruber 08f953f
Summary:	A Python interface to the GNU Multiple Precision Arithmetic Library
Michael J Gruber 08f953f
Michael J Gruber 08f953f
Group:		Development/Libraries
Michael J Gruber 08f953f
License:	LGPLv2+
Michael J Gruber 08f953f
URL:		http://code.google.com/p/gmpy/
Michael J Gruber 08f953f
Source0:	http://gmpy.googlecode.com/files/gmpy-%{version}.zip
Michael J Gruber 08f953f
Michael J Gruber 08f953f
BuildRequires:	python2-devel
Michael J Gruber 08f953f
BuildRequires:	gmp-devel
5b4a20a
BuildRequires:	gcc
Michael J Gruber 08f953f
Michael J Gruber 08f953f
# we don't want to provide private python extension libs
Michael J Gruber 08f953f
%{?filter_setup:
b6e80d0
%filter_provides_in %{python2_sitearch}/.*\.so$
Michael J Gruber 08f953f
%filter_setup
Michael J Gruber 08f953f
}
Michael J Gruber 08f953f
Michael J Gruber 08f953f
%description
Michael J Gruber 08f953f
A C-coded Python extension module that wraps the GMP library to provide to
Michael J Gruber 08f953f
Python code fast multiprecision arithmetic (integer, rational, and float),
Michael J Gruber 08f953f
random number generation, advanced number-theoretical functions, and more.
Michael J Gruber 08f953f
Michael J Gruber 08f953f
%prep
Michael J Gruber 08f953f
%setup -q
Michael J Gruber 08f953f
# Convert to utf-8
Michael J Gruber 08f953f
for file in doc/gmpydoc.txt; do
Michael J Gruber 08f953f
    iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
Michael J Gruber 08f953f
    touch -r $file $file.new && \
Michael J Gruber 08f953f
    mv $file.new $file
Michael J Gruber 08f953f
done
Michael J Gruber 08f953f
Michael J Gruber 08f953f
Michael J Gruber 08f953f
%build
b6e80d0
CFLAGS="%{optflags}" python2 ./setup.py build
Michael J Gruber 08f953f
Michael J Gruber 08f953f
Michael J Gruber 08f953f
%install
b6e80d0
python2 ./setup.py install -O1 --skip-build --root=%{buildroot}
b6e80d0
chmod 755 %{buildroot}%{python2_sitearch}/gmpy.so
Michael J Gruber 08f953f
Michael J Gruber 08f953f
Michael J Gruber 08f953f
%check
Michael J Gruber 08f953f
# Make python see the library that we have just compiled
Michael J Gruber 08f953f
libdir=`ls build/|grep lib`
Michael J Gruber 08f953f
export PYTHONPATH=`pwd`/build/$libdir
Michael J Gruber 08f953f
Michael J Gruber 08f953f
cd test
b6e80d0
python2 gmpy_test.py
Michael J Gruber 08f953f
Michael J Gruber 08f953f
Michael J Gruber 08f953f
Michael J Gruber 08f953f
%files
b6e80d0
%{python2_sitearch}/gmpy.so
b6e80d0
%{python2_sitearch}/gmpy-%{version}-py*.egg-info
5b4a20a
%doc README doc/*
5b4a20a
%license lgpl-2.1.txt
Michael J Gruber 08f953f
Michael J Gruber 08f953f
Michael J Gruber 08f953f
Michael J Gruber 08f953f
%changelog
b6e80d0
* Fri Jul 13 2018 Michael J Gruber <mjg@fedoraproject.org> - 1.17-14
b6e80d0
- adjust to py2 packaging guidelines (fix FTBFS on rawhide)
b6e80d0
608615e
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.17-13
608615e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
608615e
5b4a20a
* Thu Mar 08 2018 Michael J Gruber <mjg@fedoraproject.org> - 1.17-12
5b4a20a
- Adjust to new guidelines (BR gcc)
5b4a20a
4abcca6
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.17-11
4abcca6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
4abcca6
f74e64d
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.17-10
f74e64d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
f74e64d
34183a9
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.17-9
34183a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
34183a9
Igor Gnatenko cf3a7e3
* Fri Jul 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.17-8
Igor Gnatenko cf3a7e3
- Rebuild due to bug in RPM (RHBZ #1468476)
Igor Gnatenko cf3a7e3
aedbd62
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.17-7
aedbd62
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
aedbd62
6ccae47
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.17-6
6ccae47
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
6ccae47
f4758b2
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.17-5
f4758b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f4758b2
aafb3c5
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.17-4
aafb3c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
aafb3c5
17d3e6f
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.17-3
17d3e6f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
17d3e6f
f6b3189
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.17-2
f6b3189
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f6b3189
8f362fc
* Fri Aug 09 2013 Michael J Gruber <mjg@fedoraproject.org> - 1.17-1
8f362fc
- sync with upstream bugfix release 1.17
8f362fc
cc07b71
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.16-2
cc07b71
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
cc07b71
fe58a0c
* Mon Mar 11 2013 Michael J Gruber <mjg@fedoraproject.org> 1.16-1
fe58a0c
- sync with upstream
fe58a0c
65a2fde
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-3
65a2fde
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
65a2fde
37cb190
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.15-2
37cb190
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
37cb190
e391730
* Fri Jan 13 2012 Michael J Gruber <mjg@fedoraproject.org> 1.15-1
e391730
- sync with upstream
e391730
5602c75
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.14-3.2
5602c75
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
5602c75
Marcela Mašláňová 35326fb
* Fri Oct 21 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.14-2.2
Marcela Mašláňová 35326fb
- rebuild with new gmp without compat lib
Marcela Mašláňová 35326fb
Marcela Mašláňová 6a76b32
* Tue Oct 11 2011 Peter Schiffer <pschiffe@redhat.com> - 1.14-2.1
Marcela Mašláňová 6a76b32
- rebuild with new gmp
Marcela Mašláňová 6a76b32
d0f07bc
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.14-2
d0f07bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
d0f07bc
Michael J Gruber 08f953f
* Thu Nov 18 2010 Michael J Gruber <mjg@fedoraproject.org> 1.14-1
Michael J Gruber 08f953f
- sync with upstream
Michael J Gruber 08f953f
Michael J Gruber 08f953f
* Mon Nov 15 2010 Michael J Gruber <mjg@fedoraproject.org> 1.13-3
Michael J Gruber 08f953f
- include lgpl-2.1.txt in doc
Michael J Gruber 08f953f
- include all doc in toplevel dir rather than subdir
Michael J Gruber 08f953f
Michael J Gruber 08f953f
* Tue Nov 11 2010 Michael J Gruber <mjg@fedoraproject.org> 1.13-2
Michael J Gruber 08f953f
- avoid automatic provides for .so
Michael J Gruber 08f953f
- add check section rather than bundling the tests
Michael J Gruber 08f953f
- convert latin1 doc file to utf8 during prep
Michael J Gruber 08f953f
- chmod 755 the installed .so
Michael J Gruber 08f953f
Michael J Gruber 08f953f
* Mon Nov 10 2010 Michael J Gruber <mjg@fedoraproject.org> 1.13-1
Michael J Gruber 08f953f
- initial packaging for Fedora