Пакет python-module-numpy: Specfile

   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
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
%define _unpackaged_files_terminate_build 1

%define oname numpy
%define majver 1.15
%def_without latex
%def_without doc
%def_with addons
%def_without tests
%def_with python3

%define somver 0
%define sover %somver.5
%define py3somver 1
%define py3sover %somver.7

Name: python-module-%oname
Version: %majver.4
Release: alt5
Epoch: 1

Summary: NumPy: array processing for numbers, strings, records, and objects
License: BSD
Group: Development/Python
Url: https://www.numpy.org/

%setup_python_module %oname

# https://bugzilla.altlinux.org/show_bug.cgi?id=18379
%add_python_req_skip Scons setuptools distutils nose number code_generators

# https://github.com/numpy/numpy
Source: %oname-%version.tar
Source1: %oname.pc
Source2: site.cfg
Source3: sphinx-theme.tar
Patch0: numpy-1.15.4-Remove-strict-dependency-on-testing-package.patch

Requires: lib%oname = %EVR
Conflicts: libsyfi-devel < 0.6.1-alt3.hg20090822
Conflicts: lib%oname-devel < %version-%release
Obsoletes: libsyfi-devel < 0.6.1-alt3.hg20090822

BuildRequires(pre): rpm-macros-sphinx
BuildRequires: /proc
BuildRequires: python-devel
BuildRequires: python-module-setuptools
BuildRequires: doxygen gcc-c++ gcc-fortran liblapack-devel
BuildRequires: swig
BuildRequires: python-module-Cython
BuildRequires: python-module-alabaster python-module-html5lib python-module-matplotlib-sphinxext python-module-notebook python-module-numpydoc python-module-objects.inv
%if_with python3
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel
BuildRequires: python3-module-Cython
BuildRequires: python3-module-setuptools
%endif

%if_without doc
# closes unmets in autoimports
Provides: python-module-numpy-doc = %EVR
%else
BuildRequires: tex(preview.sty)
%endif
Provides: python-module-numpy-addons = %EVR
%py_provides %oname.addons

%description
NumPy is a general-purpose array-processing package designed to
efficiently manipulate large multi-dimensional arrays of arbitrary
records without sacrificing too much speed for small multi-dimensional
arrays.  NumPy is built on the Numeric code base and adds features
introduced by numarray as well as an extended C-API and the ability to
create arrays of arbitrary type.

There are also basic facilities for discrete fourier transform,
basic linear algebra and random number generation.

%if_with python3
%package -n python3-module-%oname
Summary: NumPy: array processing for numbers, strings, records, and objects (Python 3)
Group: Development/Python3
Requires: lib%oname-py3 = %EVR
%py3_provides %oname.addons
Provides: python3-module-numpy-addons = %EVR
%add_python3_req_skip Scons setuptools distutils nose number code_generators
# See bug 35103
%add_python3_req_skip setuptools.command.develop setuptools.command.egg_info

%description -n python3-module-%oname
NumPy is a general-purpose array-processing package designed to
efficiently manipulate large multi-dimensional arrays of arbitrary
records without sacrificing too much speed for small multi-dimensional
arrays.  NumPy is built on the Numeric code base and adds features
introduced by numarray as well as an extended C-API and the ability to
create arrays of arbitrary type.

There are also basic facilities for discrete fourier transform,
basic linear algebra and random number generation.

%package -n python3-module-%oname-testing
Summary: Testing part of NumPy (Python 3)
Group: Development/Python3
Requires: python3-module-%oname = %EVR
%add_python3_req_skip setuptools

%description -n python3-module-%oname-testing
NumPy is a general-purpose array-processing package designed to
efficiently manipulate large multi-dimensional arrays of arbitrary
records without sacrificing too much speed for small multi-dimensional
arrays.  NumPy is built on the Numeric code base and adds features
introduced by numarray as well as an extended C-API and the ability to
create arrays of arbitrary type.

This package contains testing part of NumPy.

%package -n python3-module-%oname-tests
Summary: Tests for NumPy (Python 3)
Group: Development/Python3
Requires: python3-module-%oname = %EVR
%add_python3_req_skip core scipy

%description -n python3-module-%oname-tests
NumPy is a general-purpose array-processing package designed to
efficiently manipulate large multi-dimensional arrays of arbitrary
records without sacrificing too much speed for small multi-dimensional
arrays.  NumPy is built on the Numeric code base and adds features
introduced by numarray as well as an extended C-API and the ability to
create arrays of arbitrary type.

This package contains tests NumPy.

%package -n lib%oname-py3
Summary: Shared libraries of NumPy (Python 3)
Group: System/Libraries
%if "%_lib" == "lib64"
Provides: libnpymath3.so.%py3somver()(64bit)
%else
Provides: libnpymath3.so.%py3somver
%endif

%description -n lib%oname-py3
NumPy is a general-purpose array-processing package designed to
efficiently manipulate large multi-dimensional arrays of arbitrary
records without sacrificing too much speed for small multi-dimensional
arrays.  NumPy is built on the Numeric code base and adds features
introduced by numarray as well as an extended C-API and the ability to
create arrays of arbitrary type.

This package contains shared libraries of NumPy.

%package -n lib%oname-py3-devel
Summary: Development files of NumPy (Python 3)
Group: Development/Python3
Requires: lib%oname-py3 = %EVR
Requires: python3-module-%oname = %EVR
Requires: python3-devel

%description -n lib%oname-py3-devel
NumPy is a general-purpose array-processing package designed to
efficiently manipulate large multi-dimensional arrays of arbitrary
records without sacrificing too much speed for small multi-dimensional
arrays.  NumPy is built on the Numeric code base and adds features
introduced by numarray as well as an extended C-API and the ability to
create arrays of arbitrary type.

This package contains development files of NumPy.
%endif

%package pickles
Summary: Pickles for NumPy
Group: Development/Python

%description pickles
NumPy is a general-purpose array-processing package designed to
efficiently manipulate large multi-dimensional arrays of arbitrary
records without sacrificing too much speed for small multi-dimensional
arrays.  NumPy is built on the Numeric code base and adds features
introduced by numarray as well as an extended C-API and the ability to
create arrays of arbitrary type.

This package contains pickles for NumPy.

%package testing
Summary: Testing part of NumPy
Group: Development/Python
Requires: %name = %EVR
Conflicts: %name < %version-%release
%add_python_req_skip setuptools

%description testing
NumPy is a general-purpose array-processing package designed to
efficiently manipulate large multi-dimensional arrays of arbitrary
records without sacrificing too much speed for small multi-dimensional
arrays.  NumPy is built on the Numeric code base and adds features
introduced by numarray as well as an extended C-API and the ability to
create arrays of arbitrary type.

This package contains testing part of NumPy.

%package tests
Summary: Tests for NumPy
Group: Development/Python
Requires: %name = %EVR
Conflicts: %name < %version-%release
%add_python_req_skip core

%description tests
NumPy is a general-purpose array-processing package designed to
efficiently manipulate large multi-dimensional arrays of arbitrary
records without sacrificing too much speed for small multi-dimensional
arrays.  NumPy is built on the Numeric code base and adds features
introduced by numarray as well as an extended C-API and the ability to
create arrays of arbitrary type.

This package contains tests NumPy.

%package -n lib%oname
Summary: Shared libraries of NumPy
Group: System/Libraries
%if "%_lib" == "lib64"
Provides: libnpymath.so.%somver()(64bit)
%else
Provides: libnpymath.so.%somver
%endif

%description -n lib%oname
NumPy is a general-purpose array-processing package designed to
efficiently manipulate large multi-dimensional arrays of arbitrary
records without sacrificing too much speed for small multi-dimensional
arrays.  NumPy is built on the Numeric code base and adds features
introduced by numarray as well as an extended C-API and the ability to
create arrays of arbitrary type.

This package contains shared libraries of NumPy.

%package -n lib%oname-devel
Summary: Development files of NumPy
Group: Development/Python
Requires: lib%oname = %EVR
Requires: %name = %EVR
Requires: python-module-numpydoc
Requires: %name-addons = %EVR
Requires: python-devel

%description -n lib%oname-devel
NumPy is a general-purpose array-processing package designed to
efficiently manipulate large multi-dimensional arrays of arbitrary
records without sacrificing too much speed for small multi-dimensional
arrays.  NumPy is built on the Numeric code base and adds features
introduced by numarray as well as an extended C-API and the ability to
create arrays of arbitrary type.

This package contains development files of NumPy.

%if_with doc
%package doc
Summary: Documentation modules of NumPy
Group: Development/Python
Requires: %name = %EVR
Conflicts: %name < %version-%release
%add_python_req_skip Numeric

%description doc
NumPy is a general-purpose array-processing package designed to
efficiently manipulate large multi-dimensional arrays of arbitrary
records without sacrificing too much speed for small multi-dimensional
arrays.  NumPy is built on the Numeric code base and adds features
introduced by numarray as well as an extended C-API and the ability to
create arrays of arbitrary type.

This package contains documentation modules of NumPy.

%package doc-html
Summary: Documentation in HTML for NumPy
Group: Development/Documentation
BuildArch: noarch

%description doc-html
NumPy is a general-purpose array-processing package designed to
efficiently manipulate large multi-dimensional arrays of arbitrary
records without sacrificing too much speed for small multi-dimensional
arrays.  NumPy is built on the Numeric code base and adds features
introduced by numarray as well as an extended C-API and the ability to
create arrays of arbitrary type.

This package contains documentation for NumPy in HTML format.

%package doc-pdf
Summary: Documentation in PDF for NumPy
Group: Development/Documentation
BuildArch: noarch

%description doc-pdf
NumPy is a general-purpose array-processing package designed to
efficiently manipulate large multi-dimensional arrays of arbitrary
records without sacrificing too much speed for small multi-dimensional
arrays.  NumPy is built on the Numeric code base and adds features
introduced by numarray as well as an extended C-API and the ability to
create arrays of arbitrary type.

This package contains documentation for NumPy in PDF format.
%endif

%prep
%setup
%patch0 -p1

install -m644 %SOURCE1 %SOURCE2 .
tar xf %SOURCE3
sed -i 's|@LIBDIR@|%_libdir|g' site.cfg
sed -i 's|@PYVER@|%_python_version|g' site.cfg doc/Makefile
sed -i 's|@PYSUFF@||' site.cfg

# headers

sed -i 's|^prefix.*|prefix=%python_sitelibdir/%oname/core|' \
	%oname/core/npymath.ini.in
sed -i 's|^includedir.*|includedir=%_includedir/python%_python_version/%oname|' \
	%oname/core/npymath.ini.in

%if_with python3
rm -rf ../python3
cp -a . ../python3
pushd ../python3
find -type f -exec sed -i 's|%_bindir/python|%_bindir/python3|' -- '{}' +
find -type f -exec sed -i 's|%_bindir/env python|%_bindir/python3|' -- '{}' +
install -m644 %SOURCE1 %SOURCE2 .
sed -i 's|@LIBDIR@|%_libdir|g' site.cfg
sed -i 's|@PYVER@|%_python3_version|g' site.cfg doc/Makefile
sed -i 's|@PYSUFF@|3|' site.cfg
sed -i 's|pyrexc|pyrexc3|' numpy/distutils/command/build_src.py
#find doc/ -type f -name '*.py' -exec 2to3 -w -n '{}' +

# headers

sed -i 's|^prefix.*|prefix=%python3_sitelibdir/%oname/core|' \
	%oname/core/npymath.ini.in
sed -i 's|^includedir.*|includedir=%_includedir/python%_python3_version/%oname|' \
	%oname/core/npymath.ini.in

popd
%endif

%if_with doc
# Sphinx

sed -i "s|@TOP@|$PWD|" \
	doc/source/conf.py
%prepare_sphinx doc
ln -s ../objects.inv doc/source/objects.inv
%endif

%install

%if_with python3
pushd ../python3
INCS="-I%_includedir/suitesparse -I$PWD/numpy/core/include/numpy"
INCS="$INCS -I$PWD/numpy/core/include -I%buildroot%_includedir/python%_python3_version/%oname"
INCS="$INCS -I%buildroot%_includedir"
DEFS="-DHAVE_FREXPF -DHAVE_FREXPL -DHAVE_FREXP -DHAVE_LDEXP -DHAVE_LDEXPL"
DEFS="$DEFS -DHAVE_EXPM1 -DHAVE_LOG1P -DHAVE_LDEXPF"
DEFS="$DEFS -UNPY_CPU_AMD64 -UNPY_CPU_X86"
DEFS="$DEFS -DNPY_ENABLE_SEPARATE_COMPILATION"
%add_optflags -fno-strict-aliasing $DEFS $INCS %optflags_shared

%python3_build_debug --fcompiler=gnu95

%python3_build_install

# private headers

install -d %buildroot%_includedir/python%_python3_version
mv %buildroot%python3_sitelibdir/%oname/core/include/%oname \
	%buildroot%_includedir/python%_python3_version/%oname

install -d %buildroot%python3_sitelibdir/%oname/core/include
ln -s %_includedir/python%_python3_version/%oname \
	%buildroot%python3_sitelibdir/%oname/core/include/
#cp -a %oname/numarray/include/%oname/*.h \
#	%buildroot%_includedir/python%_python3_version/%oname/
cp build/src.*/%oname/core/include/%oname/{*.h,*.c} \
	%buildroot%_includedir/python%_python3_version/%oname/
install -d %buildroot%python3_sitelibdir/%oname/core/lib/npy-pkg-config
cp -fR build/src.*/%oname/core/lib/npy-pkg-config/* \
	%buildroot%python3_sitelibdir/%oname/core/lib/npy-pkg-config/

# pkg-config

sed -i 's|@VERSION@|%version|' %oname.pc
install -d %buildroot%_pkgconfigdir
install -m644 %oname.pc %buildroot%_pkgconfigdir/%oname-py3.pc

# shared npymath

ar x $(find ./ -name 'libnpymath.a')
gcc -shared *.o -lm -Wl,-soname,libnpymath3.so.%py3somver \
	-o %buildroot%_libdir/libnpymath3.so.%py3sover
ln -s libnpymath3.so.%py3sover \
	%buildroot%_libdir/libnpymath3.so.%py3somver
ln -s libnpymath3.so.%py3somver \
	%buildroot%_libdir/libnpymath3.so
ln -s %_libdir/libnpymath3.so.%py3somver \
	%buildroot%python3_sitelibdir/%oname/core/lib/libnpymath3.so

popd
%endif

%define optflags %optflags_default
unset CFLAGS
unset CXXFLAGS
unset FFLAGS
echo optflags = "%optflags"
INCS="-I%_includedir/suitesparse -I$PWD/numpy/core/include/numpy"
INCS="$INCS -I$PWD/numpy/core/include -I%buildroot%_includedir/python%_python_version/%oname"
INCS="$INCS -I%buildroot%_includedir"
DEFS="-DHAVE_FREXPF -DHAVE_FREXPL -DHAVE_FREXP -DHAVE_LDEXP -DHAVE_LDEXPL"
DEFS="$DEFS -DHAVE_EXPM1 -DHAVE_LOG1P -DHAVE_LDEXPF"
DEFS="$DEFS -UNPY_CPU_AMD64 -UNPY_CPU_X86"
DEFS="$DEFS -DNPY_ENABLE_SEPARATE_COMPILATION"
%add_optflags -fno-strict-aliasing $DEFS $INCS %optflags_shared

%python_build_debug --fcompiler=gnu95

%python_build_install

# private headers

install -d %buildroot%_includedir/python%_python_version
mv %buildroot%python_sitelibdir/%oname/core/include/%oname \
	%buildroot%_includedir/python%_python_version/%oname

install -d %buildroot%python_sitelibdir/%oname/core/include
ln -s %_includedir/python%_python_version/%oname \
	%buildroot%python_sitelibdir/%oname/core/include/
#cp -a %oname/numarray/include/%oname/*.h \
#	%_includedir/python%_python_version/%oname/
cp build/src.*/%oname/core/include/%oname/{*.h,*.c} \
	%buildroot%_includedir/python%_python_version/%oname/
install -d %buildroot%python_sitelibdir/%oname/core/lib/npy-pkg-config
cp -fR build/src.*/%oname/core/lib/npy-pkg-config/* \
	%buildroot%python_sitelibdir/%oname/core/lib/npy-pkg-config/

# pkg-config

sed -i 's|@VERSION@|%version|' %oname.pc
install -d %buildroot%_pkgconfigdir
install -m644 %oname.pc %buildroot%_pkgconfigdir
ln -s %oname.pc %buildroot%_pkgconfigdir/%oname-%majver.pc

# shared npymath

ar x $(find ./ -name 'libnpymath.a')
gcc -shared *.o -lm -Wl,-soname,libnpymath.so.%somver \
	-o %buildroot%_libdir/libnpymath.so.%sover
ln -s libnpymath.so.%sover \
	%buildroot%_libdir/libnpymath.so.%somver
ln -s libnpymath.so.%somver \
	%buildroot%_libdir/libnpymath.so
ln -s %_libdir/libnpymath.so.%somver \
	%buildroot%python_sitelibdir/%oname/core/lib/libnpymath.so

# docs, tests and addons need build with installed NumPy

export PYTHONPATH=%buildroot%python_sitelibdir

# docs

%if_with doc

%if_with latex
%make -C doc
%else
%make -C doc html
%endif

#pushd doc/sphinxext
#python_build
#python_install
#popd
#if_with python3
#export PYTHONPATH=%buildroot%python3_sitelibdir
#pushd ../python3/doc/sphinxext
#python3_build
#python3_install
#popd
#endif

export PYTHONPATH=%buildroot%python_sitelibdir
pushd doc
install -p -m644 conf.py %buildroot%python_sitelibdir
#generate_pickles %buildroot%python_sitelibdir $PWD %oname
%make html
%make pickle
popd
rm -f %buildroot%python_sitelibdir/conf.py
cp -fR doc/build/pickle %buildroot%python_sitelibdir/%oname/

pushd doc/cdoc
%make
popd

install -d %buildroot%_docdir/%name/pdf/reference
install -d %buildroot%_docdir/%name/cdoc
cp -fR doc/build/html %buildroot%_docdir/%name/
cp -fR doc/cdoc/build/html %buildroot%_docdir/%name/cdoc/
%if_with latex
cp -u $(find doc -name '*.pdf' |egrep -v plot_directive) \
	%buildroot%_docdir/%name/pdf/
cp -fR doc/build/plot_directive/reference/generated/*.pdf \
	%buildroot%_docdir/%name/pdf/reference/
%endif

%endif

# tests

%if_with tests
#cp %oname/distutils/tests/swig_ext/src/example.i \
#	%buildroot%python_sitelibdir/%oname/distutils/tests/swig_ext/src/
#cp %oname/numarray/_capi.c \
#	%buildroot%python_sitelibdir/%oname/numarray/
cp %oname/fft/*.c %oname/fft/*.h \
	%buildroot%python_sitelibdir/%oname/fft/
cp %oname/linalg/*.c \
	%buildroot%python_sitelibdir/%oname/linalg/
#cp -fR %oname/lib/src \
#	%buildroot%python_sitelibdir/%oname/lib/
cp -fR %oname/core/src \
	%buildroot%python_sitelibdir/%oname/core/
cp -fR %oname/random/mtrand \
	%buildroot%python_sitelibdir/%oname/random/

#rm -fR %oname/distutils/tests/f2py_f90_ext
for i in $(find numpy/ -name setup.py |egrep tests |sed 's|/setup.py||')
do
	pushd $i
	%python_build_debug
	%python_install
	popd
done

%if_with python3
pushd ../python3
#cp %oname/distutils/tests/swig_ext/src/example.i \
#	%buildroot%python3_sitelibdir/%oname/distutils/tests/swig_ext/src/
#cp %oname/numarray/_capi.c \
#	%buildroot%python3_sitelibdir/%oname/numarray/
cp %oname/fft/*.c %oname/fft/*.h \
	%buildroot%python3_sitelibdir/%oname/fft/
cp %oname/linalg/*.c \
	%buildroot%python3_sitelibdir/%oname/linalg/
#cp -fR %oname/lib/src \
#	%buildroot%python3_sitelibdir/%oname/lib/
cp -fR %oname/core/src \
	%buildroot%python3_sitelibdir/%oname/core/
cp -fR %oname/random/mtrand \
	%buildroot%python3_sitelibdir/%oname/random/

export PYTHONPATH=%buildroot%python3_sitelibdir
#rm -fR %oname/distutils/tests/f2py_f90_ext
#sed -i 's|.*pyrex_ext.*||' %oname/distutils/tests/setup.py
#for i in $(find numpy/ -name setup.py |egrep tests |sed 's|/setup.py||')
#do
#	if [ "$i" != "numpy/distutils/tests/pyrex_ext" ]; then
#		pushd $i
#		%python3_build_debug
#		%python3_install
#		popd
#	fi
#done
export PYTHONPATH=%buildroot%python_sitelibdir
popd
%endif

%endif

# addons

%if_with doc
#if_with python3
#pushd ../python3
#pushd doc
#export PYTHONPATH=%buildroot%python3_sitelibdir
#for i in sphinxext; do
#pushd $i
#python3_build_debug
#python3_install
#popd
#done
#export PYTHONPATH=%buildroot%python_sitelibdir
#popd
#popd
#endif

pushd doc
#for i in pyrex newdtype_example sphinxext; do
for i in newdtype_example; do
pushd $i
%python_build_debug
%python_install
popd
done
popd

%endif

# add missing files

cp -fR numpy/core/code_generators \
	%buildroot%python_sitelibdir/
#install -m644 %oname/__svn_version__.py \
#	%buildroot%python_sitelibdir/%oname
install -p -m644 %oname/core/code_generators/numpy_api.py \
	%buildroot%python_sitelibdir/%oname
install -p -m644 %oname/core/code_generators/genapi.py \
	%buildroot%python_sitelibdir/%oname
install -p -m644 %oname/core/src/private/npy_config.h \
	%buildroot%_includedir/python%_python_version/%oname/

# delete unnecessary files

rm -f \
	$(find %buildroot%python_sitelibdir/%oname/ -name setup.py) \
	%buildroot%python_sitelibdir/%oname/f2py/docs/usersguide/setup_example.py

ln -s f2py%_python_version %buildroot%_bindir/f2py

%if_with python3
# add missing files

cp -fR numpy/core/code_generators \
	%buildroot%python3_sitelibdir/
#install -m644 %oname/__svn_version__.py \
#	%buildroot%python3_sitelibdir/%oname
install -p -m644 %oname/core/code_generators/numpy_api.py \
	%buildroot%python3_sitelibdir/%oname
install -p -m644 %oname/core/code_generators/genapi.py \
	%buildroot%python3_sitelibdir/%oname
install -p -m644 %oname/core/src/private/npy_config.h \
	%buildroot%_includedir/python%_python3_version/%oname

# delete unnecessary files

rm -f \
	$(find %buildroot%python3_sitelibdir/%oname/ -name setup.py) \
	%buildroot%python3_sitelibdir/%oname/f2py/docs/usersguide/setup_example.py
%endif

%find_lang %name

%pre
rm -f %_bindir/f2py
if [ -n %_libdir/libnpymath.so ]; then
	rm -f %_libdir/libnpymath.so
	rm -f %python_sitelibdir/%oname/core/lib/libnpymath.so
fi
if [ -d %python_sitelibdir/%oname/core/include ]; then
	rm -fR %python_sitelibdir/%oname/core/include
fi

%files -f %name.lang
%doc LICENSE.txt README.md THANKS.txt
%_bindir/*
#exclude %_bindir/py3_autosummary_generate
%if_with python3
#exclude %_bindir/py3_*
%exclude %_bindir/f2py3
%endif
%python_sitelibdir/%oname
%exclude %python_sitelibdir/%oname/conftest.py*
%exclude %python_sitelibdir/%oname/f2py/f2py_testing.py*
%exclude %python_sitelibdir/%oname/ma/timer_comparison.py*
%exclude %python_sitelibdir/%oname/testing
%exclude %python_sitelibdir/%oname/tests
%exclude %python_sitelibdir/%oname/*/test*
%exclude %python_sitelibdir/%oname/f2py/src/fortranobject.h
%exclude %python_sitelibdir/%oname/random/randomkit.h
%exclude %python_sitelibdir/%oname/core/lib/npy-pkg-config
%exclude %python_sitelibdir/%oname/core/lib/libnpymath.so
%exclude %python_sitelibdir/%oname/doc
#exclude %python_sitelibdir/%oname/f2py/docs
#exclude %python_sitelibdir/%oname/lib/polynomial.py*
%exclude %python_sitelibdir/%oname/core/include
#exclude %python_sitelibdir/%oname/numarray/image.py*
#exclude %python_sitelibdir/%oname/numarray/convolve.py*
#exclude %python_sitelibdir/%oname/numarray/nd_image.py*
#exclude %python_sitelibdir/%oname/numarray/include
#exclude %python_sitelibdir/%oname/distutils/*
%exclude %python_sitelibdir/%oname/distutils/mingw
%exclude %python_sitelibdir/%oname/f2py/src
#exclude %python_sitelibdir/%oname/core/src/multiarray/testcalcs.py*
%if_with doc
%exclude %python_sitelibdir/%oname/pickle
%endif
%if_with tests
%exclude %python_sitelibdir/%oname/random/mtrand/*.h
%exclude %python_sitelibdir/%oname/random/mtrand/*.c
%exclude %python_sitelibdir/%oname/random/mtrand/*.pxi
%exclude %python_sitelibdir/%oname/random/mtrand/*.pyx
#exclude %python_sitelibdir/%oname/numarray/*.c
%exclude %python_sitelibdir/%oname/core/src/multiarray/*.h
%exclude %python_sitelibdir/%oname/core/src/multiarray/*.c*
%exclude %python_sitelibdir/%oname/core/src/npymath
%exclude %python_sitelibdir/%oname/core/src/private
%exclude %python_sitelibdir/%oname/core/src/*.c*
%exclude %python_sitelibdir/%oname/core/src/umath
%exclude %python_sitelibdir/%oname/fft/*.c
%exclude %python_sitelibdir/%oname/fft/*.h
#exclude %python_sitelibdir/%oname/lib/src
%exclude %python_sitelibdir/%oname/linalg/*.c
#exclude %python_sitelibdir/%oname/linalg/*.h
#python_sitelibdir/numpyx*
%endif #if_with tests
%python_sitelibdir/%oname-*.egg-info
%python_sitelibdir/code_generators

%if_with python3
%files -n python3-module-%oname -f %name.lang
%doc LICENSE.txt README.md THANKS.txt
#_bindir/py3_*
%_bindir/f2py3
%python3_sitelibdir/%oname
%exclude %python3_sitelibdir/%oname/conftest.py
%exclude %python3_sitelibdir/%oname/__pycache__/conftest.*
%exclude %python3_sitelibdir/%oname/f2py/f2py_testing.py
%exclude %python3_sitelibdir/%oname/f2py/__pycache__/f2py_testing.*
%exclude %python3_sitelibdir/%oname/ma/timer_comparison.py
%exclude %python3_sitelibdir/%oname/ma/__pycache__/timer_comparison.*
%exclude %python3_sitelibdir/%oname/testing
%exclude %python3_sitelibdir/%oname/tests
%exclude %python3_sitelibdir/%oname/*/test*
%exclude %python3_sitelibdir/%oname/*/*/test*
%exclude %python3_sitelibdir/%oname/f2py/src/fortranobject.h
%exclude %python3_sitelibdir/%oname/random/randomkit.h
%exclude %python3_sitelibdir/%oname/core/lib/npy-pkg-config
%exclude %python3_sitelibdir/%oname/core/lib/libnpymath3.so
%exclude %python3_sitelibdir/%oname/doc
#exclude %python3_sitelibdir/%oname/f2py/docs
#exclude %python3_sitelibdir/%oname/lib/polynomial.py*
%exclude %python3_sitelibdir/%oname/core/include
#exclude %python3_sitelibdir/%oname/numarray/image.py*
#exclude %python3_sitelibdir/%oname/numarray/convolve.py*
#exclude %python3_sitelibdir/%oname/numarray/nd_image.py*
#exclude %python3_sitelibdir/%oname/numarray/include
#exclude %python3_sitelibdir/%oname/distutils/*
%exclude %python3_sitelibdir/%oname/distutils/mingw
%exclude %python3_sitelibdir/%oname/f2py/src
#exclude %python3_sitelibdir/%oname/core/src/multiarray/testcalcs.py*
%if_with tests
%exclude %python3_sitelibdir/%oname/random/mtrand/*.h
%exclude %python3_sitelibdir/%oname/random/mtrand/*.c
%exclude %python3_sitelibdir/%oname/random/mtrand/*.pxi
%exclude %python3_sitelibdir/%oname/random/mtrand/*.pyx
#exclude %python3_sitelibdir/%oname/core/src/multiarray/testcalcs.py*
#exclude %python3_sitelibdir/%oname/numarray/*.c
%exclude %python3_sitelibdir/%oname/core/src/multiarray/*.h
%exclude %python3_sitelibdir/%oname/core/src/multiarray/*.c*
%exclude %python3_sitelibdir/%oname/core/src/npymath
%exclude %python3_sitelibdir/%oname/core/src/private
%exclude %python3_sitelibdir/%oname/core/src/*.c*
%exclude %python3_sitelibdir/%oname/core/src/umath
%exclude %python3_sitelibdir/%oname/fft/*.c
%exclude %python3_sitelibdir/%oname/fft/*.h
#exclude %python3_sitelibdir/%oname/lib/src
%exclude %python3_sitelibdir/%oname/linalg/*.c
#exclude %python3_sitelibdir/%oname/linalg/*.h
#python3_sitelibdir/numpyx*
%endif #if_with tests
%python3_sitelibdir/%oname-*.egg-info
%python3_sitelibdir/code_generators
%endif #if_with python3

%if_with addons
#files addons
#python_sitelibdir/%oname/numarray/image.py*
#python_sitelibdir/%oname/numarray/convolve.py*
#python_sitelibdir/%oname/numarray/nd_image.py*

%if_with python3
#files -n python3-module-%oname-addons
#python3_sitelibdir/%oname/numarray/image.py*
#python3_sitelibdir/%oname/numarray/convolve.py*
#python3_sitelibdir/%oname/numarray/nd_image.py*
%endif

%endif

%files testing
%python_sitelibdir/%oname/testing
%python_sitelibdir/%oname/conftest.py*

%if_with python3
%files -n python3-module-%oname-testing
%python3_sitelibdir/%oname/testing
%python3_sitelibdir/%oname/conftest.py
%python3_sitelibdir/%oname/__pycache__/conftest.*
%endif

%files tests
%python_sitelibdir/%oname/tests
%python_sitelibdir/%oname/*/test*
%exclude %python_sitelibdir/%oname/testing/tests
%python_sitelibdir/%oname/f2py/tests/src/array_from_pyobj
%if_with tests
%python_sitelibdir/%oname/f2py/f2py_testing.py*
%python_sitelibdir/%oname/ma/timer_comparison.py*
%python_sitelibdir/f2py_ext*
#python_sitelibdir/f2py_f90_ext*
%python_sitelibdir/gen_ext*
%python_sitelibdir/pyrex_ext*
%python_sitelibdir/swig_ext*
%python_sitelibdir/testnumpydistutils*
#python_sitelibdir/%oname/core/src/multiarray/testcalcs.py*
%endif

%if_with python3
%files -n python3-module-%oname-tests
%python3_sitelibdir/%oname/tests
%python3_sitelibdir/%oname/*/test*
%python3_sitelibdir/%oname/*/*/test*
%exclude %python3_sitelibdir/%oname/testing/tests
%python3_sitelibdir/%oname/f2py/tests/src/array_from_pyobj
%if_with tests
%python3_sitelibdir/%oname/f2py/f2py_testing.py
%python3_sitelibdir/%oname/f2py/__pycache__/f2py_testing.*
%python3_sitelibdir/%oname/ma/timer_comparison.py
%python3_sitelibdir/%oname/ma/__pycache__/timer_comparison.*
%python3_sitelibdir/f2py_ext*
#python_sitelibdir/f2py_f90_ext*
%python3_sitelibdir/gen_ext*
#python3_sitelibdir/pyrex_ext*
%python3_sitelibdir/swig_ext*
%python3_sitelibdir/testnumpydistutils*
#python3_sitelibdir/%oname/core/src/multiarray/testcalcs.py*
%endif
%endif

%files -n lib%oname
%_libdir/*.so.*

%if_with python3
%exclude %_libdir/libnpymath3.so.*

%files -n lib%oname-py3
%_libdir/libnpymath3.so.*
%endif

%files -n lib%oname-devel
%_libdir/*.so
%_pkgconfigdir/*
%if_with python3
%exclude %_libdir/libnpymath3.so
%exclude %_pkgconfigdir/%oname-py3.pc
%endif
%python_sitelibdir/%oname/core/lib/libnpymath.so
%_includedir/python%_python_version/%oname
%if_with tests
%python_sitelibdir/%oname/random/mtrand/*.h
%python_sitelibdir/%oname/random/mtrand/*.c
%python_sitelibdir/%oname/random/mtrand/*.pxi
%python_sitelibdir/%oname/random/mtrand/*.pyx
#python_sitelibdir/%oname/numarray/*.c
%python_sitelibdir/%oname/core/src/multiarray/*.h
%python_sitelibdir/%oname/core/src/multiarray/*.c*
%python_sitelibdir/%oname/fft/*.c
%python_sitelibdir/%oname/fft/*.h
%python_sitelibdir/%oname/core/src/npymath
%python_sitelibdir/%oname/core/src/private
%python_sitelibdir/%oname/core/src/*.c*
%python_sitelibdir/%oname/core/src/umath
#python_sitelibdir/%oname/lib/src
%python_sitelibdir/%oname/linalg/*.c
#python_sitelibdir/%oname/linalg/*.h
%endif
%python_sitelibdir/%oname/core/include
#python_sitelibdir/%oname/numarray/include
%python_sitelibdir/%oname/distutils/mingw
%exclude %python_sitelibdir/%oname/distutils/tests
%python_sitelibdir/%oname/f2py/src
%python_sitelibdir/%oname/random/randomkit.h
%python_sitelibdir/%oname/core/lib/npy-pkg-config
#python_sitelibdir/code_generators

%if_with python3
%files -n lib%oname-py3-devel
%_libdir/libnpymath3.so
%python3_sitelibdir/%oname/core/lib/libnpymath3.so
%_pkgconfigdir/%oname-py3.pc
%_includedir/python%_python3_version/%oname
%if_with tests
%python3_sitelibdir/%oname/random/mtrand/*.h
%python3_sitelibdir/%oname/random/mtrand/*.c
%python3_sitelibdir/%oname/random/mtrand/*.pxi
%python3_sitelibdir/%oname/random/mtrand/*.pyx
#python3_sitelibdir/%oname/numarray/*.c
%python3_sitelibdir/%oname/core/src/multiarray/*.h
%python3_sitelibdir/%oname/core/src/multiarray/*.c*
%python3_sitelibdir/%oname/fft/*.c
%python3_sitelibdir/%oname/fft/*.h
%python3_sitelibdir/%oname/core/src/npymath
%python3_sitelibdir/%oname/core/src/private
%python3_sitelibdir/%oname/core/src/*.c*
%python3_sitelibdir/%oname/core/src/umath
#python3_sitelibdir/%oname/lib/src
%python3_sitelibdir/%oname/linalg/*.c
#python3_sitelibdir/%oname/linalg/*.h
%endif
%python3_sitelibdir/%oname/core/include
#python3_sitelibdir/%oname/numarray/include
%python3_sitelibdir/%oname/distutils/mingw
%exclude %python3_sitelibdir/%oname/distutils/tests
%python3_sitelibdir/%oname/f2py/src
%python3_sitelibdir/%oname/random/randomkit.h
%python3_sitelibdir/%oname/core/lib/npy-pkg-config
#python3_sitelibdir/code_generators
%endif

%if_with doc
%files doc
%python_sitelibdir/%oname/doc
#python_sitelibdir/%oname/f2py/docs

%files doc-html
%dir %_docdir/%name
%_docdir/%name/html
%_docdir/%name/cdoc

%if_with latex
%files doc-pdf
%dir %_docdir/%name
%_docdir/%name/pdf
%endif

%files pickles
%dir %python_sitelibdir/%oname
%python_sitelibdir/%oname/pickle
%endif

%changelog
* Wed Mar 11 2020 Aleksei Nikiforov <darktemplar@altlinux.org> 1:1.15.4-alt5
- Moved include directories (Closes: #38013).

* Tue Feb 11 2020 Andrey Bychkov <mrdrew@altlinux.org> 1:1.15.4-alt4
- Fixed build requires.

* Fri Sep 13 2019 Vladimir Didenko <cow@altlinux.org> 1:1.15.4-alt3
- Remove dependency on scons (it is not required anymore)

* Tue Jun 11 2019 Stanislav Levin <slev@altlinux.org> 1:1.15.4-alt2
- Dropped dependency on testing/test packages in the main one.

* Tue Dec 25 2018 Mikhail Gordeev <obirvalger@altlinux.org> 1:1.15.4-alt1
- Update to upstream version 1.15.4
- Remove runnig 2to3 on generators

* Sun Oct 14 2018 Igor Vlasenko <viy@altlinux.ru> 1:1.13.3-alt2.2.qa1
- NMU: applied repocop patch

* Fri Jun 29 2018 Anton Midyukov <antohami@altlinux.org> 1:1.13.3-alt2.2
- Skip requires from python3-module numpy (Closes:35103) to:
  - python3(setuptools.command.develop)
  - python3(setuptools.command.egg_info)

* Thu Mar 22 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 1:1.13.3-alt2.1.1
- (NMU) Rebuilt with python-3.6.4.

* Tue Mar 06 2018 Igor Vlasenko <viy@altlinux.ru> 1:1.13.3-alt2.1
- NMU: corrected BR: for new texlive

* Mon Jan 22 2018 Igor Vlasenko <viy@altlinux.ru> 1:1.13.3-alt2
- added optional Provides: python-module-numpy-doc for autoimports

* Wed Nov 29 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 1:1.13.3-alt1
- Updated to upstream version 1.13.3.
- Removed git from build dependencies.
- Cleaned up spec.
- Disabled generation of docs.

* Mon Apr 17 2017 Anton Midyukov <antohami@altlinux.org> 1:1.12.1-alt1
- New version 1.12.1
- Remove __svn_version__.py
- Disable tests
- Disable convert python 2 to python3 script

* Thu Mar 24 2016 Ivan Zakharyaschev <imz@altlinux.org> 2.0.0-alt15.git20150829.2.1
- (NMU) rebuild with python3-3.5 & rpm-build-python3-0.1.10
  (for ABI dependence and new python3(*) reqs)

* Wed Mar 23 2016 Denis Medvedev <nbr@altlinux.org> 2.0.0-alt15.git20150829.2
- NMU: reorganized dependencies.

* Thu Jan 28 2016 Mikhail Efremov <sem@altlinux.org> 2.0.0-alt15.git20150829.1
- NMU: Use buildreq for BR.

* Sun Aug 30 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt15.git20150829
- New snapshot

* Fri May 01 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt14.git20150424
- Added dgetrf into lapack_lite

* Sat Apr 25 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt13.git20150424
- New snapshot

* Mon Nov 03 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt13.git20141102
- Fixed numpy.distutils.misc_util.get_num_build_jobs for cases when
  --jobs command line argument doesn't recognized by setup.py

* Mon Nov 03 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt12.git20141102
- New snapshot

* Tue May 06 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt12.git20140505
- New snapshot

* Mon May 05 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt12.git20131021
- Avoid requirement on python-devel for %name (ALT #29862)

* Wed Jan 15 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt11.git20131021
- Enabled docs

* Wed Jan 15 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt10.git20131021
- Removed dependency on devel subpackage (ALT #29723)

* Tue Jan 14 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt9.git20131021
- Disabled docs

* Tue Oct 22 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt8.git20131021
- New snapshot

* Fri Jun 14 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt8.git20130613
- New snapshot

* Mon Apr 15 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt8.git20121009
- Use 'find... -exec...' instead of 'for ... $(find...'

* Fri Mar 22 2013 Aleksey Avdeev <solo@altlinux.ru> 2.0.0-alt7.git20121009.1
- Rebuild with Python-3.3

* Sun Oct 14 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt7.git20121009
- Fixed upgrading of numpydoc
- Extracted tests for numpydoc into separate package

* Fri Oct 12 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt6.git20121009
- New snapshot

* Sun Aug 12 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt6.git20120502
- Built with OpenBLAS instead of GotoBLAS2

* Sun May 20 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt5.git20120502
- Fixed headers for libnumpy-py3-devel

* Fri May 11 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt4.git20120502
- New snapshot
- Added modules for Python 3
- Moved numpy.lib.polynomial into main package (ALT #27314)

* Thu Apr 12 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 2.0.0-alt3.git20111023.1
- Rebuild to remove redundant libpython2.7 dependency

* Sat Nov 26 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt3.git20111023
- Rebuilt with docs (except pdf) and tests

* Tue Oct 25 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 2.0.0-alt2.git20111023.1
- Rebuild with Python-2.7

* Mon Oct 24 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt2.git20111023
- New snapshot

* Mon Jul 18 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt2.git20110715.1
- Built with docs and tests

* Sun Jul 17 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt2.git20110715
- New snapshot (without docs and tests for bootstrap)

* Sat Apr 23 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt2.git20110422
- New snapshot
- Changed type promotion tables from char to signed char (thanks to
  manowar@ and charris)

* Sat Apr 09 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt2.git20110405.4
- Built with docs

* Fri Apr 08 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt2.git20110405.3
- Built with OpenMP
- Bootstrap with GotoBLAS2 1.13-alt3 (without docs)

* Thu Apr 07 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt2.git20110405.2
- Built with docs
- Don't set fake ATLAS_VERSION (it's problem somewhere)

* Thu Apr 07 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt2.git20110405.1
- Set fake ATLAS_VERSION for client software

* Wed Apr 06 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt2.git20110405
- New snapshot (from github)
- Built with GotoBLAS2 instead of ATLAS
- Bootstrap (without docs now)

* Wed Apr 06 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt1.svn20100607.11
- linalg: avoid raising LinAlgError exception

* Tue Apr 05 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt1.svn20100607.10
- Rebuilt with ATLAS 3.9.35

* Mon Mar 28 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt1.svn20100607.9
- Fixed linking with ATLAS

* Mon Mar 28 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt1.svn20100607.8
- Rebuilt with lapack 3.3.0-alt4

* Fri Mar 11 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt1.svn20100607.7
- Restored %_bindir/f2py

* Tue Mar 08 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt1.svn20100607.6
- Added -g into compiler flags
- Moved all headers into libnumpy-devel

* Fri Feb 25 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt1.svn20100607.5
- Rebuilt for debuginfo

* Fri Dec 24 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt1.svn20100607.4
- Fixed inner headers' directory (ALT #24817)

* Tue Oct 26 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt1.svn20100607.3
- Rebuilt for soname set-versions

* Wed Oct 13 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt1.svn20100607.2
- Fixed linking

* Thu Jul 29 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt1.svn20100607.1
- Avoid requirement on python-module-Numeric for doc

* Wed Jun 09 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt1.svn20100607
- Version 2.0.0

* Thu Apr 08 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.5.0-alt1.svn20100120.3
- Added addons packages

* Mon Feb 08 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.5.0-alt1.svn20100120.2
- Fixed building of PDFs
- Rebuilt with updated macro %%prepare_sphinx

* Mon Feb 01 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.5.0-alt1.svn20100120.1
- Added modules: numpyx, floatint, (numpydoc & pickles - in separate
  packages) files
- Built additional documentation
- Made building of docs by one command `make'

* Sun Jan 24 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.5.0-alt1.svn20100120
- New snapshot
- Added param `-std=f95' for NAG Fortran compiler
- Added docs packages
- Extracted tests and addons into separate package
- Generate additional submodules
- Some another minor fixes

* Mon Jan 11 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.5.0-alt1.svn20091231.2
- Added link to libnpymath.so into %_libdir

* Mon Jan 04 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.5.0-alt1.svn20091231.1
- Added __svn_version__.py and site.cfg

* Thu Dec 31 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.5.0-alt1.svn20091231
- Version 1.5.0

* Sat Dec 19 2009 Ivan Fedorov <ns@altlinux.org> 1.4.0-alt4.svn20090913
- Remove dependency to Numeric
- Update homepage URL

* Mon Dec 14 2009 Dmitry V. Levin <ldv@altlinux.org> 1.4.0-alt3.svn20090913
- Updated build dependencies.

* Fri Nov 06 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.4.0-alt2.svn20090913.1
- Rebuilt with python 2.6

* Sun Sep 13 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.4.0-alt2.svn20090913
- New snapshot

* Tue Sep 08 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.4.0-alt2.svn20090902.1
- Added preinstall deletion of old include directory (ALT #21473)

* Wed Sep 02 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.4.0-alt2.svn20090902
- Rebuilt with shared libraries of SuiteSparse

* Thu Aug 27 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.4.0-alt2.svn20090827
- New snapshot

* Tue Aug 25 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.4.0-alt1.svn20090822.2
- Enabled conflict with old syfi

* Tue Aug 25 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.4.0-alt1.svn20090822.1
- Bootstrap for syfi

* Sat Aug 22 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.4.0-alt1.svn20090822
- New snapshot
- Added pkg-config file

* Fri Jul 31 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.4.0-alt1.svn20090731.1
- Version 1.4.0
- Made %_bindir/f2py as symbolic link

* Thu Apr 23 2009 Vitaly Lipatov <lav@altlinux.ru> 1.3.0-alt1
- new version 1.3.0 (with rpmrb script)

* Sun Dec 28 2008 Vitaly Lipatov <lav@altlinux.ru> 1.2.1-alt2
- remove unneeded buildreqs
- disable scons requires (fix bug #18379)

* Mon Dec 01 2008 Vitaly Lipatov <lav@altlinux.ru> 1.2.1-alt1
- new version 1.2.1 (with rpmrb script)
- update buildreqs

* Mon Jul 07 2008 Vitaly Lipatov <lav@altlinux.ru> 1.1.0-alt2
- fix unmets

* Sat Jul 05 2008 Vitaly Lipatov <lav@altlinux.ru> 1.1.0-alt1
- new version 1.1.0 (with rpmrb script)
- add rpm-build-compat requires due build_python macros

* Sat Apr 07 2007 Vitaly Lipatov <lav@altlinux.ru> 1.0.2-alt1
- new version 1.0.2 (with rpmrb script)

* Sat Nov 11 2006 Vitaly Lipatov <lav@altlinux.ru> 1.0-alt0.1
- initial build for ALT Linux Sisyphus