]>
Commit | Line | Data |
---|---|---|
bbe60744 | 1 | Summary: CFITSIO Interface Library |
a4e3e4a1 | 2 | Summary(pl.UTF-8): Biblioteka interfejsu CFITSIO |
bbe60744 | 3 | Name: cfitsio |
8077b949 | 4 | Version: 3.250 |
bbe60744 | 5 | %define sver %(echo %{version} | tr -d .) |
0d593e7f | 6 | Release: 1 |
bbe60744 JB |
7 | License: GPL (forced only by gzip code, basically BSD-like) |
8 | Group: Libraries | |
9 | Source0: ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/%{name}%{sver}.tar.gz | |
8077b949 | 10 | # Source0-md5: 1e6e390f21fab4e04781156fddcd2f8b |
4f5b9cc2 | 11 | Patch0: %{name}-link.patch |
fdfceee2 KK |
12 | Patch1: %{name}-ldflags.patch |
13 | Patch2: %{name}-compress.patch | |
bbe60744 JB |
14 | URL: http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html |
15 | BuildRequires: gcc-g77 | |
cc6e6bf7 | 16 | BuildRequires: sed >= 4.0 |
bbe60744 JB |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
20 | CFITSIO is a library of ANSI C routines for reading and writing FITS | |
21 | format data files. A set of Fortran-callable wrapper routines are | |
22 | also included for the convenience of Fortran programmers. | |
23 | ||
4db5004b JR |
24 | %description -l pl.UTF-8 |
25 | CFITSIO to biblioteka funkcji w C do odczytu i zapisu plików z danymi | |
26 | w formacie FITS. Zawiera także zestaw wrapperów pozwalających na | |
27 | wywoływanie tych funkcji z programów w Fortranie. | |
bbe60744 JB |
28 | |
29 | %package devel | |
30 | Summary: Header files and documentation for CFITSIO | |
a4e3e4a1 | 31 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do CFITSIO |
bbe60744 | 32 | Group: Development/Libraries |
58934a9f | 33 | Requires: %{name} = %{version}-%{release} |
bbe60744 JB |
34 | |
35 | %description devel | |
36 | Header files and development documentation for CFITSIO. | |
37 | ||
4db5004b JR |
38 | %description devel -l pl.UTF-8 |
39 | Pliki nagłówkowe i dokumentacja programisty do CFITSIO. | |
bbe60744 JB |
40 | |
41 | %package static | |
42 | Summary: Static CFITSIO library | |
a4e3e4a1 | 43 | Summary(pl.UTF-8): Statyczna biblioteka CFITSIO |
bbe60744 | 44 | Group: Development/Libraries |
58934a9f | 45 | Requires: %{name}-devel = %{version}-%{release} |
bbe60744 JB |
46 | |
47 | %description static | |
48 | Static version of CFITSIO library. | |
49 | ||
4db5004b | 50 | %description static -l pl.UTF-8 |
bbe60744 JB |
51 | Statyczna wersja biblioteki CFITSIO. |
52 | ||
53 | %prep | |
54 | %setup -q -n %{name} | |
4f5b9cc2 | 55 | %patch0 -p1 |
fdfceee2 KK |
56 | %patch1 -p0 |
57 | %patch2 -p0 | |
bbe60744 | 58 | |
cc6e6bf7 JB |
59 | sed -i -e 's/ f77 xlf / gfortran f77 xlf /' configure |
60 | ||
bbe60744 | 61 | %build |
66b22f62 | 62 | %configure |
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) | |
cc6e6bf7 | 82 | %doc License.txt README changes.txt |
20d81f57 | 83 | %attr(755,root,root) %{_libdir}/libcfitsio.so |
bbe60744 JB |
84 | |
85 | %files devel | |
86 | %defattr(644,root,root,755) | |
87 | %doc cfitsio.doc cfitsio.ps fitsio.doc fitsio.ps quick.ps | |
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 |