Projects
home:pandora:RobinOS23
attr
_service:download_src_package:attr.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:download_src_package:attr.spec of Package attr
%define anolis_release 2 Name: attr Version: 2.5.1 Release: %{anolis_release}%{?dist} Summary: Utilities for managing filesystem extended attributes License: GPLv2+ URL: https://savannah.nongnu.org/projects/attr Source0: https://download-mirror.savannah.gnu.org/releases/attr/attr-%{version}.tar.xz BuildRequires: gettext BuildRequires: libtool BuildRequires: make BuildRequires: perl(FileHandle) Requires: libattr = %{version}-%{release} %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 doc Summary: Documentation files for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc The %{name}-doc package contains documentation files for %{name}. %package -n libattr Summary: Dynamic library for extended attribute support License: LGPLv2+ %description -n libattr This package contains the libattr.so dynamic library which contains the extended attribute system calls and library functions. %package -n libattr-devel Summary: Files needed for building programs with libattr License: LGPLv2+ Requires: libattr = %{version}-%{release} # for <sys/xattr.h> which <attr/xattr.h> is symlinked to Requires: glibc-headers # provides {,f,l}{get,list,remove,set}xattr.2 man pages Recommends: man-pages %description -n libattr-devel This package contains header files and documentation 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, ext4 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 libattr-devel if you want to develop programs which make use of extended attributes. If you install libattr-devel, you'll also want to install attr. %prep %autosetup -p1 %build %configure %make_build %check if ./setfattr -n user.name -v value .; then make check || exit $? else echo '*** xattrs are probably not supported by the file system,' \ 'the test-suite will NOT run ***' fi %install %make_install # remove libattr.a and libattr.la find %{buildroot}%{_libdir} -maxdepth 1 -type f \ \( -name "*.a" -or -name '*.la' \) -delete -print # handle docs on our own rm -rf %{buildroot}/%{_datadir}/doc/%{name} # only RH/Fedora use such hack (RHBZ #1601482), uncomment in case user need it # ln -fs ../sys/xattr.h %{buildroot}%{_includedir}/attr/xattr.h %find_lang %{name} %files -f %{name}.lang %license doc/COPYING* %{_bindir}/attr %{_bindir}/getfattr %{_bindir}/setfattr %{_mandir}/man1/attr.1* %{_mandir}/man1/getfattr.1* %{_mandir}/man1/setfattr.1* %files doc %doc doc/CHANGES %files -n libattr-devel %{_libdir}/libattr.so %{_libdir}/pkgconfig/*.pc %{_includedir}/attr %{_mandir}/man3/attr_*.3.* %files -n libattr %{_libdir}/libattr.so.* %config(noreplace) %{_sysconfdir}/xattr.conf %changelog * Sun Oct 09 2022 mgb01105731 <mgb01105731@alibaba-inc.com> - 2.5.1-2 - add doc package * Thu Mar 03 2022 Su Lifan <su-lifan@linux.alibaba.com> - 2.5.1-1 - Initial packaging for Anolis OS 23
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2