cleanup the spec file and add spec file for SLE_11
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jemalloc?expand=0&rev=2
This commit is contained in:
parent
d41126f19e
commit
7fe3470fcd
106
jemalloc-SLE_11.spec
Normal file
106
jemalloc-SLE_11.spec
Normal file
@ -0,0 +1,106 @@
|
|||||||
|
#
|
||||||
|
# spec file for package jemalloc
|
||||||
|
#
|
||||||
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
Name: jemalloc
|
||||||
|
Version: 2.2.3
|
||||||
|
Release: 0
|
||||||
|
License: BSD
|
||||||
|
%define lname libjemalloc1
|
||||||
|
Summary: General-purpose scalable concurrent malloc implementation
|
||||||
|
Url: http://canonware.com/jemalloc
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Source: jemalloc-%{version}.tar.bz2
|
||||||
|
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
||||||
|
Patch1: 0001-add-autogenerated-jemalloc.sh-wrapper-script.diff
|
||||||
|
BuildRequires: docbook-xsl-stylesheets
|
||||||
|
BuildRequires: libxslt
|
||||||
|
Requires: %lname = %{version}
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||||
|
|
||||||
|
%description
|
||||||
|
jemalloc is a general-purpose scalable concurrent malloc(3) implementation.
|
||||||
|
This package provides a shell wrapper script to run programs using jemalloc.
|
||||||
|
|
||||||
|
%package -n %lname
|
||||||
|
Summary: General-purpose scalable concurrent malloc implementation
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n %lname
|
||||||
|
General-purpose scalable concurrent malloc(3) implementation.
|
||||||
|
This distribution is the stand-alone "portable" version of jemalloc.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for jemalloc
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Requires: %lname = %{version}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
Headers for jemalloc, general-purpose scalable concurrent malloc(3)
|
||||||
|
implementation.
|
||||||
|
|
||||||
|
%package devel-static
|
||||||
|
Summary: Static libraries for jemalloc
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Requires: %{name}-devel = %{version}
|
||||||
|
|
||||||
|
%description devel-static
|
||||||
|
Static libraries of jemalloc, general-purpose scalable concurrent
|
||||||
|
malloc(3) implementation.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -qn jemalloc-%{version}
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
./autogen.sh;
|
||||||
|
export CFLAGS="%{optflags} -g2";
|
||||||
|
%configure
|
||||||
|
make %{?_smp_mflags};
|
||||||
|
|
||||||
|
%install
|
||||||
|
b=%{buildroot};
|
||||||
|
%makeinstall
|
||||||
|
chmod -x "%{buildroot}/%{_libdir}"/*.a;
|
||||||
|
if [ "%_docdir" != "%{_datadir}/doc" ]; then
|
||||||
|
# stupid Makefile does not allow to set it
|
||||||
|
mkdir -p "$b/%_docdir";
|
||||||
|
mv "$b/%{_datadir}/doc/jemalloc" "$b/%_docdir/%{name}";
|
||||||
|
fi;
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_bindir}/jemalloc.sh
|
||||||
|
%{_bindir}/pprof
|
||||||
|
%{_mandir}/man*/*
|
||||||
|
%_docdir/%{name}
|
||||||
|
|
||||||
|
%files -n %lname
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_libdir}/libjemalloc.so.1*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_includedir}/jemalloc
|
||||||
|
%{_libdir}/libjemalloc.so
|
||||||
|
|
||||||
|
%files devel-static
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_libdir}/libjemalloc*.a
|
||||||
|
|
||||||
|
%post -n %lname -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -n %lname -p /sbin/ldconfig
|
@ -16,17 +16,19 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
Name: jemalloc
|
Name: jemalloc
|
||||||
%define lname libjemalloc1
|
|
||||||
Summary: General-purpose scalable concurrent malloc implementation
|
|
||||||
Group: Development/Libraries/C and C++
|
|
||||||
Version: 2.2.3
|
Version: 2.2.3
|
||||||
Release: 0
|
Release: 0
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: http://canonware.com/jemalloc
|
%define lname libjemalloc1
|
||||||
Source: jemalloc-%version.tar.bz2
|
Summary: General-purpose scalable concurrent malloc implementation
|
||||||
|
Url: http://canonware.com/jemalloc
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Source: jemalloc-%{version}.tar.bz2
|
||||||
|
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
||||||
Patch1: 0001-add-autogenerated-jemalloc.sh-wrapper-script.diff
|
Patch1: 0001-add-autogenerated-jemalloc.sh-wrapper-script.diff
|
||||||
BuildRequires: docbook-xsl-stylesheets, libxslt
|
BuildRequires: docbook-xsl-stylesheets
|
||||||
Requires: %lname = %version
|
BuildRequires: libxslt
|
||||||
|
Requires: %lname = %{version}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
jemalloc is a general-purpose scalable concurrent malloc(3) implementation.
|
jemalloc is a general-purpose scalable concurrent malloc(3) implementation.
|
||||||
@ -43,7 +45,7 @@ This distribution is the stand-alone "portable" version of jemalloc.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for jemalloc
|
Summary: Development files for jemalloc
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %lname = %version
|
Requires: %lname = %{version}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Headers for jemalloc, general-purpose scalable concurrent malloc(3)
|
Headers for jemalloc, general-purpose scalable concurrent malloc(3)
|
||||||
@ -52,51 +54,51 @@ implementation.
|
|||||||
%package devel-static
|
%package devel-static
|
||||||
Summary: Static libraries for jemalloc
|
Summary: Static libraries for jemalloc
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %name-devel = %version
|
Requires: %{name}-devel = %{version}
|
||||||
|
|
||||||
%description devel-static
|
%description devel-static
|
||||||
Static libraries of jemalloc, general-purpose scalable concurrent
|
Static libraries of jemalloc, general-purpose scalable concurrent
|
||||||
malloc(3) implementation.
|
malloc(3) implementation.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -qn jemalloc-%version
|
%setup -qn jemalloc-%{version}
|
||||||
%patch -P 1 -p1
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
./autogen.sh;
|
./autogen.sh;
|
||||||
export CFLAGS="%optflags -g2";
|
export CFLAGS="%{optflags} -g2";
|
||||||
%configure
|
%configure
|
||||||
make %{?_smp_mflags};
|
make %{?_smp_mflags};
|
||||||
|
|
||||||
%install
|
%install
|
||||||
b="%buildroot";
|
b=%{buildroot};
|
||||||
%make_install
|
%make_install
|
||||||
chmod -x "%buildroot/%_libdir"/*.a;
|
chmod -x "%{buildroot}/%{_libdir}"/*.a;
|
||||||
if [ "%_docdir" != "%_datadir/doc" ]; then
|
if [ "%_docdir" != "%{_datadir}/doc" ]; then
|
||||||
# stupid Makefile does not allow to set it
|
# stupid Makefile does not allow to set it
|
||||||
mkdir -p "$b/%_docdir";
|
mkdir -p "$b/%_docdir";
|
||||||
mv "$b/%_datadir/doc/jemalloc" "$b/%_docdir/%name";
|
mv "$b/%{_datadir}/doc/jemalloc" "$b/%_docdir/%{name}";
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%_bindir/jemalloc.sh
|
%{_bindir}/jemalloc.sh
|
||||||
%_bindir/pprof
|
%{_bindir}/pprof
|
||||||
%_mandir/man*/*
|
%{_mandir}/man*/*
|
||||||
%_docdir/%name
|
%_docdir/%{name}
|
||||||
|
|
||||||
%files -n %lname
|
%files -n %lname
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%_libdir/libjemalloc.so.1*
|
%{_libdir}/libjemalloc.so.1*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%_includedir/jemalloc
|
%{_includedir}/jemalloc
|
||||||
%_libdir/libjemalloc.so
|
%{_libdir}/libjemalloc.so
|
||||||
|
|
||||||
%files devel-static
|
%files devel-static
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%_libdir/libjemalloc*.a
|
%{_libdir}/libjemalloc*.a
|
||||||
|
|
||||||
%post -n %lname -p /sbin/ldconfig
|
%post -n %lname -p /sbin/ldconfig
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user