summaryrefslogtreecommitdiff
path: root/umem.spec.in
diff options
context:
space:
mode:
authorwez <wez@1665872d-e22b-0410-9e5d-a57ad4215e6d>2007-09-04 14:05:27 +0000
committerwez <wez@1665872d-e22b-0410-9e5d-a57ad4215e6d>2007-09-04 14:05:27 +0000
commit518112b4d0b666457e91d6046dd7873d46081968 (patch)
treeb5c642ae8292eac8513e4ea47fe4f1d2b237e3e8 /umem.spec.in
parentadf85fe36f21d53837101086a78027b4eb14f41a (diff)
downloadportableumem-518112b4d0b666457e91d6046dd7873d46081968.tar.gz
packaging tweaks from Rich
git-svn-id: https://labs.omniti.com/portableumem/trunk@47 1665872d-e22b-0410-9e5d-a57ad4215e6d
Diffstat (limited to 'umem.spec.in')
-rw-r--r--umem.spec.in40
1 files 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<<EOT >$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<<EOT >$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