mirror of
https://github.com/YellowJacketLinux/LFS.git
synced 2025-02-02 23:07:14 +08:00
update yjl-sysusers
This commit is contained in:
parent
60a5c4ccd6
commit
88f0c51d80
@ -89,7 +89,7 @@ touch %{buildroot}%{_sharedstatedir}/plocate/plocate.db
|
|||||||
|
|
||||||
%pre
|
%pre
|
||||||
%if 0%{?_yjl_sysusers:1} == 1
|
%if 0%{?_yjl_sysusers:1} == 1
|
||||||
%{_yjl_sysusers} --useradd False plocate
|
%{_yjl_sysusers} --onlygroup plocate
|
||||||
%else
|
%else
|
||||||
getent group plocate >/dev/null 2>&1 ||groupadd -r plocate
|
getent group plocate >/dev/null 2>&1 ||groupadd -r plocate
|
||||||
%endif
|
%endif
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
%global gitv 0.1.0
|
%global gitv 0.1.5
|
||||||
|
|
||||||
Name: yjl-sysusers
|
Name: yjl-sysusers
|
||||||
Version: %{gitv}
|
Version: %{gitv}
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: utility for adding system groups and users
|
Summary: utility for adding system groups and users
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
Group: System Administration/Utilities
|
Group: System Administration/Utilities
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/YellowJacketLinux/%{name}
|
URL: https://github.com/YellowJacketLinux/%{name}
|
||||||
Source0: https://github.com/YellowJacketLinux/%{name}/archive/refs/tags/v0.1.0.tar.gz
|
Source0: https://github.com/YellowJacketLinux/%{name}/archive/refs/tags/v%{gitv}.tar.gz
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
Requires: python3
|
Requires: python3
|
||||||
@ -28,26 +28,39 @@ yjl-sysusers was developed with RPM package scriptlets in mind.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
# set shebang to full path
|
||||||
|
sed -i 's?/usr/bin/env python3?%{python3}?' functions.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# If a distribution specific JSON exists in contrib, then
|
# If a distribution specific JSON exists in contrib, then
|
||||||
# cat contrib/whatever.json > yjl-sysusers.json
|
# cat contrib/whatever.json > yjl-sysusers.json
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install PYTHON=%{python3} RPMMACRODIR=%{_rpmmacrodir} DESTDIR=%{buildroot}
|
PYTHON=%{python3} RPMMACRODIR=%{_rpmmacrodir} DESTDIR=%{buildroot} \
|
||||||
|
make install-rpm
|
||||||
|
# Adjust README.md for %%doc
|
||||||
|
sed -i '/For installation instructions/d' README.md
|
||||||
|
sed -i '/justsayno.jpg/d' README.md
|
||||||
|
sed -i '5d' README.md
|
||||||
|
sed -i 's?docs/yjl?yjl?g' README.md
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%attr(0750,root,root) %{_sbindir}/yjl-sysusers
|
%attr(0750,root,root) %{_sbindir}/yjl-sysusers
|
||||||
%dir %{_datadir}/yjl-sysusers
|
%dir %{_datadir}/yjl-sysusers
|
||||||
%attr(0444,root,root) %{_datadir}/yjl-sysusers/yjl-sysusers.json
|
%attr(0644,root,root) %{_datadir}/yjl-sysusers/yjl-sysusers.json
|
||||||
%attr(0644,root,root) %{_rpmmacrodir}/macros.yjl-sysusers
|
%attr(0644,root,root) %{_rpmmacrodir}/macros.yjl-sysusers
|
||||||
%attr(0644,root,root) %{_mandir}/man5/yjl-sysusers.json.5*
|
%attr(0644,root,root) %{_mandir}/man5/yjl-sysusers.json.5*
|
||||||
%attr(0644,root,root) %{_mandir}/man8/yjl-sysusers.8*
|
%attr(0644,root,root) %{_mandir}/man8/yjl-sysusers.8*
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc CHARITYWARE.md LICENSE README.md TODO.md YJL-Notes.md yjl-sysusers.json
|
%doc CHARITYWARE.md LICENSE README.md yjl-sysusers.json
|
||||||
|
%doc docs/yjl-sysusers.json.5.md docs/yjl-sysusers.8.md
|
||||||
|
%doc YJL-Notes.md
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Sun May 28 2023 Michael A. Peters <anymouseprophet@gmail.com> - 0.1.0-1
|
* Fri Jun 02 2023 Michael A. Peters <anymouseprophet@gmail.com> - 0.1.5-1
|
||||||
- Initial reference spec file
|
- Update to 0.1.5
|
||||||
|
|
||||||
|
* Sun May 28 2023 Michael A. Peters <anymouseprophet@gmail.com> - 0.1.0-1
|
||||||
|
- Reference spec file
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user