]> git.pld-linux.org Git - packages/cfitsio.git/blame - cfitsio.spec
- updated to 4.4.0
[packages/cfitsio.git] / cfitsio.spec
CommitLineData
2c1b67f8 1# TODO: gsiftp support?
bbe60744 2Summary: CFITSIO Interface Library
a4e3e4a1 3Summary(pl.UTF-8): Biblioteka interfejsu CFITSIO
bbe60744 4Name: cfitsio
69e3b83d 5Version: 4.4.0
2c1b67f8 6Release: 1
385681f3 7License: MIT-like
bbe60744 8Group: Libraries
ab650c11 9Source0: https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/%{name}-%{version}.tar.gz
69e3b83d 10# Source0-md5: de5393e0bd939d56e029ea0857de3e76
2c1b67f8 11Patch1: %{name}-ldflags.patch
ca4212bd 12URL: https://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html
2c1b67f8
JB
13BuildRequires: autoconf
14BuildRequires: bzip2-devel
15BuildRequires: curl-devel
bbe60744 16BuildRequires: gcc-g77
385681f3 17BuildRequires: zlib-devel
bbe60744
JB
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
21CFITSIO is a library of ANSI C routines for reading and writing FITS
22format data files. A set of Fortran-callable wrapper routines are
23also included for the convenience of Fortran programmers.
24
4db5004b
JR
25%description -l pl.UTF-8
26CFITSIO to biblioteka funkcji w C do odczytu i zapisu plików z danymi
27w formacie FITS. Zawiera także zestaw wrapperów pozwalających na
28wywoływanie tych funkcji z programów w Fortranie.
bbe60744
JB
29
30%package devel
31Summary: Header files and documentation for CFITSIO
a4e3e4a1 32Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do CFITSIO
bbe60744 33Group: Development/Libraries
58934a9f 34Requires: %{name} = %{version}-%{release}
385681f3 35Requires: zlib-devel
bbe60744
JB
36
37%description devel
38Header files and development documentation for CFITSIO.
39
4db5004b
JR
40%description devel -l pl.UTF-8
41Pliki nagłówkowe i dokumentacja programisty do CFITSIO.
bbe60744
JB
42
43%package static
44Summary: Static CFITSIO library
a4e3e4a1 45Summary(pl.UTF-8): Statyczna biblioteka CFITSIO
bbe60744 46Group: Development/Libraries
58934a9f 47Requires: %{name}-devel = %{version}-%{release}
bbe60744
JB
48
49%description static
50Static version of CFITSIO library.
51
4db5004b 52%description static -l pl.UTF-8
bbe60744
JB
53Statyczna wersja biblioteki CFITSIO.
54
55%prep
ab650c11 56%setup -q
2c1b67f8 57%patch1 -p1
bbe60744
JB
58
59%build
2c1b67f8
JB
60%{__autoconf}
61%configure \
62 --with-bzip2
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)
69e3b83d 82%doc README.md docs/changes.txt licenses/NASA_Open_Source_Agreement_1.3.txt
9dcd70c5 83%attr(755,root,root) %{_libdir}/libcfitsio.so.*.*.*
b46afe2e 84%attr(755,root,root) %ghost %{_libdir}/libcfitsio.so.10
bbe60744
JB
85
86%files devel
87%defattr(644,root,root,755)
69e3b83d 88%doc docs/{cfitsio.pdf,cfortran.doc,fitsio.pdf,fpackguide.pdf,quick.pdf}
9dcd70c5 89%attr(755,root,root) %{_libdir}/libcfitsio.so
8077b949
JB
90%{_includedir}/drvrsmem.h
91%{_includedir}/fitsio*.h
92%{_includedir}/longnam.h
20d81f57 93%{_pkgconfigdir}/cfitsio.pc
bbe60744
JB
94
95%files static
96%defattr(644,root,root,755)
20d81f57 97%{_libdir}/libcfitsio.a
This page took 0.186205 seconds and 4 git commands to generate.