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