Projects
home:pandora:RobinOS23
groff
_service:download_src_package:groff.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:download_src_package:groff.spec of Package groff
%define anolis_release 2 %{!?with_x:%global with_x 1} Summary: A document formatting system Name: groff Version: 1.22.4 Release: %{anolis_release}%{?dist} License: GPLv3+ and GFDL and BSD and MIT URL: http://www.gnu.org/software/groff/ Source: ftp://ftp.gnu.org/gnu/groff/groff-%{version}.tar.gz # allow to specify custom docdir Patch0: 0001-do-not-overwrite-docdir.patch Patch1: 0002-load-site-font-and-site-tmac-from-etc-groff.patch Requires: coreutils, groff-base = %{version}-%{release} Recommends: psutils Requires(post): %{_sbindir}/update-alternatives Requires(postun): %{_sbindir}/update-alternatives Requires(preun): %{_sbindir}/update-alternatives BuildRequires: gcc, gcc-c++ BuildRequires: bison, texinfo BuildRequires: git, netpbm-progs, perl-generators, psutils, ghostscript Provides: nroff-i18n = %{version}-%{release} Provides: bundled(gnulib) %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\([^.]*\\.pl\\) %description Groff is a document formatting system. Groff takes standard text and formatting commands as input and produces formatted output. The created documents can be shown on a display or printed on a printer. Groff's formatting commands allow you to specify font type and size, bold type, italic type, the number and size of columns on a page, and more. Groff can also be used to format man pages. If you are going to use groff with the X Window System, you will also need to install the groff-x11 package. %package base Summary: Parts of the groff formatting system required to display manual pages %description base The groff-base package contains only necessary parts of groff formatting system which are required to display manual pages, and the groff's default display device (PostScript). %package perl Summary: Parts of the groff formatting system that require Perl Requires: groff-base = %{version}-%{release} %description perl The groff-perl package contains the parts of the groff text processor package that require Perl. These include the afmtodit (font processor for creating PostScript font files), groffer (tool for displaying groff files), grog (utility that can be used to automatically determine groff command-line options), chem (groff preprocessor for producing chemical structure diagrams), mmroff (reference preprocessor) and roff2dvi roff2html roff2pdf roff2ps roff2text roff2x (roff code converters). %if %{with_x} %package x11 Summary: Parts of the groff formatting system that require X Windows System Requires: groff-base = %{version}-%{release} BuildRequires: libXaw-devel, libXmu-devel BuildRequires: make Provides: groff-gxditview = %{version}-%{release} Obsoletes: groff-gxditview < 1.20.1 %description x11 The groff-x11 package contains the parts of the groff text processor package that require X Windows System. These include gxditview (display groff intermediate output files on X Window System display) and xtotroff (converts X font metrics into groff font metrics). %endif %package doc Summary: Documentation for groff document formatting system BuildArch: noarch Requires: groff = %{version}-%{release} %description doc The groff-doc package includes additional documentation for groff text processor package. It contains examples, documentation for PIC language and documentation for creating PDF files. %prep %setup -q git init git config user.email groff-owner@openanolis.cn git config user.name "groff owner" git add . git commit -n -m "release %{version}" git am %{patches} for file in NEWS src/devices/grolbp/grolbp.1.man doc/webpage.ms \ 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" done %build %configure \ --docdir=%{_pkgdocdir} \ --with-appresdir=%{_datadir}/X11/app-defaults \ --with-grofferdir=%{_datadir}/%{name}/%{version}/groffer %make_build %install %make_install # rename files for alternative usage mv %{buildroot}%{_bindir}/soelim %{buildroot}%{_bindir}/soelim.%{name} touch %{buildroot}%{_bindir}/soelim mv %{buildroot}%{_mandir}/man1/soelim.1 %{buildroot}%{_mandir}/man1/soelim.%{name}.1 touch %{buildroot}%{_mandir}/man1/soelim.1 mv %{buildroot}%{_mandir}/man7/roff.7 %{buildroot}%{_mandir}/man7/roff.%{name}.7 touch %{buildroot}%{_mandir}/man7/roff.7 # some binaries need alias with 'g' or 'z' prefix 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 # fix absolute symlink to relative symlink rm -f %{buildroot}%{_pkgdocdir}/pdf/mom-pdf.pdf ln -s ../examples/mom/mom-pdf.pdf %{buildroot}%{_pkgdocdir}/pdf/mom-pdf.pdf # rename groff downloadable postscript fonts to meet anolis Font Packaging guidelines, # as these files are more PS instructions, than general-purpose fonts for file in $(find %{buildroot}%{_datadir}/%{name}/%{version}/font/devps -name "*.pfa"); do mv ${file} ${file}_ done sed --in-place 's/\.pfa$/.pfa_/' %{buildroot}%{_datadir}/%{name}/%{version}/font/devps/download # remove unnecessary files 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 # /bin/sed moved to /usr/bin/sed in anolis sed --in-place 's|#! /bin/sed -f|#! /usr/bin/sed -f|' %{buildroot}%{_datadir}/groff/%{version}/font/devps/generate/symbol.sed %generate_compatibility_deps %pre # remove alternativized files if they are not symlinks [ -L %{_mandir}/man7/roff.7.gz ] || %{__rm} -f %{_mandir}/man7/roff.7.gz >/dev/null 2>&1 || : %post # set up the alternatives files %{_sbindir}/update-alternatives --install %{_mandir}/man7/roff.7.gz roff.7.gz %{_mandir}/man7/roff.%{name}.7.gz 300 \ >/dev/null 2>&1 || : %preun if [ $1 -eq 0 ]; then %{_sbindir}/update-alternatives --remove roff.7.gz %{_mandir}/man7/roff.%{name}.7.gz >/dev/null 2>&1 || : fi %postun if [ $1 -ge 1 ]; then if [ "$(readlink %{_sysconfdir}/alternatives/roff.7.gz)" == "%{_mandir}/man7/roff.%{name}.7.gz" ]; then %{_sbindir}/update-alternatives --set roff.7.gz %{_mandir}/man7/roff.%{name}.7.gz >/dev/null 2>&1 || : fi fi %pre base # remove alternativized files if they are not symlinks [ -L %{_bindir}/soelim ] || %{__rm} -f %{_bindir}/soelim >/dev/null 2>&1 || : [ -L %{_mandir}/man1/soelim.1.gz ] || %{__rm} -f %{_mandir}/man1/soelim.1.gz >/dev/null 2>&1 || : %post base # set up the alternatives files %{_sbindir}/update-alternatives --install %{_bindir}/soelim soelim %{_bindir}/soelim.%{name} 300 \ --slave %{_mandir}/man1/soelim.1.gz soelim.1.gz %{_mandir}/man1/soelim.%{name}.1.gz \ >/dev/null 2>&1 || : %preun base if [ $1 -eq 0 ]; then %{_sbindir}/update-alternatives --remove soelim %{_bindir}/soelim.%{name} >/dev/null 2>&1 || : fi %postun base if [ $1 -ge 1 ]; then if [ "$(readlink %{_sysconfdir}/alternatives/soelim)" == "%{_bindir}/soelim.%{name}" ]; then %{_sbindir}/update-alternatives --set soelim %{_bindir}/soelim.%{name} >/dev/null 2>&1 || : fi fi %files # data %{_datadir}/%{name}/%{version}/font/devcp1047/ %{_datadir}/%{name}/%{version}/font/devdvi/ %{_datadir}/%{name}/%{version}/font/devlbp/ %{_datadir}/%{name}/%{version}/font/devlj4/ %{_datadir}/%{name}/%{version}/oldfont/ %{_datadir}/%{name}/%{version}/pic/ %{_datadir}/%{name}/%{version}/tmac/62bit.tmac %{_datadir}/%{name}/%{version}/tmac/a4.tmac %{_datadir}/%{name}/%{version}/tmac/dvi.tmac %{_datadir}/%{name}/%{version}/tmac/e.tmac %{_datadir}/%{name}/%{version}/tmac/ec.tmac %{_datadir}/%{name}/%{version}/tmac/hdmisc.tmac %{_datadir}/%{name}/%{version}/tmac/hdtbl.tmac %{_datadir}/%{name}/%{version}/tmac/lbp.tmac %{_datadir}/%{name}/%{version}/tmac/lj4.tmac %{_datadir}/%{name}/%{version}/tmac/m.tmac %{_datadir}/%{name}/%{version}/tmac/me.tmac %{_datadir}/%{name}/%{version}/tmac/mm.tmac %{_datadir}/%{name}/%{version}/tmac/mm/ %{_datadir}/%{name}/%{version}/tmac/mmse.tmac %{_datadir}/%{name}/%{version}/tmac/mom.tmac %{_datadir}/%{name}/%{version}/tmac/ms.tmac %{_datadir}/%{name}/%{version}/tmac/mse.tmac %{_datadir}/%{name}/%{version}/tmac/om.tmac %{_datadir}/%{name}/%{version}/tmac/pdfmark.tmac %{_datadir}/%{name}/%{version}/tmac/refer-me.tmac %{_datadir}/%{name}/%{version}/tmac/refer-mm.tmac %{_datadir}/%{name}/%{version}/tmac/refer-ms.tmac %{_datadir}/%{name}/%{version}/tmac/refer.tmac %{_datadir}/%{name}/%{version}/tmac/s.tmac %{_datadir}/%{name}/%{version}/tmac/spdf.tmac %{_datadir}/%{name}/%{version}/tmac/trace.tmac %{_datadir}/%{name}/%{version}/tmac/zh.tmac # programs %{_bindir}/addftinfo %{_bindir}/eqn2graph %{_bindir}/gdiffmk %{_bindir}/grap2graph %{_bindir}/grn %{_bindir}/grodvi %{_bindir}/grolbp %{_bindir}/grolj4 %{_bindir}/hpftodit %{_bindir}/indxbib %{_bindir}/lkbib %{_bindir}/lookbib %{_bindir}/pdfroff %{_bindir}/pfbtops %{_bindir}/pic2graph %{_bindir}/refer %{_bindir}/tfmtodit %{abidir}/addftinfo-option.list %{abidir}/eqn2graph-option.list %{abidir}/grap2graph-option.list %{abidir}/grn-option.list %{abidir}/grodvi-option.list %{abidir}/grolbp-option.list %{abidir}/grolj4-option.list %{abidir}/hpftodit-option.list %{abidir}/indxbib-option.list %{abidir}/lkbib-option.list %{abidir}/lookbib-option.list %{abidir}/pdfroff-option.list %{abidir}/pfbtops-option.list %{abidir}/pic2graph-option.list %{abidir}/refer-option.list %{abidir}/tfmtodit-option.list %{_libdir}/groff/groff_opts_no_arg.txt %{_libdir}/groff/groff_opts_with_arg.txt %{_mandir}/man1/addftinfo.* %{_mandir}/man1/eqn2graph.* %{_mandir}/man1/gdiffmk.* %{_mandir}/man1/grap2graph.* %{_mandir}/man1/grn.* %{_mandir}/man1/grodvi.* %{_mandir}/man1/grohtml.* %{_mandir}/man1/grolbp.* %{_mandir}/man1/grolj4.* %{_mandir}/man1/hpftodit.* %{_mandir}/man1/indxbib.* %{_mandir}/man1/lkbib.* %{_mandir}/man1/lookbib.* %{_mandir}/man1/pdfroff.* %{_mandir}/man1/pfbtops.* %{_mandir}/man1/pic2graph.* %{_mandir}/man1/refer.* %{_mandir}/man1/tfmtodit.* # compatibility symlinks %{_bindir}/grefer %{_bindir}/glookbib %{_bindir}/gindxbib %{_mandir}/man1/grefer.* %{_mandir}/man1/glookbib.* %{_mandir}/man1/gindxbib.* # groff processor documentation %{_mandir}/man5/* %ghost %{_mandir}/man7/roff.7* %{_mandir}/man7/* %{_infodir}/groff.info* %files base %dir %{abidir} %{!?_licensedir:%global license %%doc} %license COPYING FDL LICENSES %doc BUG-REPORT MORE.STUFF NEWS PROBLEMS # configuration %dir %{_sysconfdir}/groff/ %config(noreplace) %{_sysconfdir}/groff/* # data %dir %{_datadir}/%{name}/ %dir %{_datadir}/%{name}/%{version}/ %dir %{_datadir}/%{name}/%{version}/font/ %dir %{_datadir}/%{name}/%{version}/tmac/ %{_datadir}/%{name}/current %{_datadir}/%{name}/%{version}/eign %{_datadir}/%{name}/%{version}/font/devascii/ %{_datadir}/%{name}/%{version}/font/devlatin1/ %{_datadir}/%{name}/%{version}/font/devps/ %{_datadir}/%{name}/%{version}/font/devutf8/ %{_datadir}/%{name}/%{version}/font/devhtml/ %{_datadir}/%{name}/%{version}/tmac/an-ext.tmac %{_datadir}/%{name}/%{version}/tmac/an-old.tmac %{_datadir}/%{name}/%{version}/tmac/an.tmac %{_datadir}/%{name}/%{version}/tmac/andoc.tmac %{_datadir}/%{name}/%{version}/tmac/composite.tmac %{_datadir}/%{name}/%{version}/tmac/cp1047.tmac %{_datadir}/%{name}/%{version}/tmac/cs.tmac %{_datadir}/%{name}/%{version}/tmac/de.tmac %{_datadir}/%{name}/%{version}/tmac/den.tmac %{_datadir}/%{name}/%{version}/tmac/devtag.tmac %{_datadir}/%{name}/%{version}/tmac/doc-old.tmac %{_datadir}/%{name}/%{version}/tmac/doc.tmac %{_datadir}/%{name}/%{version}/tmac/eqnrc %{_datadir}/%{name}/%{version}/tmac/europs.tmac %{_datadir}/%{name}/%{version}/tmac/fallbacks.tmac %{_datadir}/%{name}/%{version}/tmac/fr.tmac %{_datadir}/%{name}/%{version}/tmac/html-end.tmac %{_datadir}/%{name}/%{version}/tmac/html.tmac %{_datadir}/%{name}/%{version}/tmac/hyphen.cs %{_datadir}/%{name}/%{version}/tmac/hyphen.den %{_datadir}/%{name}/%{version}/tmac/hyphen.det %{_datadir}/%{name}/%{version}/tmac/hyphen.fr %{_datadir}/%{name}/%{version}/tmac/hyphen.sv %{_datadir}/%{name}/%{version}/tmac/hyphen.us %{_datadir}/%{name}/%{version}/tmac/hyphenex.cs %{_datadir}/%{name}/%{version}/tmac/hyphenex.us %{_datadir}/%{name}/%{version}/tmac/ja.tmac %{_datadir}/%{name}/%{version}/tmac/latin1.tmac %{_datadir}/%{name}/%{version}/tmac/latin2.tmac %{_datadir}/%{name}/%{version}/tmac/latin5.tmac %{_datadir}/%{name}/%{version}/tmac/latin9.tmac %{_datadir}/%{name}/%{version}/tmac/man.tmac %{_datadir}/%{name}/%{version}/tmac/mandoc.tmac %{_datadir}/%{name}/%{version}/tmac/mdoc.tmac %{_datadir}/%{name}/%{version}/tmac/mdoc/ %{_datadir}/%{name}/%{version}/tmac/papersize.tmac %{_datadir}/%{name}/%{version}/tmac/pdfpic.tmac %{_datadir}/%{name}/%{version}/tmac/pic.tmac %{_datadir}/%{name}/%{version}/tmac/ps.tmac %{_datadir}/%{name}/%{version}/tmac/psatk.tmac %{_datadir}/%{name}/%{version}/tmac/psold.tmac %{_datadir}/%{name}/%{version}/tmac/pspic.tmac %{_datadir}/%{name}/%{version}/tmac/safer.tmac %{_datadir}/%{name}/%{version}/tmac/sv.tmac %{_datadir}/%{name}/%{version}/tmac/trans.tmac %{_datadir}/%{name}/%{version}/tmac/troffrc %{_datadir}/%{name}/%{version}/tmac/troffrc-end %{_datadir}/%{name}/%{version}/tmac/tty-char.tmac %{_datadir}/%{name}/%{version}/tmac/tty.tmac %{_datadir}/%{name}/%{version}/tmac/unicode.tmac %{_datadir}/%{name}/%{version}/tmac/www.tmac # programs %{_bindir}/eqn %{_bindir}/groff %{_bindir}/grops %{_bindir}/grotty %{_bindir}/neqn %{_bindir}/nroff %{_bindir}/pic %{_bindir}/post-grohtml %{_bindir}/pre-grohtml %{_bindir}/preconv %ghost %{_bindir}/soelim %{_bindir}/soelim.%{name} %{_bindir}/tbl %{_bindir}/troff %{abidir}/eqn-option.list %{abidir}/groff-option.list %{abidir}/grops-option.list %{abidir}/grotty-option.list %{abidir}/neqn-option.list %{abidir}/nroff-option.list %{abidir}/pic-option.list %{abidir}/post-grohtml-option.list %{abidir}/pre-grohtml-option.list %{abidir}/preconv-option.list %{abidir}/soelim.%{name}-option.list %{abidir}/tbl-option.list %{abidir}/troff-option.list %{_mandir}/man1/eqn.* %{_mandir}/man1/groff.* %{_mandir}/man1/grops.* %{_mandir}/man1/grotty.* %{_mandir}/man1/neqn.* %{_mandir}/man1/nroff.* %{_mandir}/man1/pic.* %{_mandir}/man1/preconv.* %ghost %{_mandir}/man1/soelim.1* %{_mandir}/man1/soelim.%{name}.* %{_mandir}/man1/tbl.* %{_mandir}/man1/troff.* # compatibility symlinks %{_bindir}/gnroff %{_bindir}/gtroff %{_bindir}/gtbl %{_bindir}/gpic %{_bindir}/geqn %{_bindir}/gneqn %{_bindir}/gsoelim %{_bindir}/zsoelim %{_mandir}/man1/gnroff.* %{_mandir}/man1/gtroff.* %{_mandir}/man1/gtbl.* %{_mandir}/man1/gpic.* %{_mandir}/man1/geqn.* %{_mandir}/man1/gneqn.* %{_mandir}/man1/gsoelim.* %{_mandir}/man1/zsoelim.* %dir %{_libdir}/groff/ %files perl # data %{_datadir}/%{name}/%{version}/font/devpdf/ %{_datadir}/%{name}/%{version}/groffer/ %{_datadir}/%{name}/%{version}/tmac/pdf.tmac # programs %{_bindir}/afmtodit %{_bindir}/chem %{_bindir}/gperl %{_bindir}/gpinyin %{_bindir}/glilypond %{_bindir}/groffer %{_bindir}/grog %{_bindir}/gropdf %{_bindir}/mmroff %{_bindir}/pdfmom %{_bindir}/roff2dvi %{_bindir}/roff2html %{_bindir}/roff2pdf %{_bindir}/roff2ps %{_bindir}/roff2text %{_bindir}/roff2x %{abidir}/mmroff-option.list %{abidir}/pdfmom-option.list %{abidir}/roff2dvi-option.list %{abidir}/roff2html-option.list %{abidir}/roff2pdf-option.list %{abidir}/roff2ps-option.list %{abidir}/roff2text-option.list %{abidir}/roff2x-option.list %{_mandir}/man1/afmtodit.* %{_mandir}/man1/chem.* %{_mandir}/man1/gperl.* %{_mandir}/man1/gpinyin.* %{_mandir}/man1/glilypond.* %{_mandir}/man1/groffer.* %{_mandir}/man1/grog.* %{_mandir}/man1/gropdf.* %{_mandir}/man1/mmroff.* %{_mandir}/man1/pdfmom.* %{_mandir}/man1/roff2dvi.* %{_mandir}/man1/roff2html.* %{_mandir}/man1/roff2pdf.* %{_mandir}/man1/roff2ps.* %{_mandir}/man1/roff2text.* %{_mandir}/man1/roff2x.* %dir %{_libdir}/groff/glilypond/ %dir %{_libdir}/groff/gpinyin/ %dir %{_libdir}/groff/grog/ %{_libdir}/groff/glilypond/args.pl %{_libdir}/groff/glilypond/oop_fh.pl %{_libdir}/groff/glilypond/subs.pl %{_libdir}/groff/gpinyin/subs.pl %{_libdir}/groff/grog/subs.pl %if %{with_x} %files x11 # data %{_datadir}/%{name}/%{version}/font/devX*/ %{_datadir}/%{name}/%{version}/tmac/X.tmac %{_datadir}/%{name}/%{version}/tmac/Xps.tmac %{_datadir}/X11/app-defaults/GXditview %{_datadir}/X11/app-defaults/GXditview-color # programs %{_bindir}/gxditview %{_bindir}/xtotroff %{abidir}/xtotroff-option.list %{_mandir}/man1/gxditview.* %{_mandir}/man1/xtotroff.* %endif %files doc %doc %{_pkgdocdir}/*.me %doc %{_pkgdocdir}/*.ps %doc %{_pkgdocdir}/*.ms %doc %{_pkgdocdir}/examples/ %doc %{_pkgdocdir}/html/ %doc %{_pkgdocdir}/pdf/ %changelog * Wed Oct 26 2022 mgb01105731 <mgb01105731@alibaba-inc.com> - 1.22.4-2 - optimise spec file * Fri Mar 04 2022 Hongwei Qin <qhw01063182@alibaba-inc.com> - 1.22.4-1 - Update to version 1.22.4 - Init for Anolis OS 23
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