]> git.pld-linux.org Git - packages/cfitsio.git/blame - cfitsio.spec
- tabs in preamble
[packages/cfitsio.git] / cfitsio.spec
CommitLineData
bbe60744 1Summary: CFITSIO Interface Library
a4e3e4a1 2Summary(pl.UTF-8): Biblioteka interfejsu CFITSIO
bbe60744 3Name: cfitsio
20d81f57 4Version: 3.020
bbe60744 5%define sver %(echo %{version} | tr -d .)
4f5b9cc2 6Release: 2
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
20d81f57 10# Source0-md5: fbc9e0db4d4b48b0a6a8de0f2036eb47
4f5b9cc2 11Patch0: %{name}-link.patch
bbe60744
JB
12URL: http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html
13BuildRequires: gcc-g77
cc6e6bf7 14BuildRequires: sed >= 4.0
bbe60744
JB
15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17%description
18CFITSIO is a library of ANSI C routines for reading and writing FITS
19format data files. A set of Fortran-callable wrapper routines are
20also included for the convenience of Fortran programmers.
21
4db5004b
JR
22%description -l pl.UTF-8
23CFITSIO to biblioteka funkcji w C do odczytu i zapisu plików z danymi
24w formacie FITS. Zawiera także zestaw wrapperów pozwalających na
25wywoływanie tych funkcji z programów w Fortranie.
bbe60744
JB
26
27%package devel
28Summary: Header files and documentation for CFITSIO
a4e3e4a1 29Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do CFITSIO
bbe60744 30Group: Development/Libraries
58934a9f 31Requires: %{name} = %{version}-%{release}
bbe60744
JB
32
33%description devel
34Header files and development documentation for CFITSIO.
35
4db5004b
JR
36%description devel -l pl.UTF-8
37Pliki nagłówkowe i dokumentacja programisty do CFITSIO.
bbe60744
JB
38
39%package static
40Summary: Static CFITSIO library
a4e3e4a1 41Summary(pl.UTF-8): Statyczna biblioteka CFITSIO
bbe60744 42Group: Development/Libraries
58934a9f 43Requires: %{name}-devel = %{version}-%{release}
bbe60744
JB
44
45%description static
46Static version of CFITSIO library.
47
4db5004b 48%description static -l pl.UTF-8
bbe60744
JB
49Statyczna wersja biblioteki CFITSIO.
50
51%prep
52%setup -q -n %{name}
4f5b9cc2 53%patch0 -p1
bbe60744 54
cc6e6bf7
JB
55sed -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
63rm -rf $RPM_BUILD_ROOT
64install -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
71rm -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
This page took 0.089641 seconds and 4 git commands to generate.