2009-01-14 03:43:08 +00:00
|
|
|
#
|
2011-05-30 08:07:05 +00:00
|
|
|
# spec file for package libnova
|
2009-01-14 03:43:08 +00:00
|
|
|
#
|
2014-06-01 17:40:28 +00:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2009-01-14 03:43:08 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2012-10-04 18:00:14 +00:00
|
|
|
%define so_ver 0_15-0
|
2009-01-14 03:43:08 +00:00
|
|
|
|
|
|
|
|
Name: libnova
|
2012-10-04 18:00:14 +00:00
|
|
|
Version: 0.15.0
|
|
|
|
|
Release: 0
|
2011-05-30 08:07:05 +00:00
|
|
|
Summary: Celestial Mechanics, Astrometry and Astrodynamics Library
|
2012-10-04 18:00:14 +00:00
|
|
|
License: LGPL-2.0+
|
2011-05-30 08:07:05 +00:00
|
|
|
Group: System/Libraries
|
2012-10-04 18:00:14 +00:00
|
|
|
Url: http://libnova.sourceforge.net/
|
2011-09-01 13:01:40 +00:00
|
|
|
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
2013-03-24 20:56:43 +00:00
|
|
|
# PATCH-FIX-UPSTREAM automake-1.13.patch asterios.dramis@gmail.com -- Fix build with automake 1.13
|
|
|
|
|
Patch0: automake-1.13.patch
|
2012-10-04 18:00:14 +00:00
|
|
|
BuildRequires: doxygen
|
|
|
|
|
BuildRequires: fdupes
|
2011-05-30 08:07:05 +00:00
|
|
|
BuildRequires: gcc-c++
|
2012-10-04 18:00:14 +00:00
|
|
|
BuildRequires: libtool
|
2009-01-14 03:43:08 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
libnova is a general purpose, double precision, Celestial Mechanics,
|
|
|
|
|
Astrometry and Astrodynamics library. The intended audience of libnova
|
|
|
|
|
is C & C++ programmers, astronomers and anyone else interested in
|
|
|
|
|
calculating positions of astronomical objects or celestial mechanics.
|
|
|
|
|
|
|
|
|
|
%package devel
|
2011-05-30 08:07:05 +00:00
|
|
|
Summary: Development files for libnova
|
2009-01-14 03:43:08 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2011-05-30 08:07:05 +00:00
|
|
|
Requires: glibc-devel
|
2012-10-04 18:00:14 +00:00
|
|
|
Requires: libnova-%{so_ver} = %{version}
|
2009-01-14 03:43:08 +00:00
|
|
|
|
|
|
|
|
%description devel
|
2011-05-30 08:07:05 +00:00
|
|
|
This package contains development files for libnova.
|
2009-01-14 03:43:08 +00:00
|
|
|
|
2012-10-04 18:00:14 +00:00
|
|
|
%package -n libnova-%{so_ver}
|
2011-05-30 08:07:05 +00:00
|
|
|
Summary: Celestial Mechanics, Astrometry and Astrodynamics Library
|
|
|
|
|
Group: System/Libraries
|
2009-01-14 03:43:08 +00:00
|
|
|
|
2012-10-04 18:00:14 +00:00
|
|
|
%description -n libnova-%{so_ver}
|
2009-01-14 03:43:08 +00:00
|
|
|
libnova is a general purpose, double precision, Celestial Mechanics,
|
|
|
|
|
Astrometry and Astrodynamics library. The intended audience of libnova
|
|
|
|
|
is C & C++ programmers, astronomers and anyone else interested in
|
|
|
|
|
calculating positions of astronomical objects or celestial mechanics.
|
|
|
|
|
|
|
|
|
|
%prep
|
2024-02-29 20:52:38 +00:00
|
|
|
%autosetup -p0
|
2009-01-14 03:43:08 +00:00
|
|
|
|
|
|
|
|
%build
|
2012-10-04 18:00:14 +00:00
|
|
|
# Regenerate build system because of errors about libtool during compilation
|
|
|
|
|
autoreconf -vif
|
2014-06-01 17:40:28 +00:00
|
|
|
echo 'HTML_TIMESTAMP=NO' >> doc/doxyfile.in
|
2009-03-17 23:03:39 +00:00
|
|
|
%configure --disable-static --with-pic
|
2011-05-30 08:07:05 +00:00
|
|
|
make CFLAGS+="%{optflags}" %{?_smp_mflags}
|
2012-10-04 18:00:14 +00:00
|
|
|
cd doc
|
|
|
|
|
make doc %{?_smp_mflags}
|
|
|
|
|
cd ..
|
2009-01-14 03:43:08 +00:00
|
|
|
|
|
|
|
|
%install
|
2012-11-28 10:00:12 +00:00
|
|
|
make DESTDIR=%{buildroot} install
|
2011-09-01 13:01:40 +00:00
|
|
|
|
2012-10-04 18:00:14 +00:00
|
|
|
# Manually install doc files in order to fix rpmlint warning "files-duplicate"
|
|
|
|
|
mkdir -p %{buildroot}%{_docdir}/%{name}-devel
|
|
|
|
|
cp -a doc/html/ %{buildroot}%{_docdir}/%{name}-devel/
|
|
|
|
|
cp -a AUTHORS COPYING ChangeLog NEWS %{buildroot}%{_docdir}/%{name}-devel/
|
|
|
|
|
|
|
|
|
|
# Remove libtool config files
|
2011-05-30 08:07:05 +00:00
|
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
2009-01-14 03:43:08 +00:00
|
|
|
|
2012-10-04 18:00:14 +00:00
|
|
|
%fdupes -s %{buildroot}
|
2009-01-14 03:43:08 +00:00
|
|
|
|
2012-10-04 18:00:14 +00:00
|
|
|
%post -n libnova-%{so_ver} -p /sbin/ldconfig
|
2009-01-14 03:43:08 +00:00
|
|
|
|
2012-10-04 18:00:14 +00:00
|
|
|
%postun -n libnova-%{so_ver} -p /sbin/ldconfig
|
2009-01-14 03:43:08 +00:00
|
|
|
|
|
|
|
|
%files devel
|
2011-05-30 08:07:05 +00:00
|
|
|
%defattr(-,root,root,-)
|
2012-10-04 18:00:14 +00:00
|
|
|
%doc %{_docdir}/%{name}-devel/
|
2011-05-30 08:07:05 +00:00
|
|
|
%{_includedir}/libnova/
|
2009-01-14 03:43:08 +00:00
|
|
|
%{_libdir}/libnova.so
|
2011-05-30 08:07:05 +00:00
|
|
|
%{_bindir}/libnovaconfig
|
2009-01-14 03:43:08 +00:00
|
|
|
|
2012-10-04 18:00:14 +00:00
|
|
|
%files -n libnova-%{so_ver}
|
2011-09-01 13:01:40 +00:00
|
|
|
%defattr(-,root,root,-)
|
2012-10-04 18:00:14 +00:00
|
|
|
%{_libdir}/libnova-0.15.so.0*
|
2011-09-01 13:01:40 +00:00
|
|
|
|
2009-01-14 03:43:08 +00:00
|
|
|
%changelog
|