2024-01-06 06:54:46 +01:00
|
|
|
%define usecache 0
|
|
|
|
%define cache /var/cache/man
|
2024-01-06 06:54:46 +01:00
|
|
|
%define man_uid 21
|
2024-01-06 06:54:46 +01:00
|
|
|
%define man_gid 21
|
|
|
|
|
|
|
|
Name: man-db
|
2024-01-06 06:54:47 +01:00
|
|
|
Version: 2.11.1
|
2024-01-06 06:54:46 +01:00
|
|
|
Release: 1mamba
|
2024-01-06 06:54:46 +01:00
|
|
|
Summary: A set of documentation tools: man, apropos and whatis
|
|
|
|
Group: System/Tools
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Davide Madrisan <davide.madrisan@gmail.com>
|
2024-01-06 06:54:47 +01:00
|
|
|
URL: https://man-db.gitlab.io/man-db/
|
2024-01-06 06:54:46 +01:00
|
|
|
Source: http://download.savannah.gnu.org/releases/man-db/man-db-%{version}.tar.xz
|
|
|
|
License: GPL
|
|
|
|
Obsoletes: man
|
|
|
|
Provides: man
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libgdbm-devel
|
|
|
|
BuildRequires: libpipeline-devel
|
2024-01-06 06:54:46 +01:00
|
|
|
BuildRequires: libseccomp-devel
|
2024-01-06 06:54:46 +01:00
|
|
|
BuildRequires: libz-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
Requires: groff
|
|
|
|
Requires: less
|
|
|
|
Requires: gzip
|
|
|
|
Requires: bzip2
|
|
|
|
Requires: xz
|
|
|
|
Requires: ncompress
|
|
|
|
|
|
|
|
%description
|
|
|
|
The man package includes three tools for finding information and/or documentation about your Linux system.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
|
|
|
--with-device=latin1 \
|
|
|
|
--enable-mb-groff \
|
|
|
|
--with-bzip2=bzip2 \
|
|
|
|
--with-compress=compress \
|
|
|
|
--with-gzip=gzip \
|
|
|
|
--with-lzma=xz \
|
|
|
|
--with-sections='1 1p 2 3 3p 4 4x 5 6 7 8 9 m n 0p'
|
|
|
|
# --with-browser=
|
|
|
|
|
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-06 06:54:46 +01:00
|
|
|
%makeinstall man_owner=`id -u`
|
2024-01-06 06:54:46 +01:00
|
|
|
|
|
|
|
install -d %{buildroot}%{cache}/{local,X11R6}
|
|
|
|
for i in 1 2 3 4 5 6 7 8 9 n; do
|
|
|
|
install -d %{buildroot}%{cache}/cat$i
|
|
|
|
install -d %{buildroot}%{cache}/local/cat$i
|
|
|
|
install -d %{buildroot}%{cache}/X11R6/cat$i
|
|
|
|
done
|
|
|
|
|
2024-01-06 06:54:46 +01:00
|
|
|
%find_lang %{name} --all-name --with-man
|
2024-01-06 06:54:46 +01:00
|
|
|
|
|
|
|
rm -f %{buildroot}%{_docdir}/man-db/man-db-manual.*
|
|
|
|
rm -f %{buildroot}%{_bindir}/zsoelim
|
|
|
|
rm -f %{buildroot}%{_mandir}/man1/zsoelim.*
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%pre
|
|
|
|
/usr/sbin/groupadd -g %{man_gid} man 2>/dev/null || :
|
2024-01-06 06:54:46 +01:00
|
|
|
/usr/sbin/useradd -u %{man_uid} -g %{man_gid} -s /bin/false -r -d %{cache} \
|
|
|
|
-c "man cache" man >/dev/null 2>&1 || :
|
2024-01-06 06:54:46 +01:00
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
rm -f %{cache}/cat[123456789n]/* 2>/dev/null
|
|
|
|
rm -f %{cache}/local/cat[123456789n]/* 2>/dev/null
|
|
|
|
rm -f %{cache}/X11R6/cat[123456789n]/* 2>/dev/null
|
|
|
|
rm -f %{cache}/whatis 2>/dev/null
|
|
|
|
/usr/sbin/groupdel man 2>/dev/null
|
2024-01-06 06:54:46 +01:00
|
|
|
/usr/sbin/userdel man 2>/dev/null
|
2024-01-06 06:54:46 +01:00
|
|
|
fi
|
|
|
|
exit 0
|
|
|
|
|
2024-01-06 06:54:46 +01:00
|
|
|
%post
|
|
|
|
if [ $1 -ge 1 ]; then
|
|
|
|
%tmpfiles_create %{name}
|
|
|
|
fi
|
|
|
|
:
|
|
|
|
|
2024-01-06 06:54:46 +01:00
|
|
|
%files -f %{name}.lang
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_sysconfdir}/man_db.conf
|
|
|
|
%if %{usecache}
|
|
|
|
%attr(2755,root,man) %{_bindir}/man
|
|
|
|
%else
|
|
|
|
%attr(0755,root,root) %{_bindir}/man
|
|
|
|
%endif
|
|
|
|
%{_bindir}/apropos
|
|
|
|
%{_bindir}/catman
|
|
|
|
%{_bindir}/lexgrog
|
|
|
|
%{_bindir}/mandb
|
|
|
|
%{_bindir}/manpath
|
2024-01-06 06:54:47 +01:00
|
|
|
%{_bindir}/man-recode
|
2024-01-06 06:54:46 +01:00
|
|
|
%{_bindir}/whatis
|
|
|
|
%{_sbindir}/accessdb
|
2024-01-06 06:54:46 +01:00
|
|
|
%{_tmpfilesdir}/man-db.conf
|
|
|
|
%{_unitdir}/man-db.service
|
|
|
|
%{_unitdir}/man-db.timer
|
2024-01-06 06:54:46 +01:00
|
|
|
%{_libdir}/man-db/libman*
|
|
|
|
%dir %{_libexecdir}/man-db
|
|
|
|
%{_libexecdir}/man-db/globbing
|
|
|
|
%{_libexecdir}/man-db/manconv
|
2024-01-06 06:54:46 +01:00
|
|
|
%{_libexecdir}/man-db/zsoelim
|
2024-01-06 06:54:46 +01:00
|
|
|
%{_mandir}/man1/apropos.*
|
|
|
|
%{_mandir}/man1/lexgrog.*
|
|
|
|
%{_mandir}/man1/man.*
|
|
|
|
%{_mandir}/man1/manconv.*
|
|
|
|
%{_mandir}/man1/manpath.*
|
2024-01-06 06:54:47 +01:00
|
|
|
%{_mandir}/man1/man-recode.1*
|
2024-01-06 06:54:46 +01:00
|
|
|
%{_mandir}/man1/whatis.*
|
|
|
|
%{_mandir}/man5/manpath.*
|
|
|
|
%{_mandir}/man8/accessdb.*
|
|
|
|
%{_mandir}/man8/catman.*
|
|
|
|
%{_mandir}/man8/mandb.*
|
|
|
|
#%doc ChangeLog NEWS README
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 06:54:47 +01:00
|
|
|
* Wed Nov 16 2022 Automatic Build System <autodist@mambasoft.it> 2.11.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:54:47 +01:00
|
|
|
* Sun Oct 16 2022 Automatic Build System <autodist@mambasoft.it> 2.11.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:54:47 +01:00
|
|
|
* Fri Mar 18 2022 Automatic Build System <autodist@mambasoft.it> 2.10.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:54:47 +01:00
|
|
|
* Thu Feb 10 2022 Automatic Build System <autodist@mambasoft.it> 2.10.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:54:47 +01:00
|
|
|
* Sat Feb 05 2022 Automatic Build System <autodist@mambasoft.it> 2.10.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:54:47 +01:00
|
|
|
* Wed Feb 10 2021 Automatic Build System <autodist@mambasoft.it> 2.9.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:54:47 +01:00
|
|
|
* Wed Jun 24 2020 Automatic Build System <autodist@mambasoft.it> 2.9.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:54:47 +01:00
|
|
|
* Wed Jun 03 2020 Automatic Build System <autodist@mambasoft.it> 2.9.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:54:47 +01:00
|
|
|
* Wed Feb 26 2020 Automatic Build System <autodist@mambasoft.it> 2.9.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:54:47 +01:00
|
|
|
* Sun Oct 27 2019 Automatic Build System <autodist@mambasoft.it> 2.9.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:54:46 +01:00
|
|
|
* Fri Aug 30 2019 Automatic Build System <autodist@mambasoft.it> 2.8.7-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:54:46 +01:00
|
|
|
* Fri Aug 09 2019 Automatic Build System <autodist@mambasoft.it> 2.8.6.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:54:46 +01:00
|
|
|
* Wed Nov 11 2015 Automatic Build System <autodist@mambasoft.it> 2.7.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:54:46 +01:00
|
|
|
* Wed Oct 14 2015 Automatic Build System <autodist@mambasoft.it> 2.7.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:54:46 +01:00
|
|
|
* Tue Sep 15 2015 Automatic Build System <autodist@mambasoft.it> 2.7.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:54:46 +01:00
|
|
|
* Fri Aug 21 2015 Automatic Build System <autodist@mambasoft.it> 2.7.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:54:46 +01:00
|
|
|
* Tue Nov 25 2014 Automatic Build System <autodist@mambasoft.it> 2.7.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 06:54:46 +01:00
|
|
|
* Thu Oct 16 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.7.1-2mamba
|
|
|
|
- add user man required by systemd tmpfiles.d file
|
|
|
|
|
2024-01-06 06:54:46 +01:00
|
|
|
* Tue Apr 15 2014 Automatic Build System <autodist@mambasoft.it> 2.6.7.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Feb 02 2014 Automatic Build System <autodist@mambasoft.it> 2.6.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Jun 30 2013 Automatic Build System <autodist@mambasoft.it> 2.6.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Jun 25 2013 Automatic Build System <autodist@mambasoft.it> 2.6.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Thu Oct 18 2012 Automatic Build System <autodist@mambasoft.it> 2.6.3-1mamba
|
|
|
|
- update to 2.6.3
|
|
|
|
|
|
|
|
* Thu Aug 09 2012 Automatic Build System <autodist@mambasoft.it> 2.6.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Feb 26 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.1-1mamba
|
|
|
|
- update to 2.6.1
|
|
|
|
- added requirement for less, gzip, bzip2, xz, ncompress
|
|
|
|
|
|
|
|
* Wed Feb 09 2011 Automatic Build System <autodist@mambasoft.it> 2.5.9-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Thu May 13 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5.7-2mamba
|
|
|
|
- added requirement for groff
|
|
|
|
|
|
|
|
* Tue Feb 23 2010 Davide Madrisan <davide.madrisan@gmail.com> 2.5.7-1mamba
|
|
|
|
- package created by autospec
|