libuser/libuser.spec
fly_fzc ae295dc5e7 Added 'Buildarch: noarch' to the help subpackage
(cherry picked from commit 201964df2dc1bfbe7699ec16c51b1e0fe875140b)
2024-04-29 17:30:55 +08:00

142 lines
3.9 KiB
RPMSpec

Name: libuser
Version: 0.64
Release: 2
Summary: A user and group account administration library
License: LGPLv2+
URL: https://pagure.io/libuser
Source: http://releases.pagure.org/libuser/libuser-%{version}.tar.gz
Patch9000: add-sm3-crypt-support.patch
BuildRequires: cyrus-sasl-devel, linuxdoc-tools, pam-devel, popt-devel, gcc
BuildRequires: libselinux-devel, openldap-devel, python3-devel, glib2-devel
BuildRequires: openldap-clients, openldap-servers, openssl
BuildRequires: bison, make, libtool, gettext-devel, gtk-doc, audit-libs-devel
%description
The libuser library implements a standardized interface for manipulating
and administering user and group accounts. The library uses pluggable
back-ends to interface to its data sources. Sample applications modeled
after those included with the shadow password suite are included.
%package devel
Summary: Development libraries and files for %{name}
Requires: glib2-devel%{?_isa}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The package contains lib and header files for developing application
that use %{name}
%package python3
Summary: the libuser library used for binding Python 3
Requires: libuser%{?_isa} = %{version}-%{release}
%description python3
The libuser library which provides a Python 3 API implements a
standardized interface for manipulating and administering user
and group accounts.
%package help
Summary: Documents files for %{name}
Buildarch: noarch
Requires: man, info
%description help
Man pages and other related documents for %{name}
%prep
%autosetup -n libuser-%{version} -p1
%build
./autogen.sh
%configure --with-ldap --with-selinux --with-html-dir=%{_prefix}/share/gtk-doc/html \
PYTHON=%{_bindir}/python3
make %{?_smp_mflags}
%install
make %{?_smp_mflags} install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' || :
%find_lang %{name}
%check
%make_build check || { cat test-suite.log; false; }
LD_LIBRARY_PATH=$RPM_BUILD_ROOT/%{_prefix}/%{_lib}:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH
cd $RPM_BUILD_ROOT/%{python3_sitearch}
python3 -c "import libuser"
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files -f %{name}.lang
%{!?_licensedir:%global license %%doc}
%license COPYING
%doc AUTHORS NEWS README TODO docs/*.txt
%config(noreplace) %{_sysconfdir}/libuser.conf
%attr(0755,root,root) %{_exec_prefix}/bin/*
%{_prefix}/%{_lib}/%{name}/*.so
%{_prefix}/%{_lib}/*.so.*
%dir %{_prefix}/%{_lib}/%{name}
%attr(0755,root,root) %{_exec_prefix}/sbin/*
%exclude %{_prefix}/%{_lib}/%{name}/*.la
%exclude %{_prefix}/%{_lib}/*.la
%files python3
%doc python/modules.txt
%{python3_sitearch}/*.so
%exclude %{python3_sitearch}/*.la
%files devel
%{_exec_prefix}/%{_lib}/*.so
%{_exec_prefix}/%{_lib}/pkgconfig/*
%{_includedir}/libuser
%files help
%{_mandir}/man1/*
%{_mandir}/man5/*
%changelog
* Mon Apr 29 2024 fuanan <fuanan3@h-partners.com> - 0.64-2
- Added 'Buildarch: noarch' to the help subpackage
* Mon Jul 17 2023 fuanan <fuanan3@h-partners.com> - 0.64-1
- update version to 0.64
* Wed Oct 19 2022 fuanan <fuanan3@h-partners.com> - 0.63-5
- DESC:optimize compilation by running make in parallel
* Thu Jul 28 2022 fuanan <fuanan3@h-partners.com> - 0.63-4
- Type:requirements
- ID:NA
- SUG:NA
- DESC:Bump release and Minor revise format
* Tue Feb 22 2022 jiangheng <jiangheng12@huawei.com> - 0.63-3
- remove nscd dependency
* Mon Jan 17 2022 luhuaxin <luhuaxin1@huawei.com> - 0.63-2
- add sm3 crypt support
* Tue Dec 28 2021 fuanan <fuanan3@huawei.com> - 0.63-1
- update version to 0.63
* Tue Jul 20 2021 fuanan <fuanan3@huawei.com> - 0.62-23
- Remove redundant gdb from BuildRequires
* Thu Oct 29 2020 wangchen <wangchen137@huawei.com> - 0.62-22
- remove python2
* Thu Jul 30 2020 zhangxingliang <zhangxingliang3@huawei.com> - 0.62-21
- do not use deprecated flask.h and av_permissions.h
* Sat Mar 21 2020 chengquan<chengquan3@huawei.com> - 0.62-20
- add necessary BuildRequires
* Tue Sep 10 2019 caomeng<caomeng5@huawei.com> - 0.62-19
- Package init