libuser/libuser.spec

142 lines
3.9 KiB
RPMSpec
Raw Permalink Normal View History

Name: libuser
2023-07-17 10:14:59 +08:00
Version: 0.64
Release: 2
Summary: A user and group account administration library
License: LGPLv2+
URL: https://pagure.io/libuser
2023-07-17 10:14:59 +08:00
Source: http://releases.pagure.org/libuser/libuser-%{version}.tar.gz
2019-09-30 10:58:42 -04:00
2022-01-17 22:50:43 +08:00
Patch9000: add-sm3-crypt-support.patch
2022-07-28 11:32:55 +08:00
BuildRequires: cyrus-sasl-devel, linuxdoc-tools, pam-devel, popt-devel, gcc
BuildRequires: libselinux-devel, openldap-devel, python3-devel, glib2-devel
2021-12-28 16:51:08 +08:00
BuildRequires: openldap-clients, openldap-servers, openssl
BuildRequires: bison, make, libtool, gettext-devel, gtk-doc, audit-libs-devel
2019-09-30 10:58:42 -04:00
%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
2019-09-30 10:58:42 -04:00
Requires: man, info
%description help
Man pages and other related documents for %{name}
%prep
2021-12-28 16:51:08 +08:00
%autosetup -n libuser-%{version} -p1
2019-09-30 10:58:42 -04:00
%build
2021-12-28 16:51:08 +08:00
./autogen.sh
2019-09-30 10:58:42 -04:00
%configure --with-ldap --with-selinux --with-html-dir=%{_prefix}/share/gtk-doc/html \
PYTHON=%{_bindir}/python3
make %{?_smp_mflags}
2019-09-30 10:58:42 -04:00
%install
make %{?_smp_mflags} install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' || :
2019-09-30 10:58:42 -04:00
%find_lang %{name}
%check
2021-12-28 16:51:08 +08:00
%make_build check || { cat test-suite.log; false; }
2019-09-30 10:58:42 -04:00
2021-12-28 16:51:08 +08:00
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"
2019-09-30 10:58:42 -04:00
%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
2020-10-29 11:06:23 +08:00
%doc python/modules.txt
2019-09-30 10:58:42 -04:00
%{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
2023-07-17 10:14:59 +08:00
* 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
2022-07-28 11:32:55 +08:00
* 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
2022-02-22 11:05:43 +08:00
* Tue Feb 22 2022 jiangheng <jiangheng12@huawei.com> - 0.63-3
- remove nscd dependency
2022-01-17 22:50:43 +08:00
* Mon Jan 17 2022 luhuaxin <luhuaxin1@huawei.com> - 0.63-2
- add sm3 crypt support
2021-12-28 16:51:08 +08:00
* 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
2020-10-29 11:06:23 +08:00
* 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
2020-03-21 15:05:11 +08:00
* Sat Mar 21 2020 chengquan<chengquan3@huawei.com> - 0.62-20
- add necessary BuildRequires
2019-09-30 10:58:42 -04:00
* Tue Sep 10 2019 caomeng<caomeng5@huawei.com> - 0.62-19
- Package init