Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > by-pkgid > 6f9703b92a668848efad166496aa5ab6 > files > 2

libnova-0.12.2-3mdv2009.1.src.rpm

%define major	2
%define libname	%mklibname nova %{major}
%define develname %mklibname nova -d

Name:       libnova
Version:    0.12.2
Release:    %mkrel 3
Summary:    General purpose astronomy & astrodynamics library
Group:      Sciences/Astronomy
License:    LGPLv2+
URL:        http://sourceforge.net/projects/libnova/
Source0:    http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root
Requires:   %{libname} = %{version}-%{release}

%description
Libnova is a general purpose, double precision, celestial mechanics, 
astrometry and astrodynamics library

%if %mdkversion < 200900
%post -p /sbin/ldconfig
%endif
%if %mdkversion < 200900
%postun -p /sbin/ldconfig
%endif

%files
%defattr(-,root,root,-)
%doc ChangeLog README AUTHORS NEWS COPYING
%{_bindir}/libnovaconfig

#--------------------------------------------------------------------

%package -n %{libname}
Summary:    Library files for %name
Group:      Development/KDE and Qt

%description -n %{libname}
Contains library files for nova

%files -n %{libname}
%{_libdir}/libnova-0.12.so.%{major}*

#--------------------------------------------------------------------

%package -n %{develname}
Summary:    Development files for %name
Group:      Development/KDE and Qt
Requires:   %{libname} = %{version}-%{release}
Provides:   %{name}-devel = %{version}-%{release}
Obsoletes:  %{name}-devel < %{version}-%{release}

%description -n %{develname}
Contains library and header files for %nova

%files -n %{develname}
%doc COPYING examples/*.c
%{_includedir}/libnova
%{_libdir}/libnova.so

#--------------------------------------------------------------------

%prep
%setup -q

%build
%configure2_5x --disable-static
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'

%clean
rm -rf $RPM_BUILD_ROOT


%changelog
* Fri Apr 10 2009 Funda Wang <fundawang@mandriva.org> 0.12.2-3mdv2009.1
+ Revision: 365613
- use configure2_5x

* Sun Sep 07 2008 Funda Wang <fundawang@mandriva.org> 0.12.2-3mdv2009.0
+ Revision: 282187
- obsoletes old wrong devel libname
- provides virtual name

* Tue Sep 02 2008 Emmanuel Andry <eandry@mandriva.org> 0.12.2-1mdv2009.0
+ Revision: 278798
- New version
- apply devel policy
- change major

* Wed Aug 06 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.12.1-2mdv2009.0
+ Revision: 264849
- rebuild early 2009.0 package (before pixel changes)

  + Pixel <pixel@mandriva.com>
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

* Wed May 07 2008 Nicolas Lécureuil <neoclust@mandriva.org> 0.12.1-1mdv2009.0
+ Revision: 202854
- Fix Group
- Fix group
- import libnova