]> git.pld-linux.org Git - packages/cfitsio.git/blame - cfitsio.spec
- updated to 3.420
[packages/cfitsio.git] / cfitsio.spec
CommitLineData
bbe60744 1Summary: CFITSIO Interface Library
a4e3e4a1 2Summary(pl.UTF-8): Biblioteka interfejsu CFITSIO
bbe60744 3Name: cfitsio
ca4212bd 4Version: 3.420
bbe60744 5%define sver %(echo %{version} | tr -d .)
98b0ada1 6Release: 1
385681f3 7License: MIT-like
bbe60744 8Group: Libraries
ca4212bd
JB
9Source0: https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/%{name}%{sver}.tar.gz
10# Source0-md5: 26e5c0dfb85b8d00f536e706305caa13
98b0ada1 11Patch0: %{name}-zlib.patch
ca4212bd 12URL: https://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html
bbe60744 13BuildRequires: gcc-g77
385681f3 14BuildRequires: zlib-devel
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}
385681f3 32Requires: zlib-devel
bbe60744
JB
33
34%description devel
35Header files and development documentation for CFITSIO.
36
4db5004b
JR
37%description devel -l pl.UTF-8
38Pliki nagłówkowe i dokumentacja programisty do CFITSIO.
bbe60744
JB
39
40%package static
41Summary: Static CFITSIO library
a4e3e4a1 42Summary(pl.UTF-8): Statyczna biblioteka CFITSIO
bbe60744 43Group: Development/Libraries
58934a9f 44Requires: %{name}-devel = %{version}-%{release}
bbe60744
JB
45
46%description static
47Static version of CFITSIO library.
48
4db5004b 49%description static -l pl.UTF-8
bbe60744
JB
50Statyczna wersja biblioteki CFITSIO.
51
52%prep
53%setup -q -n %{name}
98b0ada1 54%patch0 -p1
bbe60744 55
385681f3 56# enforce headers from system zlib
9dcd70c5 57%{__rm} zlib/{crc32.h,deflate.h,inffast.h,inffixed.h,inflate.h,inftrees.h,zconf.h,zlib.h,zutil.h}
cc6e6bf7 58
bbe60744 59%build
66b22f62 60%configure
bbe60744 61
e6bb20a3 62%{__make} shared
bbe60744
JB
63
64%install
65rm -rf $RPM_BUILD_ROOT
66install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}}
67
68%{__make} install \
e6bb20a3 69 CFITSIO_LIB=$RPM_BUILD_ROOT%{_libdir} \
70 CFITSIO_INCLUDE=$RPM_BUILD_ROOT%{_includedir}
bbe60744
JB
71
72%clean
73rm -rf $RPM_BUILD_ROOT
74
75%post -p /sbin/ldconfig
76%postun -p /sbin/ldconfig
77
78%files
79%defattr(644,root,root,755)
9dcd70c5
JB
80%doc License.txt README docs/changes.txt
81%attr(755,root,root) %{_libdir}/libcfitsio.so.*.*.*
5fd3aa66 82%attr(755,root,root) %ghost %{_libdir}/libcfitsio.so.5
bbe60744
JB
83
84%files devel
85%defattr(644,root,root,755)
9dcd70c5
JB
86%doc docs/{cfitsio.doc,cfitsio.ps,fitsio.doc,fitsio.ps,quick.ps}
87%attr(755,root,root) %{_libdir}/libcfitsio.so
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.092146 seconds and 4 git commands to generate.