|
@@ -2,41 +2,43 @@
|
|
|
# is uninstalled.
|
|
|
%define cache_clean_ver 1.18.1.1-4%{?_dist_release}
|
|
|
|
|
|
-%global _pkgdocdir %{_docdir}/%{name}-%{version}
|
|
|
%global __requires_exclude perl\\(.*\\.pl\\)$
|
|
|
|
|
|
Summary: A document formatting system.
|
|
|
Summary(ja): GNU groff 日本語対応版
|
|
|
Name: groff
|
|
|
-Version: 1.22.4
|
|
|
+Version: 1.23.0
|
|
|
Release: 1%{?_dist_release}
|
|
|
-License: GPL
|
|
|
-Group: Applications/Publishing
|
|
|
-URL: http://groff.ffii.org
|
|
|
+Group: publishing
|
|
|
+Vendor: Project Vine
|
|
|
+Distribution: Vine Linux
|
|
|
+Packager: daisuke
|
|
|
|
|
|
-Source0: ftp://ftp.gnu.org/gnu/groff/groff-%{version}.tar.gz
|
|
|
+License: GPL-3.0-or-later AND GFDL-1.3-or-later AND BSD-4-Clause-UC AND MIT AND X11 AND LicenseRef-Fedora-Public-Domain
|
|
|
+URL: https://www.gnu.org/software/groff/
|
|
|
+Source0: https://ftp.gnu.org/gnu/groff/groff-%{version}.tar.gz
|
|
|
|
|
|
# resolves: #530788
|
|
|
Patch0: 0001-missing-groff-x11-info-message-when-gxditview-not-fo.patch
|
|
|
Patch1: 0002-load-site-font-and-site-tmac-from-etc-groff.patch
|
|
|
+# resolves: #709413, #720058, #720057
|
|
|
+Patch2: 0003-various-security-fixes.patch
|
|
|
# resolves: #987069
|
|
|
Patch3: 0004-don-t-use-usr-bin-env-in-shebang.patch
|
|
|
+# allow to specify custom docdir
|
|
|
+Patch4: 0005-do-not-overwrite-docdir.patch
|
|
|
+# Revert upstream change of mapping special characters for UTF-8 devices
|
|
|
+# Debian commit: https://salsa.debian.org/debian/groff/-/commit/d5394c68d70e6c5199b01d2522e094c8fd52e64e
|
|
|
+Patch5: 0006-Revert-upstream-change-of-mapping-special-characters.patch
|
|
|
|
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
|
|
-BuildRequires: libX11-devel, libICE-devel, libSM-devel, libXext-devel
|
|
|
-BuildRequires: libXmu-devel, libXpm-devel, libXt-devel
|
|
|
-BuildRequires: libXaw-devel >= 1.0.5
|
|
|
-BuildRequires: psutils, byacc, imake, netpbm-progs, ghostscript
|
|
|
+BuildRequires: libXmu-devel
|
|
|
+BuildRequires: libXaw-devel
|
|
|
+BuildRequires: psutils, bison, imake, netpbm-progs, ghostscript
|
|
|
BuildRequires: texinfo
|
|
|
-Requires(post): install-info
|
|
|
-Requires(preun): install-info
|
|
|
Requires(postun): findutils
|
|
|
Obsoletes: groff-tools
|
|
|
|
|
|
-Vendor: Project Vine
|
|
|
-Distribution: Vine Linux
|
|
|
-Packager: daisuke
|
|
|
-
|
|
|
%description
|
|
|
Groff is a document formatting system. Groff takes standard text and
|
|
|
formatting commands as input and produces formatted output. The
|
|
@@ -56,7 +58,7 @@ GNU roff (groff) 日本語対応版です。日本語で書かれたマニュア
|
|
|
|
|
|
%package perl
|
|
|
Summary: Parts of the groff formatting system that require Perl.
|
|
|
-Group: Applications/Publishing
|
|
|
+Group: publishing
|
|
|
Requires: %{name} = %{version}
|
|
|
Requires: mktemp
|
|
|
|
|
@@ -70,7 +72,7 @@ troff-to-ps print filter.
|
|
|
|
|
|
%package gxditview
|
|
|
Summary: An X previewer for groff text processor output.
|
|
|
-Group: Applications/Publishing
|
|
|
+Group: publishing
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
%description gxditview
|
|
@@ -82,15 +84,15 @@ gxditview so that you preview your processed text files in X. You'll also
|
|
|
need to install the groff package and the X Window System.
|
|
|
|
|
|
|
|
|
+%debug_package
|
|
|
+
|
|
|
+
|
|
|
%prep
|
|
|
%setup -q
|
|
|
-
|
|
|
-%patch0 -p1
|
|
|
-%patch1 -p1
|
|
|
-%patch3 -p1
|
|
|
+%autopatch -p1
|
|
|
|
|
|
for file in NEWS src/devices/grolbp/grolbp.1.man doc/{groff.texi*,webpage.ms} \
|
|
|
- contrib/mm/*.man contrib/mom/examples/{README.txt,*.mom}
|
|
|
+ contrib/mm/*.man contrib/mom/examples/{README.txt,*.mom,mom.vim}
|
|
|
do
|
|
|
iconv -f iso-8859-1 -t utf-8 < "$file" > "${file}_"
|
|
|
mv "${file}_" "$file"
|
|
@@ -101,20 +103,19 @@ done
|
|
|
export PAGE=A4
|
|
|
export YACC='bison -y'
|
|
|
%configure \
|
|
|
- --with-appresdir=%{_datadir}/X11/app-defaults \
|
|
|
+ --docdir=%{_pkgdocdir} \
|
|
|
+ --with-appdefdir=%{_datadir}/X11/app-defaults \
|
|
|
--with-grofferdir=%{_datadir}/%{name}/%{version}/groffer
|
|
|
|
|
|
-make %{?_smp_mflags}
|
|
|
+%make_build
|
|
|
|
|
|
-%install
|
|
|
-[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
-%{__make} install DESTDIR=%{buildroot} \
|
|
|
- docdir=%{_docdir}/%{name}-%{version}
|
|
|
+%install
|
|
|
+%make_install
|
|
|
|
|
|
# some binaries need alias with 'g' or 'z' prefix
|
|
|
|
|
|
-for file in g{nroff,troff,tbl,pic,eqn,neqn,refer,lookbib,indxbib,soelim} ; do
|
|
|
+for file in g{nroff,troff,tbl,pic,eqn,neqn,refer,lookbib,indxbib,soelim} zsoelim; do
|
|
|
ln -s ${file#?} %{buildroot}%{_bindir}/${file}
|
|
|
ln -s ${file#?}.1.gz %{buildroot}%{_mandir}/man1/${file}.1.gz
|
|
|
done
|
|
@@ -130,7 +131,6 @@ for file in $(find %{buildroot}%{_datadir}/%{name}/%{version}/font/devps -name "
|
|
|
done
|
|
|
sed --in-place 's/\.pfa$/.pfa_/' %{buildroot}%{_datadir}/%{name}/%{version}/font/devps/download
|
|
|
|
|
|
-
|
|
|
# perl dependent files in /usr/bin will be in separate package
|
|
|
|
|
|
rm -f files-perl files-nonperl
|
|
@@ -158,68 +158,39 @@ install -m644 doc/groff.info* $RPM_BUILD_ROOT%{_infodir}
|
|
|
# remove unnecessary files and fix privileges
|
|
|
rm -f %{buildroot}%{_infodir}/dir
|
|
|
|
|
|
-# fix privileges
|
|
|
-chmod 755 %{buildroot}%{_datadir}/groff/%{version}/groffer/version.sh
|
|
|
-chmod 755 %{buildroot}%{_datadir}/groff/%{version}/font/devlj4/generate/special.awk
|
|
|
-
|
|
|
# remove CreationDate from documentation
|
|
|
pushd %{buildroot}%{_pkgdocdir}
|
|
|
find -name "*.html" | xargs sed -i "/^<!-- CreationDate: /d"
|
|
|
find -name "*.ps" | xargs sed -i "/^%%%%CreationDate: /d"
|
|
|
popd
|
|
|
|
|
|
-%clean
|
|
|
-[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
|
-
|
|
|
-
|
|
|
-%post
|
|
|
-/sbin/install-info --info-dir=%{_infodir} %{_infodir}/groff.info.gz ||:
|
|
|
-
|
|
|
-
|
|
|
-%preun
|
|
|
-if [ "$1" = 0 ]; then
|
|
|
- /sbin/install-info --delete \
|
|
|
- --info-dir=%{_infodir} %{_infodir}/groff.info.gz ||:
|
|
|
-fi
|
|
|
|
|
|
%triggerpostun -- %{name} <= %{cache_clean_ver}
|
|
|
find %{_var}/cache/man -type f -name "*.bz2" -exec %{__rm} -f {} \;
|
|
|
|
|
|
+
|
|
|
%files -f files-nonperl
|
|
|
-%defattr(-,root,root)
|
|
|
%license COPYING FDL LICENSES
|
|
|
+%doc %{_pkgdocdir}/*
|
|
|
%doc BUG-REPORT MORE.STUFF NEWS PROBLEMS
|
|
|
-%doc doc/*.html doc/*.css doc/*xpm doc/img
|
|
|
%dir %{_sysconfdir}/groff/
|
|
|
%dir %{_sysconfdir}/groff/site-font
|
|
|
%dir %{_sysconfdir}/groff/site-tmac
|
|
|
%config(noreplace) %{_sysconfdir}/groff/site-tmac/*
|
|
|
-%dir %{_libdir}/groff
|
|
|
-%{_libdir}/groff/groff_opts_no_arg.txt
|
|
|
-%{_libdir}/groff/groff_opts_with_arg.txt
|
|
|
%{_datadir}/groff/
|
|
|
# manpages for binaries are covered by -f
|
|
|
%{_mandir}/man1/grohtml.*
|
|
|
%{_mandir}/man5/*
|
|
|
%{_mandir}/man7/*
|
|
|
%{_infodir}/groff.info*
|
|
|
-%exclude %{_datadir}/groff/%{version}/groffer
|
|
|
%exclude %{_bindir}/gxditview
|
|
|
%exclude %{_bindir}/xtotroff
|
|
|
%exclude %{_mandir}/man1/gxditview.*
|
|
|
%exclude %{_mandir}/man1/xtotroff.*
|
|
|
|
|
|
-
|
|
|
%files perl -f files-perl
|
|
|
-%defattr(-,root,root)
|
|
|
-%{_datadir}/groff/%{version}/groffer/
|
|
|
-%{_libdir}/groff/glilypond
|
|
|
-%{_libdir}/groff/gpinyin
|
|
|
-%{_libdir}/groff/grog
|
|
|
-
|
|
|
|
|
|
%files gxditview
|
|
|
-%defattr(-,root,root)
|
|
|
%{_bindir}/gxditview
|
|
|
%{_bindir}/xtotroff
|
|
|
%{_datadir}/X11/app-defaults/GXditview
|
|
@@ -229,6 +200,9 @@ find %{_var}/cache/man -type f -name "*.bz2" -exec %{__rm} -f {} \;
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Fri Jul 19 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.23.0-1
|
|
|
+- new upstream release.
|
|
|
+
|
|
|
* Mon May 13 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.22.4-1
|
|
|
- new upstream release.
|
|
|
- dropped all patches.
|