]> git.pld-linux.org Git - packages/cfitsio.git/blame - cfitsio.spec
- updated to 3.250
[packages/cfitsio.git] / cfitsio.spec
CommitLineData
bbe60744 1Summary: CFITSIO Interface Library
a4e3e4a1 2Summary(pl.UTF-8): Biblioteka interfejsu CFITSIO
bbe60744 3Name: cfitsio
8077b949 4Version: 3.250
bbe60744 5%define sver %(echo %{version} | tr -d .)
0d593e7f 6Release: 1
bbe60744
JB
7License: GPL (forced only by gzip code, basically BSD-like)
8Group: Libraries
9Source0: ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/%{name}%{sver}.tar.gz
8077b949 10# Source0-md5: 1e6e390f21fab4e04781156fddcd2f8b
4f5b9cc2 11Patch0: %{name}-link.patch
fdfceee2
KK
12Patch1: %{name}-ldflags.patch
13Patch2: %{name}-compress.patch
bbe60744
JB
14URL: http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html
15BuildRequires: gcc-g77
cc6e6bf7 16BuildRequires: sed >= 4.0
bbe60744
JB
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
20CFITSIO is a library of ANSI C routines for reading and writing FITS
21format data files. A set of Fortran-callable wrapper routines are
22also included for the convenience of Fortran programmers.
23
4db5004b
JR
24%description -l pl.UTF-8
25CFITSIO to biblioteka funkcji w C do odczytu i zapisu plików z danymi
26w formacie FITS. Zawiera także zestaw wrapperów pozwalających na
27wywoływanie tych funkcji z programów w Fortranie.
bbe60744
JB
28
29%package devel
30Summary: Header files and documentation for CFITSIO
a4e3e4a1 31Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do CFITSIO
bbe60744 32Group: Development/Libraries
58934a9f 33Requires: %{name} = %{version}-%{release}
bbe60744
JB
34
35%description devel
36Header files and development documentation for CFITSIO.
37
4db5004b
JR
38%description devel -l pl.UTF-8
39Pliki nagłówkowe i dokumentacja programisty do CFITSIO.
bbe60744
JB
40
41%package static
42Summary: Static CFITSIO library
a4e3e4a1 43Summary(pl.UTF-8): Statyczna biblioteka CFITSIO
bbe60744 44Group: Development/Libraries
58934a9f 45Requires: %{name}-devel = %{version}-%{release}
bbe60744
JB
46
47%description static
48Static version of CFITSIO library.
49
4db5004b 50%description static -l pl.UTF-8
bbe60744
JB
51Statyczna 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
59sed -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
67rm -rf $RPM_BUILD_ROOT
68install -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
75rm -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
This page took 0.116981 seconds and 4 git commands to generate.