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