Sisyphus repository
Last update: 28 february 2020 | SRPMs: 17502 | Visits: 17540864
en ru br
ALT Linux repos
S:3.5.25.3-alt1
D:3.5.21-alt1
5.0: 3.5.21-alt1
4.1: 3.5.17-alt2
4.0: 3.5.17-alt2
3.0: 3.5.14-alt1.cvs.1.1
+backports:3.5.17-alt0.M30.1

Group :: Publishing
RPM: djvu

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define release alt0.M30.1
%define version 3.5.17
%define name djvu
%define orig_name djvulibre

%def_disable static

Summary: DjVu viewers, encoders and utilities
Name: %name
Version: %version
Release: %release
License: GPL
Group: Publishing
Source: %orig_name-%version.tar.bz2
Url: http://%orig_name.djvuzone.org/

# Automatically added by buildreq on Fri May 21 2004 (-ba)

BuildRequires: xorg-x11-devel xorg-x11-libs fontconfig freetype2 gcc-c++ libjpeg-devel libqt3-devel libstdc++-devel
# added by hands
BuildRequires: libtiff-devel browser-plugins-npapi-devel
BuildRequires: rpm-build-compat >= 0.7

Packager: L.A. Kostis <lakostis at altlinux.ru>

%description
DjVu is a web-centric format and software platform for distributing documents
and images.  DjVu content downloads faster, displays and renders faster, looks
nicer on a screen, and consume less client resources than competing formats.
DjVu was originally developed at AT&T Labs-Research by Leon Bottou, Yann
LeCun, Patrick Haffner, and many others.  In March 2000, AT&T sold DjVu to
LizardTech Inc. who now distributes Windows/Mac plug-ins, and commercial
encoders (mostly on Windows)

In an effort to promote DjVu as a Web standard, the LizardTech management was
enlightened enough to release the reference implementation of DjVu under the
GNU GPL in October 2000.  DjVuLibre (which means free DjVu), is an enhanced
version of that code maintained by the original inventors of DjVu. It is
compatible with version 3.5 of the LizardTech DjVu software suite.

DjVulibre-3.5 contains:
- a standalone DjVu viewer based on the Qt library.
- A browser plugin that works with most Unix browsers.
- A full-fledged wavelet-based compressor for pictures.
- A simple compressor for bitonal (black and white) scanned pages.
- A compressor for palettized images (a la GIF/PNG).
- A set of utilities to manipulate and assemble DjVu images and documents.
- A set of decoders to convert DjVu to a number of other formats.
- An up-to-date version of the C++ DjVu Reference Library.

%package common
Summary: DjVu shared files
Group: Publishing

%description common
DjVu is a web-centric format and software platform for distributing documents
and images.  DjVu content downloads faster, displays and renders faster, looks
nicer on a screen, and consume less client resources than competing formats.
DjVu was originally developed at AT&T Labs-Research by Leon Bottou, Yann
LeCun, Patrick Haffner, and many others.  In March 2000, AT&T sold DjVu to
LizardTech Inc. who now distributes Windows/Mac plug-ins, and commercial
encoders (mostly on Windows)

In an effort to promote DjVu as a Web standard, the LizardTech management was
enlightened enough to release the reference implementation of DjVu under the
GNU GPL in October 2000.  DjVuLibre (which means free DjVu), is an enhanced
version of that code maintained by the original inventors of DjVu. It is
compatible with version 3.5 of the LizardTech DjVu software suite.

DjVulibre-3.5 contains:
- a standalone DjVu viewer based on the Qt library.
- A browser plugin that works with most Unix browsers.
- A full-fledged wavelet-based compressor for pictures.
- A simple compressor for bitonal (black and white) scanned pages.
- A compressor for palettized images (a la GIF/PNG).
- A set of utilities to manipulate and assemble DjVu images and documents.
- A set of decoders to convert DjVu to a number of other formats.
- An up-to-date version of the C++ DjVu Reference Library.

%package -n lib%name
Summary: DjVu encoder libraries
Group: System/Libraries
Requires: libstdc++, libjpeg

%description -n lib%name
DjVu shared libraries.

%package utils
Summary: DjVu utilites
Group: Publishing
Requires: lib%name = %version

%description utils
DjVu encoder and support utilites.

%package xmltools
Summary: DjVu XML tools
Group: Publishing
Requires: lib%name = %version

%description xmltools
DjVu XML tools.

%package viewer
Summary: standalone DjVu viewer
Group: Publishing
Requires: lib%name = %version, %name-common, libqt3

%description viewer
A standalone DjVu viewer based on the Qt library.

%package -n mozilla-plugin-%name
Summary: DjVu NPAPI plugin
Group: Networking/WWW
Requires: %name-common, lib%name = %version, browser-plugins-npapi
Obsoletes: %name-plugin

%description -n mozilla-plugin-%name
DjVu NPAPI plugin.

%package doc
Summary: docs about DjVu technology
Group: Publishing
Requires: %name-viewer

%description doc
Some useful documents about DjVu technology.
can be used as test samples.

%package -n lib%name-devel
Summary: devel headers for libdjvu
Group: Development/C++
Requires: lib%name = %version
Obsoletes: %name-devel

%description -n lib%name-devel
Headers for lib%name for making apps using DjVu
technology.

%package -n lib%name-devel-static
summary: static version of libdjvu
group: Development/C++

%description -n lib%name-devel-static
Static version of lib%name for apps using DjVu
technology.

%prep
%setup -q -n %orig_name-%version

%build
# hack for NPAPI location
%__subst 's,netscape\/plugins,browser-plugins-%browser_plugins_api,' gui/nsdejavu/Makefile.in

%__autoreconf
%configure %{subst_enable static} PTHREAD_LIBS="-lpthread"
%make #NO SMP

%install
%makeinstall
# Quick cleanup of the docs
rm -rf doc/CVS 2>/dev/null || :
%__install -d %buildroot%_datadir/pixmaps
%__install -m 644 gui/desktop/djvu.xpm %buildroot%_datadir/pixmaps/djvu.xpm

#install-gnome: FORCE

%__install -pD -m 644 gui/desktop/hi48-mimetype-djvu.png %buildroot%_liconsdir/djvu.png
%__install -d %buildroot%_datadir/mime-info
%__install -m 644 gui/desktop/djvu.mime %buildroot%_datadir/mime-info/djvu.mime
%__install -m 644 gui/desktop/djvu.keys %buildroot%_datadir/mime-info/djvu.keys
%__install -d %buildroot%_datadir/application-registry
%__install -m 644 gui/desktop/djvu.applications %buildroot%_datadir/application-registry
%__install -pD -m 644 gui/desktop/djview.desktop %buildroot%_desktopdir/djview.desktop

%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %post_ldconfig

%post viewer
%update_menus

%postun viewer
%clean_menus

%files common
%doc README COPYRIGHT COPYING INSTALL NEWS TODO
%_datadir/djvu
%_datadir/application-registry/*
%exclude %_datadir/application-registry/djvu.*
%_liconsdir/*
%_datadir/mime-info/*
%_datadir/pixmaps/djvu.xpm

%files doc
%doc doc

%files -n lib%name
%_libdir/*.so.*

%files utils
%_bindir/any2djvu
%_bindir/bzz
%_bindir/c*
%_bindir/ddjvu
%_bindir/djvm*
%_bindir/djvudump
%_bindir/djvuextract
%_bindir/djvumake
%_bindir/djvups
%_bindir/djvused
%_bindir/djvuserve
%_bindir/djvutxt
%_mandir/man?/any2djvu*
%_mandir/man?/bzz*
%_mandir/man?/c*
%_mandir/man?/ddjvu*
%_mandir/man?/djvm*
%_mandir/man?/djvups*
%_mandir/man?/djvused*
%_mandir/man?/djvuserve*
%_mandir/man?/djvutxt*
%_mandir/man?/djvuextract*
%_mandir/man?/djvumake*
%_mandir/man?/djvudump*

%files xmltools
%_bindir/djvutoxml
%_bindir/djvuxmlparser
%_mandir/man?/djvutoxml*
%_mandir/man?/djvuxml*
%_mandir/man?/djvuxmlparser*

%files viewer
%_bindir/djview
%_mandir/man?/djview*
%_desktopdir/*.desktop

%files -n mozilla-plugin-%name
%browser_plugins_path/*.so*
%_mandir/man?/nsdejavu*

%files -n lib%name-devel
%_libdir/*.so
%_includedir/*
%_pkgconfigdir/*

%if_enabled static
%files -n lib%name-devel-static
%_libdir/*.a
%endif #static

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin