代码拉取完成,页面将自动刷新
%define lname libattr1
Name: attr
Version: 2.5.2
Release: 1
Summary: Commands for Manipulating Extended Attributes
License: GPL-2.0-or-later AND LGPL-2.1-or-later
Group: System/Filesystems
URL: https://savannah.nongnu.org/projects/attr/
Source: https://download-mirror.savannah.gnu.org/releases/attr/attr-%{version}.tar.gz
Patch1: 0001-bypass-wrong-output-when-enabled-selinux.patch
Patch2: 0002-dont-skip-security.evm-when-copy-xattr.patch
BuildRequires: pkgconfig
Conflicts: xfsdump < 2.0.0
%description
A set of tools for manipulating extended attributes on file system
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 %{lname}
Summary: A dynamic library for filesystem extended attribute support
Group: System/Libraries
Obsoletes: libattr < %{version}-%{release}
Provides: libattr = %{version}-%{release}
%description -n %{lname}
This package contains the libattr.so dynamic library, which contains
the extended attribute library functions.
%package -n libattr-devel
Summary: Header files for libattr
Group: Development/Libraries/C and C++
Requires: %{lname} = %{version}
Requires: glibc-devel
Provides: attr-devel = %{version}-%{release}
Obsoletes: attr-devel < %{version}-%{release}
%description -n libattr-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.
%package -n libattr-devel-static
Summary: Static libraries for libattr development
Group: Development/Libraries/C and C++
Requires: libattr-devel = %{version}
Provides: libattr-devel:%{_libdir}/libattr.a
%description -n libattr-devel-static
This package contains the static library of libattr which is needed for
staticallly linking to programs that make use of extended attributes.
%prep
%autosetup -p1
%build
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
%configure \
--enable-static \
--disable-silent-rules
%make_build
%install
%make_install
# remove libtool archives
find %{buildroot} -type f -name "*.la" -delete -print
# handle docs on our own
rm -rf %{buildroot}/%{_datadir}/doc/%{name}
%find_lang %{name}
%check
%make_build check
%ldconfig_scriptlets -n %{lname}
%files -f %{name}.lang
%license doc/COPYING*
%doc doc/CHANGES
%{_mandir}/man1/*.1*
%{_bindir}/attr
%{_bindir}/getfattr
%{_bindir}/setfattr
%files -n %{lname}
%license doc/COPYING*
%{_libdir}/libattr.so.1*
%config %{_sysconfdir}/xattr.conf
%files -n libattr-devel
%license doc/COPYING*
%{_includedir}/attr/
%{_libdir}/pkgconfig/libattr.pc
%{_libdir}/libattr.so
%{_mandir}/man3/*.3*
%files -n libattr-devel-static
%license doc/COPYING*
%{_libdir}/libattr.a
%changelog
* Sat Dec 28 2024 Eustace <eusteuc@outlook.com> - 2.5.2-1
- update to 2.5.2
* Tue Jul 30 2024 wangmian <wangmian19@h-partners.com> - 2.5.1-5
- fix stale attr(5) references
* Mon Dec 26 2022 tangyuchen <tangyuchen5@huawei.com> - 2.5.1-4
- fix redundant spec code
* Sat Oct 29 2022 wangzhiqiang <wangzhiqiang95@huawei.com> - 2.5.1-3
- fix compile warning
* Mon Jan 24 2022 volcanodragon <linfeilong@huawei.com> - 2.5.1-2
- dont skip security.evm copy for ima
* Tue Nov 16 2021 Wenchao Hao <haowenchao@huawei.com> - 2.5.1-1
- Update to attr-2.5.1
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 2.4.48-14
- DESC: delete -Sgit from %autosetup, and delete BuildRequires git
* Fri Jul 23 2021 zhouwenpei <zhouwenpei1@huawei.com> - 2.4.48-13
- remove useless buildrequires
* Wed Sep 2 2020 Anakin Zhang <benjamin93@163.com> - 2.4.48-12
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: carry security.evm when copying files
* Sun Jul 12 2020 Zhiqiang Liu <liuzhiqiang26@huawei.com> - 2.4.48-11
- backport upstream bugfix patches
* Wed Jun 29 2020 Markeryang <yanglongkang@163.com> - 2.4.48-10
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: make check add judgment condition
* Mon Jun 29 2020 Zhiqiang Liu <lzhq28@mail.ustc.edu.cn> - 2.4.48-9
- Type:enhancement
- ID:NA
- SUG:NA
- DESC: renumber patches
* Fri Mar 20 2020 hy-euler <eulerstoragemt@huawei.com> - 2.4.48-8
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: the building requires the gdb
* Mon Mar 16 2020 Shijie Luo<luoshijie1@huawei.com> - 2.4.48-7
- Type:bugfix
- ID:NA
- SUG:restart
- DESC:fix error condition of while loop
in 0001-bypass-wrong-output-when-enabled-selinux.patch.
* Mon Mar 16 2020 Shijie Luo<luoshijie1@huawei.com> - 2.4.48-6
- Type:bugfix
- ID:NA
- SUG:restart
- DESC:add patch to bypass selinux messages.
* Fri Aug 30 2019 zoujing<zoujing13@huawei.com> - 2.4.48-5
- Type:enhancemnet
- ID:NA
- SUG:restart
- DESCi:openEuler Debranding
* Tue Aug 20 2019 zoujing<zoujing13@huawei.com> - 2.4.48-4
- Type:enhancemnet
- ID:NA
- SUG:NA
- DESCi:openEuler Debranding
* Tue Aug 20 2019 luoshijie<luoshijie1@huawei.com> - 2.4.48-2.3
- Type:bugfix
- ID:NA
- SUG:restart
- DESC:rename patch name
* Wed Jun 12 2019 gulining<gulining1@huawei.com> - 2.4.48-2.2
- Type:bugfix
- ID:NA
- SUG:restart
- DESC:remove rpath
* Wed Apr 24 2019 tianhang<tianhang1@huawei.com>- 2.4.48-2.1
- Type:bugfix
- ID:NA
- SUG:restart
- DESC:Switch back to syscall
* Mon Apr 15 2019 Buildteam <buildteam@openeuler.org> - 2.4.48-2
- Package Initialization
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。