]>
Commit | Line | Data |
---|---|---|
bbe60744 | 1 | Summary: CFITSIO Interface Library |
a4e3e4a1 | 2 | Summary(pl.UTF-8): Biblioteka interfejsu CFITSIO |
bbe60744 | 3 | Name: cfitsio |
20d81f57 | 4 | Version: 3.020 |
bbe60744 | 5 | %define sver %(echo %{version} | tr -d .) |
4f5b9cc2 | 6 | Release: 2 |
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 | |
20d81f57 | 10 | # Source0-md5: fbc9e0db4d4b48b0a6a8de0f2036eb47 |
4f5b9cc2 | 11 | Patch0: %{name}-link.patch |
bbe60744 JB |
12 | URL: http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html |
13 | BuildRequires: gcc-g77 | |
cc6e6bf7 | 14 | BuildRequires: sed >= 4.0 |
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} |
bbe60744 JB |
32 | |
33 | %description devel | |
34 | Header files and development documentation for CFITSIO. | |
35 | ||
4db5004b JR |
36 | %description devel -l pl.UTF-8 |
37 | Pliki nagłówkowe i dokumentacja programisty do CFITSIO. | |
bbe60744 JB |
38 | |
39 | %package static | |
40 | Summary: Static CFITSIO library | |
a4e3e4a1 | 41 | Summary(pl.UTF-8): Statyczna biblioteka CFITSIO |
bbe60744 | 42 | Group: Development/Libraries |
58934a9f | 43 | Requires: %{name}-devel = %{version}-%{release} |
bbe60744 JB |
44 | |
45 | %description static | |
46 | Static version of CFITSIO library. | |
47 | ||
4db5004b | 48 | %description static -l pl.UTF-8 |
bbe60744 JB |
49 | Statyczna wersja biblioteki CFITSIO. |
50 | ||
51 | %prep | |
52 | %setup -q -n %{name} | |
4f5b9cc2 | 53 | %patch0 -p1 |
bbe60744 | 54 | |
cc6e6bf7 JB |
55 | sed -i -e 's/ f77 xlf / gfortran f77 xlf /' configure |
56 | ||
bbe60744 JB |
57 | %build |
58 | %configure2_13 | |
59 | ||
e6bb20a3 | 60 | %{__make} shared |
bbe60744 JB |
61 | |
62 | %install | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}} | |
65 | ||
66 | %{__make} install \ | |
e6bb20a3 | 67 | CFITSIO_LIB=$RPM_BUILD_ROOT%{_libdir} \ |
68 | CFITSIO_INCLUDE=$RPM_BUILD_ROOT%{_includedir} | |
bbe60744 JB |
69 | |
70 | %clean | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %post -p /sbin/ldconfig | |
74 | %postun -p /sbin/ldconfig | |
75 | ||
76 | %files | |
77 | %defattr(644,root,root,755) | |
cc6e6bf7 | 78 | %doc License.txt README changes.txt |
20d81f57 | 79 | %attr(755,root,root) %{_libdir}/libcfitsio.so |
bbe60744 JB |
80 | |
81 | %files devel | |
82 | %defattr(644,root,root,755) | |
83 | %doc cfitsio.doc cfitsio.ps fitsio.doc fitsio.ps quick.ps | |
84 | %{_includedir}/*.h | |
20d81f57 | 85 | %{_pkgconfigdir}/cfitsio.pc |
bbe60744 JB |
86 | |
87 | %files static | |
88 | %defattr(644,root,root,755) | |
20d81f57 | 89 | %{_libdir}/libcfitsio.a |