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