File libnova.spec of Package libnova
#
# spec file for package libnova (Version 0.12.2)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#
# norootforbuild
%define debug_package_requires libnova-0_12-2 = %{version}-%{release}
Name: libnova
BuildRequires: gcc-c++
License: LGPL v2.1 or later
Group: Development/Libraries/C and C++
Version: 0.12.2
Release: 4
Summary: Astrodynamics Library
Source: %{name}-%{version}.tar.bz2
Url: http://libnova.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Patch: libnova-0.12.2-optflags.patch
%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.
Authors:
--------
Liam Girdwood <liam@gnova.org>
Petr Kubanek <petr@kubanek.net>
%package devel
License: LGPL v2.1 or later
Group: Development/Libraries/C and C++
Summary: Astrodynamics Library
Requires: libnova-0_12-2 = %{version} glibc-devel
%description devel
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.
Authors:
--------
Liam Girdwood <liam@gnova.org>
Petr Kubanek <petr@kubanek.net>
%package -n libnova-0_12-2
License: LGPL v2.1 or later
Group: Development/Libraries/C and C++
Summary: Astrodynamics Library
%description -n libnova-0_12-2
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.
Authors:
--------
Liam Girdwood <liam@gnova.org>
Petr Kubanek <petr@kubanek.net>
%define ARCH_POSTFIX ""
%ifarch amd64 x86_64
%define ARCH_POSTFIX 64
%endif
%prep
%setup -q
%patch
%build
autoreconf -fiv
%configure --disable-static --with-pic
make %{?jobs:-j %jobs}
%install
%makeinstall
%{__rm} -f %{buildroot}%{_libdir}/*.la
%post -n libnova-0_12-2 -p /sbin/ldconfig
%postun -n libnova-0_12-2 -p /sbin/ldconfig
%clean
%{__rm} -rf %{buildroot}
%files -n libnova-0_12-2
%defattr(-,root,root)
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root)
%dir %{_includedir}/libnova/
%{_includedir}/libnova/*.h
%{_libdir}/libnova.so
/usr/bin/libnovaconfig
%changelog
* Tue May 19 2009 dmueller@suse.de
- fix debuginfo package requires
* Wed Mar 11 2009 crrodriguez@suse.de
- remove static libraries an "la" files
- fix devel package dependencies
- use RPM_OPT_FLAGS
* Wed Jan 07 2009 dmueller@suse.de
- Initial version (0.12.2)