Projects
Eulaceura:Factory
python-utmp
_service:obs_scm:python-utmp.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:python-utmp.spec of Package python-utmp
Name: python-utmp Version: 0.9 Release: 1 Summary: Python modules for umtp records License: PSF-2.0 URL: http://kassiopeia.juls.savba.sk/~garabik/software/python-utmp/ Source0: https://github.com/garabik/python-utmp/archive/refs/tags/v%{version}.tar.gz # Need to change the name of the shared library we create, so it is the same as the name # of the module we import, or else Python will not be able to import it. # And use the correct include paths. Patch0: make-build-flags-adjust.patch BuildRequires: make BuildRequires: gcc BuildRequires: pkgconf %global _description %{expand: python-utmp consists of three modules, providing access to utmp records. It is quite difficult to access utmp record portably, because every UNIX has different structure of utmp files. Currently, python-utmp works on platforms which provide getutent, getutid, getutline, pututline, setutent, endutent and utmpname functions (such as GNU systems (Linux and hurd) and System V unices) and on BSD systems using simple utmp structure.} %description %_description %package -n python3-utmp Summary: Python modules for umtp records BuildRequires: python3-devel %{?python_provide:%python_provide python3-utmp} %description -n python3-utmp %_description %prep %autosetup -n %{name}-%{version} -p1 %build %set_build_flags make -f Makefile.glibc \ DEFINES=" \ -D_HAVE_UT_SESSION -D_HAVE_UT_ADDR_V6 -D_HAVE_UT_EXIT \ -D_HAVE_UT_HOST -D_HAVE_UT_ID -D_HAVE_UT_TV -D_HAVE_UT_USER \ -D_HAVE_UTMPNAME -D_HAVE_SETUTENT -D_HAVE_GETUTENT -D_HAVE_ENDUTENT \ -D_HAVE_GETUTID -D_HAVE_GETUTLINE -D_HAVE_PUTUTLINE \ %{optflags}" \ PYTHONPKGVER=3 \ PYTHONVER=%{python3_version} \ PYTHONINCLUDE=/usr/include/python%{python3_version}/ %install make \ PYTHONDIR=%{buildroot}/%{python3_sitearch}/ \ PYTHONVER=%{python3_version} \ install rm -f COPYING install -D -p -m644 debian/copyright COPYING %files -n python3-utmp %license COPYING %doc README TODO %{python3_sitearch}/* %changelog * Fri Sep 2 2022 Han Jinpeng <hanjinpeng@kylinos.cn> - 0.9-1 - Package init
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