]> git.pld-linux.org Git - packages/gnuastro.git/blame - gnuastro.spec
- release 4 (by relup.sh)
[packages/gnuastro.git] / gnuastro.spec
CommitLineData
98b9e719
JB
1#
2# Conditional build:
3%bcond_without static_libs # static library
4
5Summary: GNU Astronomy Utilities
6Summary(pl.UTF-8): Narzędzia astronomiczne GNU
7Name: gnuastro
1d5db55b 8Version: 0.11
45f554a6 9Release: 4
98b9e719
JB
10License: GPL v3+
11Group: Applications/Science
2ed15334 12Source0: https://ftp.gnu.org/gnu/gnuastro/%{name}-%{version}.tar.lz
1d5db55b 13# Source0-md5: 5fcb6f89710d9047dabeaec6fe054b43
c34b9402 14Patch0: %{name}-info.patch
ae3226ab 15Patch1: ac.patch
98b9e719
JB
16URL: http://www.gnu.org/software/gnuastro/
17BuildRequires: autoconf >= 2.69
18BuildRequires: automake
19BuildRequires: cfitsio-devel
20BuildRequires: curl-devel
21BuildRequires: ghostscript >= 9.10
fdaea0fb 22BuildRequires: gsl-devel >= 2.0
98b9e719
JB
23BuildRequires: help2man
24BuildRequires: libgit2-devel
25BuildRequires: libjpeg-devel
635d3ed9 26BuildRequires: libtiff-devel
98b9e719
JB
27BuildRequires: libtool >= 2:2
28BuildRequires: lzip
29BuildRequires: tar >= 1:1.22
30BuildRequires: wcslib-devel
1d5db55b 31BuildRequires: xz-devel
98b9e719
JB
32Suggests: ghostscript >= 9.10
33BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35%description
36GNU Astronomy Utilities (Gnuastro) is an official GNU package of
37programs and a library functions for astronomical data manipulation
38and analysis. The programs are run on the operating system's
39command-line enabling easy and efficient operation combined with other
40installed programs in shell scripts or Makefiles. The libraries are
41also usable in C and C++ programs.
42
43%description -l pl.UTF-8
44GNU Astronomy Utilities (Gnuastro) to oficjalny pakiet GNU zawierający
45programy i funkcje biblioteczne do obróbki i analiz danych
46astronomicznych. Programy są uruchamiane z wiersza poleceń systemu
47operacyjnego, co pozwala na łatwe i wydajne operowanie w połączeniu z
48innymi zainstalowanymi programami lub z poziomu plików Makefile.
49Biblioteki mogą być używane w programach w C i C++.
50
51%package devel
52Summary: Header files for Gnuastro library
53Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Gnuastro
54Group: Development/Libraries
55Requires: %{name} = %{version}-%{release}
56Requires: cfitsio-devel
57Requires: gsl-devel
58Requires: libgit2-devel
1d5db55b
JB
59Requires: libjpeg-devel
60Requires: libtiff-devel >= 4
98b9e719 61Requires: wcslib-devel
1d5db55b 62Requires: xz-devel
98b9e719
JB
63
64%description devel
65Header files for Gnuastro library.
66
67%description devel -l pl.UTF-8
68Pliki nagłówkowe biblioteki Gnuastro.
69
70%package static
71Summary: Static Gnuastro library
72Summary(pl.UTF-8): Statyczna biblioteka Gnuastro
73Group: Development/Libraries
74Requires: %{name}-devel = %{version}-%{release}
75
76%description static
77Static Gnuastro library.
78
79%description static -l pl.UTF-8
80Statyczna biblioteka Gnuastro.
81
82%prep
83%setup -q
c34b9402 84%patch0 -p1
ae3226ab 85%patch1 -p1
98b9e719
JB
86
87%build
88# regenerate for as-needed to work
89%{__libtoolize}
90%{__aclocal} -I bootstrapped/m4
91%{__autoconf}
92%{__autoheader}
93%{__automake}
94%configure \
95 --sysconfdir=%{_sysconfdir}/gnuastro \
96 %{!?with_static_libs:--disable-static}
97%{__make}
98
99%install
100rm -rf $RPM_BUILD_ROOT
101
102%{__make} install \
103 DESTDIR=$RPM_BUILD_ROOT
104
105# obsoleted by pkg-config
106%{__rm} $RPM_BUILD_ROOT%{_libdir}/libgnuastro.la
107# packaged as %doc
108%{__rm} $RPM_BUILD_ROOT%{_docdir}/gnuastro/README
109
110%clean
111rm -rf $RPM_BUILD_ROOT
112
113%post -p /sbin/postshell
114-/sbin/ldconfig
115-/usr/sbin/fix-info-dir -c %{_infodir}
116
117%postun -p /sbin/postshell
118-/sbin/ldconfig
119-/usr/sbin/fix-info-dir -c %{_infodir}
120
121%files
122%defattr(644,root,root,755)
123%doc AUTHORS ChangeLog NEWS README THANKS
124%attr(755,root,root) %{_bindir}/astarithmetic
125%attr(755,root,root) %{_bindir}/astbuildprog
126%attr(755,root,root) %{_bindir}/astconvertt
127%attr(755,root,root) %{_bindir}/astconvolve
128%attr(755,root,root) %{_bindir}/astcosmiccal
129%attr(755,root,root) %{_bindir}/astcrop
130%attr(755,root,root) %{_bindir}/astfits
131%attr(755,root,root) %{_bindir}/astmatch
132%attr(755,root,root) %{_bindir}/astmkcatalog
133%attr(755,root,root) %{_bindir}/astmknoise
134%attr(755,root,root) %{_bindir}/astmkprof
135%attr(755,root,root) %{_bindir}/astnoisechisel
fdaea0fb 136%attr(755,root,root) %{_bindir}/astscript-sort-by-night
635d3ed9 137%attr(755,root,root) %{_bindir}/astsegment
98b9e719
JB
138%attr(755,root,root) %{_bindir}/aststatistics
139%attr(755,root,root) %{_bindir}/asttable
140%attr(755,root,root) %{_bindir}/astwarp
141%attr(755,root,root) %{_libdir}/libgnuastro.so.*.*.*
1d5db55b 142%attr(755,root,root) %ghost %{_libdir}/libgnuastro.so.9
98b9e719
JB
143%dir %{_sysconfdir}/gnuastro
144%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gnuastro/ast*.conf
145%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gnuastro/gnuastro.conf
146%{_infodir}/gnuastro.info*
147%{_infodir}/gnuastro-figures
148%{_mandir}/man1/astarithmetic.1*
149%{_mandir}/man1/astbuildprog.1*
150%{_mandir}/man1/astconvertt.1*
151%{_mandir}/man1/astconvolve.1*
152%{_mandir}/man1/astcosmiccal.1*
153%{_mandir}/man1/astcrop.1*
154%{_mandir}/man1/astfits.1*
155%{_mandir}/man1/astmatch.1*
156%{_mandir}/man1/astmkcatalog.1*
157%{_mandir}/man1/astmknoise.1*
158%{_mandir}/man1/astmkprof.1*
159%{_mandir}/man1/astnoisechisel.1*
fdaea0fb 160%{_mandir}/man1/astscript-sort-by-night.1*
635d3ed9 161%{_mandir}/man1/astsegment.1*
98b9e719
JB
162%{_mandir}/man1/aststatistics.1*
163%{_mandir}/man1/asttable.1*
164%{_mandir}/man1/astwarp.1*
165
166%files devel
167%defattr(644,root,root,755)
168%attr(755,root,root) %{_libdir}/libgnuastro.so
169%{_includedir}/gnuastro
170%{_pkgconfigdir}/gnuastro.pc
171
172%if %{with static_libs}
173%files static
174%defattr(644,root,root,755)
175%{_libdir}/libgnuastro.a
176%endif
This page took 0.114858 seconds and 4 git commands to generate.