Skip to content

Instantly share code, notes, and snippets.

@Sammers21
Created August 23, 2017 12:28
Show Gist options
  • Save Sammers21/78caa28bff5b469600ab51d862c73f8b to your computer and use it in GitHub Desktop.
Save Sammers21/78caa28bff5b469600ab51d862c73f8b to your computer and use it in GitHub Desktop.
python-opuscoords
# Created by pyp2rpm-1.0.1
%global pypi_name opuscoords
Name: python-opuscoords
Version: 1.0.1
Release: %mkrel 9
Group: Sciences/Astronomy
Summary: Python Tools for OPUS Coordinate Conversions
License: BSD
URL: http://www.stsci.edu/resources/software_hardware/stsci_python
Source0: https://pypi.python.org/packages/source/o/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires: pkgconfig(python2)
BuildRequires: python-setuptools
BuildRequires: python-numpy-devel
Obsoletes: python-stsci <= 2.13-4
%description
Python Tools for OPUS Coordinate Conversions.
%prep
%setup -q -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%build
%py2_build
%install
%py2_install
%files
%doc SP_LICENSE
%{python2_sitearch}/%{pypi_name}
%{python2_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info
%changelog
* Fri Feb 03 2017 daviddavid <daviddavid> 1.0.1-9.mga6
+ Revision: 1084740
- use new python macros
- fix description
* Wed Feb 03 2016 umeabot <umeabot> 1.0.1-8.mga6
+ Revision: 933163
- Mageia 6 Mass Rebuild
* Wed Oct 15 2014 umeabot <umeabot> 1.0.1-7.mga5
+ Revision: 747546
- Second Mageia 5 Mass Rebuild
* Sat Sep 27 2014 tv <tv> 1.0.1-6.mga5
+ Revision: 729254
- rebuild for missing pythoneggs deps
* Tue Sep 16 2014 umeabot <umeabot> 1.0.1-5.mga5
+ Revision: 688195
- Mageia 5 Mass Rebuild
+ pterjan <pterjan>
- Rebuild for new Python
* Tue Oct 22 2013 umeabot <umeabot> 1.0.1-3.mga4
+ Revision: 543786
- Mageia 4 Mass Rebuild
* Tue Oct 15 2013 pterjan <pterjan> 1.0.1-2.mga4
+ Revision: 499025
- Rebuild to add different pythonegg provides for python 2 and 3
* Wed Sep 11 2013 joequant <joequant> 1.0.1-1.mga4
+ Revision: 477629
- imported package python-opuscoords
sammers21@ROSA ~/rpmbuild/SPECS $ rpmbuild -bb python-opuscoords.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.94536
+ umask 022
+ cd /home/sammers21/rpmbuild/BUILD
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ cd /home/sammers21/rpmbuild/BUILD
+ rm -rf opuscoords-1.0.1
+ /bin/tar -xf -
+ /bin/gzip -dc /home/sammers21/rpmbuild/SOURCES/opuscoords-1.0.1.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd opuscoords-1.0.1
+ rm -rf opuscoords.egg-info
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.94536
+ umask 022
+ cd /home/sammers21/rpmbuild/BUILD
+ cd opuscoords-1.0.1
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ CFLAGS='-O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC'
+ /usr/bin/python2 setup.py build '--executable=/usr/bin/python2 -s'
warning: build_py: byte-compiling is disabled, skipping.
warning: install_lib: byte-compiling is disabled, skipping.
warning: easy_install: byte-compiling is disabled, skipping.
Installed /tmp/easy_install-PXW8CQ/stsci.distutils-0.3.7/.eggs/d2to1-0.2.12.post1-py2.7.egg
warning: build_py: byte-compiling is disabled, skipping.
warning: install_lib: byte-compiling is disabled, skipping.
warning: easy_install: byte-compiling is disabled, skipping.
Installed /home/sammers21/rpmbuild/BUILD/opuscoords-1.0.1/.eggs/stsci.distutils-0.3.7-py2.7.egg
Searching for d2to1>=0.2.9
Reading https://pypi.python.org/simple/d2to1/
Best match: d2to1 0.2.12.post1
Downloading https://pypi.python.org/packages/dc/bd/eac45e4e77d76f6c0ae539819c40f1babb891d7855129663e37957a7c2df/d2to1-0.2.12.post1.tar.gz#md5=1ba7e64ead23cbf104993122f0871030
Processing d2to1-0.2.12.post1.tar.gz
Writing /tmp/easy_install-nTHBJr/d2to1-0.2.12.post1/setup.cfg
Running d2to1-0.2.12.post1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-nTHBJr/d2to1-0.2.12.post1/egg-dist-tmp-eqtgjW
warning: build_py: byte-compiling is disabled, skipping.
warning: install_lib: byte-compiling is disabled, skipping.
creating /home/sammers21/rpmbuild/BUILD/opuscoords-1.0.1/.eggs/d2to1-0.2.12.post1-py2.7.egg
Extracting d2to1-0.2.12.post1-py2.7.egg to /home/sammers21/rpmbuild/BUILD/opuscoords-1.0.1/.eggs
warning: easy_install: byte-compiling is disabled, skipping.
Installed /home/sammers21/rpmbuild/BUILD/opuscoords-1.0.1/.eggs/d2to1-0.2.12.post1-py2.7.egg
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/opuscoords
copying lib/opuscoords/__init__.py -> build/lib.linux-x86_64-2.7/opuscoords
copying lib/opuscoords/version.py -> build/lib.linux-x86_64-2.7/opuscoords
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
running pre_hook stsci.distutils.hooks.numpy_extension_hook for command build_ext
building 'opuscoords.GCcoords' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
gcc -pthread -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -I/usr/lib64/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c src/GCcoords_module.c -o build/temp.linux-x86_64-2.7/src/GCcoords_module.o
In file included from /usr/lib64/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1788:0,
from /usr/lib64/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /usr/lib64/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from src/GCcoords_module.c:7:
/usr/lib64/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by " \
^
gcc -pthread -DNDEBUG -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-PIE -fPIC -I/usr/lib64/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c src/gc_coords_pkg.c -o build/temp.linux-x86_64-2.7/src/gc_coords_pkg.o
gcc -pthread -shared -Wl,--as-needed -Wl,--no-undefined -Wl,-z,now -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -Wl,--hash-style=gnu -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC build/temp.linux-x86_64-2.7/src/GCcoords_module.o build/temp.linux-x86_64-2.7/src/gc_coords_pkg.o -L/usr/lib64 -lpython2.7 -o build/lib.linux-x86_64-2.7/opuscoords/GCcoords.so
build/temp.linux-x86_64-2.7/src/gc_coords_pkg.o: In function `GC_radec2glatlon':
/home/sammers21/rpmbuild/BUILD/opuscoords-1.0.1/src/gc_coords_pkg.c:85: undefined reference to `sincos'
/home/sammers21/rpmbuild/BUILD/opuscoords-1.0.1/src/gc_coords_pkg.c:85: undefined reference to `sincos'
/home/sammers21/rpmbuild/BUILD/opuscoords-1.0.1/src/gc_coords_pkg.c:109: undefined reference to `asin'
/home/sammers21/rpmbuild/BUILD/opuscoords-1.0.1/src/gc_coords_pkg.c:110: undefined reference to `atan2'
build/temp.linux-x86_64-2.7/src/gc_coords_pkg.o: In function `GC_radec2elatlon':
/home/sammers21/rpmbuild/BUILD/opuscoords-1.0.1/src/gc_coords_pkg.c:166: undefined reference to `sincos'
/home/sammers21/rpmbuild/BUILD/opuscoords-1.0.1/src/gc_coords_pkg.c:166: undefined reference to `sincos'
/home/sammers21/rpmbuild/BUILD/opuscoords-1.0.1/src/gc_coords_pkg.c:188: undefined reference to `asin'
/home/sammers21/rpmbuild/BUILD/opuscoords-1.0.1/src/gc_coords_pkg.c:192: undefined reference to `atan2'
collect2: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
error: Bad exit status from /var/tmp/rpm-tmp.94536 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.94536 (%build)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment