Sisyphus
: 20 2019 | : 17692 | : 13568564
en ru br
ALT
S:7.0.5-alt1.p3.1
5.1: 7.0.4-alt3.p1
3.0: 6.0.1-alt2
www.altlinux.org/Changes

:: /
: PDFlib-Lite

             Sources      Gear   Bugs and FR  Repocop 

%define shortver 705
%define patchlevel p3
%define pythondir python%_python_version

Name: PDFlib-Lite
Version: 7.0.5
Release: alt1.p3.1

Summary: A library for on-the-fly PDF generation
License: Freely distributable, free for personal/research use and OSS development
Group: Development/Documentation

Url: http://www.pdflib.com
Source0: http://www.pdflib.com/binaries/PDFlib/%shortver/PDFlib-Lite-%version%patchlevel.tar.gz
Source1: http://www.pdflib.com/fileadmin/pdflib/pdf/license/PDFlib-Lite-license.pdf
Patch: PDFlib-image.patch
Patch1: PDFlib-configure.patch
Packager: Michael Shigorin <mike at altlinux.org>

# Automatically added by buildreq on Wed Jun 03 2009

BuildRequires: perl-devel python-devel tcl-devel gcc-c++
BuildRequires: autoconf >= 2.5

%if 0
BuildRequires: python-devel
BuildRequires: perl-base, perl-devel
BuildRequires: tcl, tcl-devel
%endif

%define libname libpdflib-lite

Summary(ru_RU.UTF-8): Библиотека для генерации PDF "на лету"

%description
Portable C library for dynamically generating PDF ("Adobe
Acrobat") files, with support for many other programming
languages.

PDFlib is a library for generating PDF files. It offers an API
with support for text, vector graphics, raster image, and
hypertext. Call PDFlib routines from within your client program
and voila: dynamic PDF files!

Note that this is NOT free software, check PDFlib-Lite-license.pdf!

%description -l ru_RU.UTF-8
Переносимая C-библиотека для динамической генерации файлов PDF
("Adobe Acrobat"), с поддержкой многих других языков
программирования.

PDFlib - бибиотека для генерации файлов PDF. Она предлагает API с
поддержкой для текста, векторной графики, растровых изображений и
гипертекста. Вызоваете подпрограммы PDFlib  из ваших приложений и
готово: динамические PDF файлы!

Обратите внимание: это НЕ свободное программное обеспечение,
см. PDFlib-Lite-license.pdf!

%package -n %libname
Summary: PDFLib shared library
Summary(ru_RU.UTF-8): разделяемая библиотека PDFLib
Group: System/Libraries
Obsoletes: %name < 7.0.0
Provides: %name = %version-%release

%description -n %libname
PDFlib is a library for generating PDF files.

This package contains shared library.

Note that this is NOT free software, check PDFlib-Lite-license.pdf
in the main package!

%package -n %libname-devel
Summary: PDFLib for developers
Summary(ru_RU.UTF-8):  PDFLib для разработчиков
Group: Development/C
Obsoletes: %name-devel < 7.0.0
Provides: %name-devel = %version-%release
Requires: %libname = %version-%release

%description -n %libname-devel
PDFlib development headers

Note that this is NOT free software, check PDFlib-Lite-license.pdf
in the main package!

%description -n %libname-devel -l ru_RU.UTF-8
Заголовочные файлы PDFlib для разработчиков

Обратите внимание: это НЕ свободное программное обеспечение,
см. PDFlib-Lite-license.pdf в основном пакете!

%package utils
Summary: PDFLib utilities
Summary(ru_RU.UTF-8): утилиты PDFLib
Group: File tools

%description utils
PDF library utilities

%package docs
Summary: PDFLib documentation
Summary(ru_RU.UTF-8): документация PDFLib
Group: Documentation
BuildArch: noarch
Obsoletes: %name <= 7.0.4-alt2.p1

%description docs
PDF library documentation

%if 0
%package python
Summary: PDFLib python binding
Summary(ru_RU.UTF-8): PDFLib для питон
Group: Development/Python

%description python
PDF library binding for python

%description python -l ru_RU.UTF-8
Модули для языка python, позволяющие получить доступ к библиотеке

%package perl
Summary: PDFLib perl binding
Summary(ru_RU.UTF-8):  PDFLib для perl
Group: Development/Perl
Requires: perl

%description perl
PDF library binding for perl

%description perl -l ru_RU.UTF-8
Модули для языка perl, позволяющие получить доступ к библиотеке

%package tcl
Summary: PDFLib tcl binding
Summary(ru_RU.UTF-8):  PDFLib для tcl
Group: Development/Tcl
Requires: tcl

%description tcl
PDF library binding for tcl

%description tcl -l ru_RU.UTF-8
Модули для языка tcl, позволяющие получить доступ к библиотеке

%package php
Summary: PDFLib php binding
Summary(ru_RU.UTF-8):  PDFLib для php
Group: Development/C
Requires: php-common

%description php
PDF library binding for php

%description php -l ru_RU.UTF-8
Модули для языка php, позволяющие получить доступ к библиотеке,
требуют наличия некоторых коммерческих библиотек.
%endif

%prep
%setup -n PDFlib-Lite-%version%patchlevel
#patch1 -p1

%build
%configure \
--with-pyincl=%python_includedir \
--with-py=%_usr \
--with-tclpkg=%_libdir/tcl
make all

%install
%makeinstall_std
cp -a %SOURCE1 .

%if 0
install -m0755 --directory      %buildroot%_includedir
install -m0755 --directory      %buildroot/usr/bin
install -m0755 --directory      %buildroot%_libdir/%pythondir/site-packages
install -m0755 --directory      %buildroot%_libdir/%pythondir/lib-dynload
install -m0755 --directory      %buildroot%_datadir/tcl/tcl8.4/pdflib
install -m0755 --directory      %buildroot$RPM_DOC_DIR/PDFLib-Lite-%version
install -m0755 --directory      %buildroot%_libdir/perl5/i386-linux/auto/pdflib_pl

/bin/install -c -m 644 libs/pdflib/pdflib.h %buildroot%_includedir
cd libs/pdflib/
../../libtool --silent /bin/install -c -m 644 libpdf.la  %buildroot%_libdir/
cd ../..

cp -af doc/*  %buildroot$RPM_DOC_DIR/PDFLib-Lite-%version

/bin/install -c -m 644 pdflib-config %buildroot%_bindir/
/bin/install -c -m 644 bind/pdflib/python/.libs/*  %buildroot%_libdir/%pythondir/lib-dynload/
/bin/install -c -m 644 bind/pdflib/tcl/.libs/*  %buildroot%_libdir/tcl/tcl8.4/pdflib/
/bin/install -c -m 644 bind/pdflib/perl/.libs/*  %buildroot%_libdir/perl5/i386-linux/auto/pdflib_pl
/bin/install -c -m 644 bind/pdflib/perl/pdflib_pl.pm  %buildroot%_libdir/perl5/i386-linux
#/bin/install -c -m 644 progs/pdflib/{pdfimage,pdfimpose,text2pdf}  %buildroot%_bindir/
/bin/install -c -m 644 progs/pdflib/{pdfimage,text2pdf}  %buildroot%_bindir/

%define samples businesscard,chartab,hello,image,invoice,pdfclock

install -m0755 --directory %buildroot$RPM_DOC_DIR/PDFLib-Lite-%version/sample/data
/bin/install -c -m 644 bind/pdflib/data/* \
%buildroot$RPM_DOC_DIR/PDFLib-Lite-%version/sample/data

install -m0755 --directory %buildroot$RPM_DOC_DIR/PDFLib-Lite-%version/sample/tcl
/bin/install -c -m 644 bind/pdflib/tcl/{{%samples}.tcl,readme.txt} \
%buildroot$RPM_DOC_DIR/PDFLib-Lite-%version/sample/tcl

install -m0755 --directory %buildroot$RPM_DOC_DIR/PDFLib-Lite-%version/sample/perl
/bin/install -c -m 644 bind/pdflib/perl/{{%samples}.pl,readme.txt} \
%buildroot$RPM_DOC_DIR/PDFLib-Lite-%version/sample/perl

install -m0755 --directory %buildroot$RPM_DOC_DIR/PDFLib-Lite-%version/sample/python
/bin/install -c -m 644 bind/pdflib/python/{{%samples}.py,readme.txt} \
%buildroot$RPM_DOC_DIR/PDFLib-Lite-%version/sample/python

install -m0755 --directory %buildroot$RPM_DOC_DIR/PDFLib-Lite-%version/sample/php
/bin/install -c -m 644  bind/pdflib/php/{{%samples}.php,readme.txt} \
%buildroot$RPM_DOC_DIR/PDFLib-Lite-%version/sample/php
%endif

%files
%doc PDFlib-Lite-license.pdf

%files docs
%doc doc/*
#_docdir/PDFLib-Lite-%version/sample/data

%files utils
%_bindir/pdflib-config
%_bindir/pdfimage
#_bindir/pdfimpose
%_bindir/text2pdf

%files -n %libname
%_libdir/libpdf.so*

%files -n %libname-devel
%_includedir/pdflib.h

%if 0
%files python
#_libdir/%pythondir/lib-dynload/*
%_docdir/PDFLib-Lite-%version/sample/python

%files perl
%_docdir/PDFLib-Lite-%version/sample/perl
#_libdir/perl5/i386-linux/auto/pdflib_pl/*
#_libdir/perl5/i386-linux/*

%files tcl
#_datadir/tcl/tcl8.4/pdflib
%_docdir/PDFLib-Lite-%version/sample/tcl

%files php
%_docdir/PDFLib-Lite-%version/sample/php
%endif

# TODO:

# - fix bindings
# - devel-static subpackage?
# - consider http://cvs.pld-linux.org/cgi-bin/cvsweb/packages/pdflib/pdflib.spec

%changelog

changelog

 
: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
: Michael Shigorin