File paps.spec of Package paps

# spec file for package paps
# Copyright (c) 2020 SUSE LLC
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           paps
Version:        0.7.1
Release:        0
Summary:        A text to postscript converter through pango 
License:        LGPL-2.0-only
Group:          System/Base
URL:  {name}
Patch1:         paps-cpi_scale_calculation.patch
Patch2:         paps-manpage_units.patch
Patch3:         paps-manpage_fixes.patch
Patch4:         paps-gutter-width.patch
Patch5:         paps-page_setup.patch
Patch6:         paps-layout.patch
Patch7:         paps-glib.patch
Patch8:         paps-header_features.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  intltool
BuildRequires:  pkgconfig(cairo)
BuildRequires:  pkgconfig(pangocairo)
BuildRequires:  pkgconfig(pangoft2)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%define add_optflags(a:f:t:p:w:W:d:g:O:A:C:D:E:H:i:M:n:P:U:u:l:s:X:B:I:L:b:V:m:x:c:S:E:o:v:) \
%global optflags %{optflags} %{**}

paps is a command line program for converting Unicode text encoded in UTF-8 to postscript and pdf by using pango.

%setup -qT -b0 -n %{name}-%{version}
%patch1 -p0 -b .p1
%patch2 -p0 -b .p2
%patch3 -p0 -b .p3
%patch4 -p0 -b .p4
%patch5 -p0 -b .p5
%patch6 -p0 -b .p6
%patch7 -p0 -b .p7
%patch8 -p0 -b .p8
mkdir -p config m4
for c in /usr/share/aclocal*/{codeset,gettext,glibc21,iconv,isc-posix,lcmessage}.m4
    test -e $c || continue
    cp -p $c m4/
for c in /usr/share/automake*/config.{guess,sub}
    test -e $c || continue
    cp -p $c .
unset c

%add_optflags -D_XOPEN_SOURCE
echo "no" | glib-gettextize --force --copy
intltoolize --copy --force --automake
autoreconf --force --install -I config -I m4
automake --copy --force-missing --add-missing
make %{?_smp_mflags}

make install DESTDIR=%{buildroot} %{?_smp_mflags}

%license COPYING.LIB

openSUSE Build Service is sponsored by