"Geoffrey Lee" <[EMAIL PROTECTED]> writes:

> mm's spec is (quite) severly broken, so i  made a fix for it.

wou you have discovered a titisuck :)

> can you please rebuild with my spec. (i say rebuild because i want credit in
> changelog ;)

hugh the changelog is broken since it don't follow the release 
2mdk <=> 1mdk (use Emacs and rpm-spec-mode ;), and here is the
clean-up (titi no need to put my name in the changelog, i don't
_really_ need ;))  :

--- mm.spec     Sat Jul  8 18:18:31 2000
+++ /tmp/mm.spec        Sat Jul  8 18:21:04 2000
@@ -1,7 +1,6 @@
 %define        name            mm
 %define        version         1.1.3
 %define release                1mdk
-%define prefix                 %{_prefix}
 
 Summary:       Shared Memory Abstraction Library
 Name:          %{name}
@@ -12,6 +11,7 @@
 Source:                http://www.engelschall.com/sw/mm/%{name}-%{version}.tar.bz2
 URL:           http://www.engelschall.com/sw/mm/
 BuildRoot:     %{_tmppath}/%{name}-%{version}-buildroot
+Prefix:            %{_prefix}
 
 %package devel
 Group: Development/C
@@ -42,21 +42,24 @@
 procedure. 
 
 %description devel
-This package includes all the files that yo will need for mm development.
+The MM library is a 2-layer abstraction library which simplifies the usage of
+shared memory between forked (and this way strongly related) processes under
+Unix platforms. On the first layer it hides all platform dependent
+implementation details (allocation and locking) when dealing with shared
+memory segments and on the second layer it provides a high-level malloc(3)-
+style API for a convenient and well known way to work with data-structures
+inside those shared memory segments.
 
+This package includes all the files that yo will need for mm development.
 Install this package if you intend to develop applications that require mm.
 
 %prep
-rm -rf $RPM_BUILD_ROOT
-
 %setup -q
-rm -rf $RPM_BUILD_ROOT
-
 %build
 export CFLAGS="$RPM_OPT_FLAGS"
 export CXXFLAGS="$RPM_OPT_FLAGS"
 
-./configure --prefix=$RPM_BUILD_ROOT%{prefix}
+%configure
 
 make
 make test
@@ -65,31 +68,26 @@
 rm -rf $RPM_BUILD_ROOT
 %makeinstall
 
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post
-/sbin/ldconfig
-
-%postun
-/sbin/ldconfig
-
+%post -p /sbin/ldconfig
 
+%postun -p /sbin/ldconfig
 
 %files 
 %defattr(-,root,root)
 %doc README LICENSE ChangeLog INSTALL PORTING THANKS
-%{prefix}/bin/*
-%{prefix}/lib/*.so.*
-%{prefix}/man/man1/*
-%{prefix}/man/man3/*
+%{_bindir}/*
+%{_libdir}/*.so.*
+%{_mandir}/man1/*
+%{_mandir}/man3/*
 
 %files devel
 %defattr(-,root,root)
-%{prefix}/lib/*.so
-%{prefix}/lib/*.a
-%{prefix}/include/*
+%{_libdir}/*.so
+%{_libdir}/*.a
+%{_includedir}/*
 
 %changelog
 * Sat Jul 09 2000 Geoffrey Lee <[EMAIL PROTECTED]> 1.1.3-2mdk

-- 
MandrakeSoft Inc                http://www.mandrakesoft.com
San-Francisco, CA USA                             --Chmouel

Reply via email to