]> git.pld-linux.org Git - packages/wcslib.git/blob - wcslib.spec
- updated to 7.12
[packages/wcslib.git] / wcslib.spec
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
8 Version:        7.12
9 Release:        1
10 License:        LGPL v3+
11 Group:          Libraries
12 Source0:        ftp://ftp.atnf.csiro.au/pub/software/wcslib/%{name}-%{version}.tar.bz2
13 # Source0-md5:  20ba662a2ac0ccef6f34fe75685ab814
14 URL:            https://www.atnf.csiro.au/people/mcalabre/WCS/wcslib/
15 BuildRequires:  cfitsio-devel
16 BuildRequires:  flex >= 2.6.0
17 BuildRequires:  gcc-fortran
18 BuildRequires:  pgplot-devel
19 BuildRequires:  rpm-build >= 4.6
20 BuildRequires:  rpmbuild(macros) >= 1.752
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
58 BuildArch:      noarch
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
72 %{__make} -j1
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76
77 %{__make} -j1 install \
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
94 %attr(755,root,root) %{_bindir}/sundazel
95 %attr(755,root,root) %{_bindir}/tofits
96 %attr(755,root,root) %{_bindir}/wcsgrid
97 %attr(755,root,root) %{_bindir}/wcsware
98 %attr(755,root,root) %{_libdir}/libpgsbox.so.*.*
99 %attr(755,root,root) %ghost %{_libdir}/libpgsbox.so.7
100 %attr(755,root,root) %{_libdir}/libwcs.so.*.*
101 %attr(755,root,root) %ghost %{_libdir}/libwcs.so.7
102 %{_mandir}/man1/HPXcvt.1*
103 %{_mandir}/man1/fitshdr.1*
104 %{_mandir}/man1/sundazel.1*
105 %{_mandir}/man1/tofits.1*
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
This page took 0.072047 seconds and 4 git commands to generate.