Author: tpg
Date: Wed Feb 14 21:33:37 2007
New Revision: 121136
Modified:
packages/cooker/gsl/current/SPECS/gsl.spec
Log:
- rebuild
- update url
- spec file clean
Modified: packages/cooker/gsl/current/SPECS/gsl.spec
==============================================================================
--- packages/cooker/gsl/current/SPECS/gsl.spec (original)
+++ packages/cooker/gsl/current/SPECS/gsl.spec Wed Feb 14 21:33:37 2007
@@ -1,6 +1,6 @@
%define name gsl
%define version 1.8
-%define release %mkrel 2
+%define release %mkrel 3
%define major 0
%define libname %mklibname %{name} %major
@@ -9,14 +9,12 @@
Name: %{name}
Version: %{version}
Release: %{release}
-URL: http://sourceware.redhat.com/gsl/
-
-Source:
ftp://ftp.mirror.ac.uk:/sites/sources.redhat.com/ftp/gsl/%{name}-%{version}.tar.bz2
-
License: GPL
Group: Sciences/Mathematics
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
+URL: http://www.gnu.org/software/gsl/
+Source: ftp://ftp.gnu.org/gnu/gsl/%{name}-%{version}.tar.bz2
BuildRequires: autoconf2.5
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
%description
The GNU Scientific Library (GSL) is a numerical library for C and
@@ -116,14 +114,15 @@
%build
%configure2_5x
%make
-make check
+%check
%install
-rm -fr %buildroot
+[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
+
%makeinstall_std
#multiarch
-%multiarch_binaries $RPM_BUILD_ROOT%{_bindir}/gsl-config
+%multiarch_binaries %{buildroot}%{_bindir}/gsl-config
%post -n %{libname} -p /sbin/ldconfig
@@ -136,29 +135,29 @@
%_remove_install_info gsl-ref.info
%clean
-rm -fr %buildroot
+[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
%files progs
-%defattr(-,root,root,-)
+%defattr(644,root,root,755)
%doc AUTHORS INSTALL NEWS README THANKS
-%{_bindir}/gsl-histogram
-%{_bindir}/gsl-randist
+%attr(755,root,root) %{_bindir}/gsl-histogram
+%attr(755,root,root) %{_bindir}/gsl-randist
%{_mandir}/man1/gsl-histogram*
%{_mandir}/man1/gsl-randist*
%files doc
-%defattr(-,root,root,-)
+%defattr(644,root,root,755)
%{_infodir}/*info*
%files -n %{libname}
-%defattr(-,root,root,0755)
-%{_libdir}/*.so.*
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/*.so.%{major}*
%files -n %{libname}-devel
-%defattr(-,root,root,0755)
+%defattr(644,root,root,755)
%doc BUGS ChangeLog TODO doc/examples/
-%{_bindir}/gsl-config
-%multiarch %{multiarch_bindir}/gsl-config
+%attr(755,root,root) %{_bindir}/gsl-config
+%multiarch %attr(755,root,root) %{multiarch_bindir}/gsl-config
%{_datadir}/aclocal/*.m4
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc