]>
Commit | Line | Data |
---|---|---|
b5f13785 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # API documentation | |
4 | # | |
5 | Summary: WCSLIB - an implementation of the FITS WCS standard | |
6 | Summary(pl.UTF-8): WCSLIB - implementacja standardu FITS WCS | |
7 | Name: wcslib | |
15b975ef | 8 | Version: 7.3.1 |
9e1ea661 | 9 | Release: 1 |
b5f13785 JB |
10 | License: LGPL v3+ |
11 | Group: Libraries | |
12 | Source0: ftp://ftp.atnf.csiro.au/pub/software/wcslib/%{name}-%{version}.tar.bz2 | |
15b975ef | 13 | # Source0-md5: 9160f327f09f9f7f351b77f98437834c |
178f0f54 | 14 | URL: https://www.atnf.csiro.au/people/mcalabre/WCS/wcslib/ |
b5f13785 JB |
15 | BuildRequires: cfitsio-devel |
16 | BuildRequires: flex >= 2.5.9 | |
17 | BuildRequires: gcc-fortran | |
18 | BuildRequires: pgplot-devel | |
15b975ef | 19 | BuildRequires: rpmbuild(macros) >= 1.752 |
b5f13785 JB |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
23 | An implementation of the FITS World Coordinate System standard. | |
24 | ||
25 | %description -l pl.UTF-8 | |
26 | Implementacja standardu FITS World Coordinate System. | |
27 | ||
28 | %package devel | |
29 | Summary: Header files for WCSLIB libraries | |
30 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek WCSLIB | |
31 | Group: Development/Libraries | |
32 | Requires: %{name} = %{version}-%{release} | |
33 | Requires: cfitsio-devel | |
34 | ||
35 | %description devel | |
36 | Header files for WCSLIB libraries. | |
37 | ||
38 | %description devel -l pl.UTF-8 | |
39 | Pliki nagłówkowe bibliotek WCSLIB. | |
40 | ||
41 | %package static | |
42 | Summary: Static WCSLIB libraries | |
43 | Summary(pl.UTF-8): Statyczne biblioteki WCSLIB | |
44 | Group: Development/Libraries | |
45 | Requires: %{name}-devel = %{version}-%{release} | |
46 | ||
47 | %description static | |
48 | Static WCSLIB libraries. | |
49 | ||
50 | %description static -l pl.UTF-8 | |
51 | Statyczne biblioteki WCSLIB. | |
52 | ||
53 | %package apidocs | |
54 | Summary: API documentation for WCSLIB libraries | |
55 | Summary(pl.UTF-8): Dokumentacja API bibliotek WCSLIB | |
56 | Group: Documentation | |
88347b21 | 57 | BuildArch: noarch |
b5f13785 JB |
58 | |
59 | %description apidocs | |
60 | API documentation for WCSLIB libraries. | |
61 | ||
62 | %description apidocs -l pl.UTF-8 | |
63 | Dokumentacja API bibliotek WCSLIB. | |
64 | ||
65 | %prep | |
66 | %setup -q | |
67 | ||
68 | %build | |
69 | %configure | |
70 | ||
17e878cd | 71 | %{__make} -j1 |
b5f13785 JB |
72 | |
73 | %install | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
17e878cd | 76 | %{__make} -j1 install \ |
b5f13785 JB |
77 | DESTDIR=$RPM_BUILD_ROOT |
78 | ||
79 | # split over packages as %doc | |
80 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} | |
81 | ||
82 | %clean | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %post -p /sbin/ldconfig | |
86 | %postun -p /sbin/ldconfig | |
87 | ||
88 | %files | |
89 | %defattr(644,root,root,755) | |
90 | %doc CHANGES README THANKS | |
91 | %attr(755,root,root) %{_bindir}/HPXcvt | |
92 | %attr(755,root,root) %{_bindir}/fitshdr | |
93 | %attr(755,root,root) %{_bindir}/wcsgrid | |
94 | %attr(755,root,root) %{_bindir}/wcsware | |
95 | %attr(755,root,root) %{_libdir}/libpgsbox.so.*.* | |
178f0f54 | 96 | %attr(755,root,root) %ghost %{_libdir}/libpgsbox.so.7 |
b5f13785 | 97 | %attr(755,root,root) %{_libdir}/libwcs.so.*.* |
178f0f54 | 98 | %attr(755,root,root) %ghost %{_libdir}/libwcs.so.7 |
b5f13785 JB |
99 | %{_mandir}/man1/HPXcvt.1* |
100 | %{_mandir}/man1/fitshdr.1* | |
101 | %{_mandir}/man1/wcsgrid.1* | |
102 | %{_mandir}/man1/wcsware.1* | |
103 | ||
104 | %files devel | |
105 | %defattr(644,root,root,755) | |
106 | %attr(755,root,root) %{_libdir}/libpgsbox.so | |
107 | %attr(755,root,root) %{_libdir}/libwcs.so | |
108 | %{_includedir}/wcslib-%{version} | |
109 | %{_includedir}/wcslib | |
110 | %{_pkgconfigdir}/wcslib.pc | |
111 | ||
112 | %files static | |
113 | %defattr(644,root,root,755) | |
114 | %{_libdir}/libpgsbox-%{version}.a | |
115 | %{_libdir}/libpgsbox.a | |
116 | %{_libdir}/libwcs-%{version}.a | |
117 | %{_libdir}/libwcs.a | |
118 | ||
119 | %if %{with apidocs} | |
120 | %files apidocs | |
121 | %defattr(644,root,root,755) | |
122 | %doc html/* | |
123 | %endif |