~ubuntu-branches/ubuntu/quantal/zfs-fuse/quantal

« back to all changes in this revision

Viewing changes to src/lib/libumem/umem.spec.in

  • Committer: Bazaar Package Importer
  • Author(s): Mike Hommey, Mike Hommey, Seth Heeren
  • Date: 2010-06-30 18:03:52 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20100630180352-d3jq25ytbcl23q3y
Tags: 0.6.9-1
* New upstream release.

[ Mike Hommey ]
* debian/control:
  - Build depend on libssl-dev and libattr1-dev, now required to build.
  - Build depend on docbook-xml to avoid xsltproc I/O error loading
    docbook DTD.
  - Add suggestions for a NFS server and kpartx.
* debian/man/*, debian/copyright, debian/rules: Remove manual pages, they
  are now shipped upstream.
* debian/copyright: Change download link.
* src/SConstruct:
  - Add an optim option to the build system.
  - Add support for DESTDIR.
  - Force debug=1 to mean optim, no strip, no debug.
  - Use -ffunction-sections, -fdata-sections, and --gc-sections flags to
    reduce the binary sizes.
* src/lib/libumem/SConscript: Cleanup src/lib/libumem when cleaning up
  build directory.
* src/cmd/*/SConscript: Don't link zfs, zpool and zdb against libssl.
* src/lib/libumem/SConscript: Only build static libumem.
* src/lib/libumem/sol_compat.h:
  - Add atomic cas support for sparc.
  - Use atomic functions from libsolcompat in libumem on unsupported
    platforms.
* debian/rules:
  - Set optimization level in build system according to DEB_BUILD_OPTIONS.
  - Build with debug=1 to have unstripped binaries ; dh_strip will do the
    right thing.
  - Don't depend on the local location of the docbook XSLT stylesheets.
    Use the catalogged url in place of the full path.
  - Don't clean src/.sconsign.dblite and src/path.pyc.
  - Set all destination directories when installing with scons.
  - Install bash completion and zfsrc files.
  - Don't use scons cache when building.
* debian/prerm: Remove /var/lib/zfs/zpool.cache in prerm.
* debian/dirs: Create /etc/bash_completion.d.
* debian/watch: Fix watch file.
* debian/rules, debian/control, debian/compat: Switch to dh.
* debian/README.Debian: Update README.Debian.
* debian/zfs-fuse.man.xml: Update zfs-fuse manual page.
* debian/zfs-fuse.init: Start sharing datasets marked as such at daemon
  startup.
* debian/rules, debian/control: Use config.guess and config.sub from
  autotools-dev.

[ Seth Heeren ]
* debian/zfs-fuse.man.xml:
  Added notes on the precedence, zfsrc, commandline, initscript vs.
  /etc/default/zfs-fuse on some systems.
* debian/zfs-fuse.init, debian/zfs-fuse.default: Deprecating DAEMON_OPTS.
* debian/zfs-fuse.init:
  - Removing import -a -f.
  - Removing the now unnecessary 'sleep 2'.
  - Extended shutdown wait to allow for zfs-fuse daemon's own shutdown
    timeouts.
  - Re-ordered dubious PATH setting.
* debian/zfs-fuse.init: Move existing zpool.cache to new location if
  possible.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Name:           @PACKAGE_NAME@
 
2
Version:        @PACKAGE_VERSION@
 
3
Release:        2%{?dist}
 
4
Summary:        Port of Solaris's slab allocator.
 
5
 
 
6
Group:          System Environment/Libraries
 
7
License:        CDDL
 
8
URL:            https://labs.omniti.com/trac/portableumem/
 
9
Source0:        %{name}-%{version}.tar.bz2
 
10
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
11
 
 
12
BuildRequires:  autoconf >= 2.50
 
13
BuildRequires:  automake >= 1.4
 
14
BuildRequires:  libtool >= 1.4.2
 
15
BuildRequires:  doxygen
 
16
BuildRequires:  gcc
 
17
BuildRequires:  binutils
 
18
BuildRequires:  make
 
19
BuildRequires:  mktemp
 
20
 
 
21
 
 
22
%description
 
23
This a port of Solaris's slab allocator, libumem, to Linux.
 
24
 
 
25
"A slab allocator is a cache management structure for efficient use
 
26
of [...] memory. [...] It is targeted for use of many small pieces
 
27
of memory chunks. By managing small memory chunks in the units
 
28
called slabs, this mechanism enables lower fragmentation, fast allocation,
 
29
and reclaming memory." (Description sourced from Wikipedia.)
 
30
 
 
31
 
 
32
%prep
 
33
%setup -q
 
34
 
 
35
 
 
36
%build
 
37
%configure
 
38
%{__make}
 
39
%{__make} check
 
40
%{__make} html
 
41
 
 
42
 
 
43
%install
 
44
rm -rf $RPM_BUILD_ROOT
 
45
%makeinstall
 
46
 
 
47
# Remove the libtool files -- we don't want them.
 
48
find $RPM_BUILD_ROOT%{_libdir} -name '*.la' | xargs rm -fv
 
49
 
 
50
# Remove the symlink to the SONAME. Let ldconfig manage that.
 
51
rm -fv $RPM_BUILD_ROOT%{_libdir}/*.so.[0-9]
 
52
 
 
53
# Build the pkgconfig configurations.
 
54
mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkgconfig
 
55
 
 
56
cat<<EOT >$RPM_BUILD_ROOT%{_libdir}/pkgconfig/%{name}-%{version}.pc
 
57
prefix=%{_prefix}
 
58
exec_prefix=%{_exec_prefix}
 
59
libdir=%{_libdir}
 
60
includedir=%{_includedir}
 
61
 
 
62
Name: %{name}
 
63
Version: %{version}
 
64
Description: Port of Solaris's slab allocator.
 
65
URL: https://labs.omniti.com/trac/portableumem/
 
66
Requires:
 
67
Libs: -L\${libdir} -lumem
 
68
Cflags:
 
69
EOT
 
70
 
 
71
cat<<EOT >$RPM_BUILD_ROOT%{_libdir}/pkgconfig/%{name}-malloc-%{version}.pc
 
72
prefix=%{_prefix}
 
73
exec_prefix=%{_exec_prefix}
 
74
libdir=%{_libdir}
 
75
includedir=%{_includedir}
 
76
 
 
77
Name: %{name}
 
78
Version: %{version}
 
79
Description: Port of Solaris's slab allocator. Libc malloc replacement.
 
80
URL: https://labs.omniti.com/trac/portableumem/
 
81
Requires:
 
82
Libs: -L\${libdir} -lumem_malloc
 
83
Cflags:
 
84
EOT
 
85
 
 
86
 
 
87
%clean
 
88
rm -rf $RPM_BUILD_ROOT
 
89
 
 
90
 
 
91
%pre
 
92
/sbin/ldconfig
 
93
 
 
94
 
 
95
%post
 
96
/sbin/ldconfig
 
97
 
 
98
 
 
99
%files
 
100
%defattr(-,root,root,-)
 
101
%doc AUTHORS COPYING COPYRIGHT INSTALL NEWS OPENSOLARIS.LICENSE README
 
102
%{_libdir}/*.so.*
 
103
 
 
104
 
 
105
%package devel
 
106
 
 
107
Summary: Port of Solaris's slab allocator.
 
108
 
 
109
Group: Development/Libraries
 
110
 
 
111
Requires: pkgconfig
 
112
 
 
113
 
 
114
%description devel
 
115
 
 
116
This contains the libraries and header files for using this port
 
117
of Solaris's slab allocator, libumem, to Linux.
 
118
 
 
119
 
 
120
%files devel
 
121
%defattr(-,root,root,-)
 
122
%doc AUTHORS COPYING COPYRIGHT INSTALL NEWS OPENSOLARIS.LICENSE README TODO
 
123
%doc docs/html
 
124
%{_includedir}/*.h
 
125
%{_includedir}/sys/*.h
 
126
%{_libdir}/*.so
 
127
%{_libdir}/*.a
 
128
%{_mandir}/man*/*
 
129
%{_libdir}/pkgconfig/*.pc