]>
Commit | Line | Data |
---|---|---|
2c1b67f8 | 1 | # TODO: gsiftp support? |
bbe60744 | 2 | Summary: CFITSIO Interface Library |
a4e3e4a1 | 3 | Summary(pl.UTF-8): Biblioteka interfejsu CFITSIO |
bbe60744 | 4 | Name: cfitsio |
69e3b83d | 5 | Version: 4.4.0 |
2c1b67f8 | 6 | Release: 1 |
385681f3 | 7 | License: MIT-like |
bbe60744 | 8 | Group: Libraries |
ab650c11 | 9 | Source0: https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/%{name}-%{version}.tar.gz |
69e3b83d | 10 | # Source0-md5: de5393e0bd939d56e029ea0857de3e76 |
2c1b67f8 | 11 | Patch1: %{name}-ldflags.patch |
ca4212bd | 12 | URL: https://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html |
2c1b67f8 JB |
13 | BuildRequires: autoconf |
14 | BuildRequires: bzip2-devel | |
15 | BuildRequires: curl-devel | |
bbe60744 | 16 | BuildRequires: gcc-g77 |
385681f3 | 17 | BuildRequires: zlib-devel |
bbe60744 JB |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
20 | %description | |
21 | CFITSIO is a library of ANSI C routines for reading and writing FITS | |
22 | format data files. A set of Fortran-callable wrapper routines are | |
23 | also included for the convenience of Fortran programmers. | |
24 | ||
4db5004b JR |
25 | %description -l pl.UTF-8 |
26 | CFITSIO to biblioteka funkcji w C do odczytu i zapisu plików z danymi | |
27 | w formacie FITS. Zawiera także zestaw wrapperów pozwalających na | |
28 | wywoływanie tych funkcji z programów w Fortranie. | |
bbe60744 JB |
29 | |
30 | %package devel | |
31 | Summary: Header files and documentation for CFITSIO | |
a4e3e4a1 | 32 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do CFITSIO |
bbe60744 | 33 | Group: Development/Libraries |
58934a9f | 34 | Requires: %{name} = %{version}-%{release} |
385681f3 | 35 | Requires: zlib-devel |
bbe60744 JB |
36 | |
37 | %description devel | |
38 | Header files and development documentation for CFITSIO. | |
39 | ||
4db5004b JR |
40 | %description devel -l pl.UTF-8 |
41 | Pliki nagłówkowe i dokumentacja programisty do CFITSIO. | |
bbe60744 JB |
42 | |
43 | %package static | |
44 | Summary: Static CFITSIO library | |
a4e3e4a1 | 45 | Summary(pl.UTF-8): Statyczna biblioteka CFITSIO |
bbe60744 | 46 | Group: Development/Libraries |
58934a9f | 47 | Requires: %{name}-devel = %{version}-%{release} |
bbe60744 JB |
48 | |
49 | %description static | |
50 | Static version of CFITSIO library. | |
51 | ||
4db5004b | 52 | %description static -l pl.UTF-8 |
bbe60744 JB |
53 | Statyczna wersja biblioteki CFITSIO. |
54 | ||
55 | %prep | |
ab650c11 | 56 | %setup -q |
2c1b67f8 | 57 | %patch1 -p1 |
bbe60744 JB |
58 | |
59 | %build | |
2c1b67f8 JB |
60 | %{__autoconf} |
61 | %configure \ | |
62 | --with-bzip2 | |
bbe60744 | 63 | |
e6bb20a3 | 64 | %{__make} shared |
bbe60744 JB |
65 | |
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}} | |
69 | ||
70 | %{__make} install \ | |
e6bb20a3 | 71 | CFITSIO_LIB=$RPM_BUILD_ROOT%{_libdir} \ |
72 | CFITSIO_INCLUDE=$RPM_BUILD_ROOT%{_includedir} | |
bbe60744 JB |
73 | |
74 | %clean | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %post -p /sbin/ldconfig | |
78 | %postun -p /sbin/ldconfig | |
79 | ||
80 | %files | |
81 | %defattr(644,root,root,755) | |
69e3b83d | 82 | %doc README.md docs/changes.txt licenses/NASA_Open_Source_Agreement_1.3.txt |
9dcd70c5 | 83 | %attr(755,root,root) %{_libdir}/libcfitsio.so.*.*.* |
b46afe2e | 84 | %attr(755,root,root) %ghost %{_libdir}/libcfitsio.so.10 |
bbe60744 JB |
85 | |
86 | %files devel | |
87 | %defattr(644,root,root,755) | |
69e3b83d | 88 | %doc docs/{cfitsio.pdf,cfortran.doc,fitsio.pdf,fpackguide.pdf,quick.pdf} |
9dcd70c5 | 89 | %attr(755,root,root) %{_libdir}/libcfitsio.so |
8077b949 JB |
90 | %{_includedir}/drvrsmem.h |
91 | %{_includedir}/fitsio*.h | |
92 | %{_includedir}/longnam.h | |
20d81f57 | 93 | %{_pkgconfigdir}/cfitsio.pc |
bbe60744 JB |
94 | |
95 | %files static | |
96 | %defattr(644,root,root,755) | |
20d81f57 | 97 | %{_libdir}/libcfitsio.a |