Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37401028
en ru br
ALT Linux repos
S:2.5.1-alt2
5.0: 2.4.43-alt2
4.1: 2.4.41-alt1
4.0: 2.4.32-alt1.0
3.0: 2.4.15-alt2

Other repositories
Upstream:2.4.41-1

Group :: System/Kernel and hardware
RPM: attr

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# hey Emacs, its -*- mode: rpm-spec; coding: cyrillic-cp1251; -*-
# $Id: attr,v 1.4 2004/05/15 08:04:18 ab Exp $

Name: attr
Version: 2.4.15
Release: alt2

Summary: Utility for managing filesystem extended attributes
License: GPL
Group: System/Kernel and hardware
Url: http://oss.sgi.com/projects/xfs/
Packager: Alexander Bokovoy <ab at altlinux.ru>

Source: %name-%version.src.tar.gz

Requires: lib%name = %version-%release

BuildPreReq: libtool_1.4, rpm-build >= 4.0.4-alt10

%description
A set of tools for manipulating extended attributes on filesystem
objects, in particular getfattr(1) and setfattr(1).
An attr(1) command is also provided which is largely compatible
with the SGI IRIX tool of the same name.

%package -n lib%name
Summary: Main library for lib%name, extended attributes manipulation library
Group: System/Libraries

%description -n lib%name
This package contains the library needed to run programs dynamically
linked with lib%name.

%package -n lib%name-devel
Summary: Extended attribute static libraries and headers
Group: Development/C
Requires: lib%name = %version-%release

%description -n lib%name-devel
This package contains the libraries and header files needed to
develop programs which make use of extended attributes.
For Linux programs, the documented system call API is the
recommended interface, but an SGI IRIX compatibility interface
is also provided.

Currently only ext2, ext3, JFS and XFS support extended attributes.
The SGI IRIX compatibility API built above the Linux system calls is
used by programs such as xfsdump(8), xfsrestore(8) and xfs_fsr(8).

You should install this package if you want to develop programs
which make use of extended attributes.

%package -n lib%name-devel-static
Summary: Extended attribute static libraries and headers
Group: Development/C
Requires: lib%name-devel = %version-%release

%description -n lib%name-devel-static
This package contains the static libraries needed to
develop programs which make use of extended attributes.
This is an *experimental* interface, currently only XFS is
supported, and the interface may change.

You should install this package if you want to develop programs
which make use of extended attributes.

%prep
%setup -q

%build
%set_libtool_version 1.4
export DEBUG="-DNDEBUG"
autoconf
%configure
%make_build

%install
make install install-lib install-dev DIST_ROOT=%buildroot

# Workaround bug in makefiles

%__rm -f %buildroot%_libdir/*.{so,*a}
%__rm -rf %buildroot%_datadir/doc/%name
%__install -p -m644 */.libs/*.a %buildroot%_libdir/

# Relocate shared libraries from %_libdir/ to /%_lib/.

%__mkdir_p %buildroot/%_lib
%__mv %buildroot%_libdir/*.so.* %buildroot/%_lib/
%__chmod 644 %buildroot/%_lib/*
for f in */.libs/*.so; do
t=`objdump -p "$f" |awk '/SONAME/ {print $2}'`
[ -n "$t" ]
%__ln_s -nf ../../%_lib/"$t" "%buildroot%_libdir/${f##*/}"
done

%find_lang %name

%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig

%files -f %name.lang
%doc README doc/CHANGES.gz doc/ea-conv
%_bindir/*
%_mandir/man[15]/*

%files -n lib%name
/%_lib/*.so.*

%files -n lib%name-devel
%_libdir/*.so
%_mandir/man[23]/*
%_includedir/*

%files -n lib%name-devel-static
%_libdir/*.a

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin