Author: tpg
Date: Thu Feb 15 01:52:38 2007
New Revision: 121268

Modified:
   packages/cooker/libsvg/current/SPECS/libsvg.spec

Log:
- rebuild
- spec file clean

Modified: packages/cooker/libsvg/current/SPECS/libsvg.spec
==============================================================================
--- packages/cooker/libsvg/current/SPECS/libsvg.spec    (original)
+++ packages/cooker/libsvg/current/SPECS/libsvg.spec    Thu Feb 15 01:52:38 2007
@@ -1,42 +1,40 @@
 %define major   1
-%define release %mkrel 1
-%define lib_name %mklibname svg %major
+%define libname %mklibname svg %{major}
 
-Name:             libsvg
-Summary:          A generic SVG library
-Version: 0.1.4
-Release: %mkrel 1
-License:          LGPL
-Group:            System/Libraries
-Source:           %{name}-%{version}.tar.bz2
-URL:              http://cairographics.org/snapshots/
-BuildRoot:        %{_tmppath}/%{name}-%{version}-root
-BuildRequires:    pkgconfig >= 0.8
-BuildRequires:    libxml2-devel
-BuildRequires:    png-devel
-BuildRequires:    jpeg-devel
+Summary:       A generic SVG library
+Name:          libsvg
+Version:       0.1.4
+Release:       %mkrel 1
+License:       LGPL
+Group:         System/Libraries
+URL:           http://cairographics.org/snapshots/
+Source:                
http://cairographics.org/snapshots/%{name}-%{version}.tar.bz2
+BuildRequires: pkgconfig >= 0.8
+BuildRequires: libxml2-devel
+BuildRequires: png-devel
+BuildRequires: jpeg-devel
+BuildRoot:     %{_tmppath}/%{name}-%{version}-buildroot
 
 %description
 A generic SVG library.
 
-%package -n %{lib_name}
-Summary:          A generic SVG library
-Group:            System/Libraries
+%package -n    %{libname}
+Summary:       A generic SVG library
+Group:         System/Libraries
 
-%description -n %{lib_name}
+%description -n        %{libname}
 A generic SVG library.
 
-%package -n %{lib_name}-devel
-Summary:          Libraries and include files for developing with libsvg
-Group:            Development/C
-Requires:         %{lib_name} = %{version}
-Provides:         %{name}-devel = %{version}
+%package -n    %{libname}-devel
+Summary:       Libraries and include files for developing with libsvg
+Group:         Development/C
+Requires:      %{libname} = %{version}
+Provides:      %{name}-devel = %{version}
 
-%description -n %{lib_name}-devel
+%description -n        %{libname}-devel
 This package provides the necessary development libraries and include
 files to allow you to develop with libsvg.
 
-
 %prep
 %setup -q
 
@@ -45,24 +43,24 @@
 %make
 
 %install
-rm -rf $RPM_BUILD_ROOT
+[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
+
 %makeinstall
 
 %clean
-rm -rf $RPM_BUILD_ROOT
-
-%post -n %{lib_name} -p /sbin/ldconfig
+[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
 
-%postun -n %{lib_name} -p /sbin/ldconfig
+%post -n %{libname} -p /sbin/ldconfig
 
+%postun -n %{libname} -p /sbin/ldconfig
 
-%files -n %{lib_name}
-%defattr(-, root, root)
+%files -n %{libname}
+%defattr(644,root,root,755)
 %doc AUTHORS COPYING ChangeLog NEWS README TODO
-%{_libdir}/*.so.%{major}*
+%attr(755,root,root) %{_libdir}/*.so.%{major}*
 
-%files -n %{lib_name}-devel
-%defattr(-, root, root)
+%files -n %{libname}-devel
+%defattr(644,root,root,755)
 %{_libdir}/*.so
 %attr(644,root,root) %{_libdir}/*.la
 %{_libdir}/*.a

Reply via email to