From ffd4b8b92708df76e63b9a66ed267b5ae67d9232 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Tue, 4 Sep 2007 14:05:27 +0000 Subject: [PATCH] packaging tweaks from Rich --- umem.spec.in | 40 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 38 insertions(+), 2 deletions(-) diff --git a/umem.spec.in b/umem.spec.in index 84d75a6..6742945 100644 --- a/umem.spec.in +++ b/umem.spec.in @@ -1,11 +1,11 @@ Name: @PACKAGE_NAME@ Version: @PACKAGE_VERSION@ -Release: 1%{?dist} +Release: 2%{?dist} Summary: Port of Solaris's slab allocator. Group: System Environment/Libraries License: CDDL -URL: http://sourceforge.net/projects/umem/ +URL: https://labs.omniti.com/trac/portableumem/ Source0: %{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -50,6 +50,39 @@ find $RPM_BUILD_ROOT%{_libdir} -name '*.la' | xargs rm -fv # Remove the symlink to the SONAME. Let ldconfig manage that. rm -fv $RPM_BUILD_ROOT%{_libdir}/*.so.[0-9] +# Build the pkgconfig configurations. +mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkgconfig + +cat<$RPM_BUILD_ROOT%{_libdir}/pkgconfig/%{name}-%{version}.pc +prefix=%{_prefix} +exec_prefix=%{_exec_prefix} +libdir=%{_libdir} +includedir=%{_includedir} + +Name: %{name} +Version: %{version} +Description: Port of Solaris's slab allocator. +URL: https://labs.omniti.com/trac/portableumem/ +Requires: +Libs: -L\${libdir} -lumem +Cflags: +EOT + +cat<$RPM_BUILD_ROOT%{_libdir}/pkgconfig/%{name}-malloc-%{version}.pc +prefix=%{_prefix} +exec_prefix=%{_exec_prefix} +libdir=%{_libdir} +includedir=%{_includedir} + +Name: %{name} +Version: %{version} +Description: Port of Solaris's slab allocator. Libc malloc replacement. +URL: https://labs.omniti.com/trac/portableumem/ +Requires: +Libs: -L\${libdir} -lumem_malloc +Cflags: +EOT + %clean rm -rf $RPM_BUILD_ROOT @@ -75,6 +108,8 @@ Summary: Port of Solaris's slab allocator. Group: Development/Libraries +Requires: pkgconfig + %description devel @@ -91,3 +126,4 @@ of Solaris's slab allocator, libumem, to Linux. %{_libdir}/*.so %{_libdir}/*.a %{_mandir}/man*/* +%{_libdir}/pkgconfig/*.pc