Search
j0ke.net Open Build Service
>
Projects
>
OSSP
>
libmm14
> libmm14.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File libmm14.spec of Package libmm14
# # spec file for package libmm14 (Version 1.4.2) # # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: libmm14 Version: 1.4.2 Release: 0 %define pkg_name mm # License: X11/MIT Group: System/Libraries # BuildRoot: %{_tmppath}/%{name}-%{version}-build # mm-1.4.2 on 10.2 Provides: %{pkg_name} = %{version}-%{release} Obsoletes: %{pkg_name} <= 1.4.2 # limit the shared memory maximum segment size to this many MB %define mm_segment_limit 32 # # note that the maximum size that 2.4 kernel allows is 32 MB by default # (that's low, but it's runtime configurable). # but then again, php typically allocates the maximum size possible # each time it is started, so we don't necessarily want to increase this # and definitely it must not be higher than /proc/sys/kernel/shmmax because # mm_create will fail if a larger size is requested. # # mm is not runtime configurable wrt max segment size. Thus we need to # choose a reasonably low value for all those machines out there. # Ideally this would be runtime configurable; and in addition php should # possibly only mm_create a reasonable sized segment and mm_realloc it # later if need be. # Url: http://www.ossp.org/pkg/lib/mm/ # repackaged from: ftp://ftp.ossp.org/pkg/lib/%{name}/%{name}-%{version}.tar.gz Source: %{pkg_name}-%{version}.tar.bz2 Patch: segment_size.diff Icon: mm.xpm # Summary: Shared Memory Library %description The MM library is a 2-layer abstraction library that 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. Authors: -------- Ralf S. Engelschall <rse@engelschall.com> %package -n libmm-devel Group: System/Libraries Requires: %{name} = %{version} Provides: %{name}-devel = %{version}-%{release} Provides: %{pkg_name}-devel = %{version}-%{release} # Summary: Static Libraries and Includes for mm %description -n libmm-devel Static Libraries and Includes for mm Authors: -------- Ralf S. Engelschall <rse@engelschall.com> %prep %setup -n %{pkg_name}-%{version} %patch %build %configure --with-shm=IPCSHM --with-max-segment-size=%{mm_segment_limit} %{__make} LIBTOOL=%{_bindir}/libtool %ifnarch %arm %check %{__make} test %endif %install %makeinstall LIBTOOL=%{_bindir}/libtool %{__rm} %{buildroot}/%{_libdir}/libmm.{,l}a %clean %{__rm} -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %{_libdir}/libmm.so.14.0.22 %{_libdir}/libmm.so.14 %doc ChangeLog LICENSE README THANKS %files -n libmm-devel %defattr(-,root,root,-) %{_bindir}/mm-config %{_includedir}/mm.h %{_libdir}/libmm.so %{_mandir}/man1/mm-config.1* %{_mandir}/man3/mm.3* %changelog