Sisyphus repository
Last update: 16 september 2019 | SRPMs: 17434 | Visits: 15102706
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 

Name: djvu
Version: 3.5.25.3
Release: alt1

Summary: DjVu viewers, encoders and utilities
License: GPLv2+
Group: Publishing
Url: http://djvu.sourceforge.net/

# http://download.sourceforge.net/djvu/djvulibre-%version.tar.gz

Source: djvulibre-%version.tar
Patch: djvulibre-3.5.22-rh-cdefs.patch

# Automatically added by buildreq on Sat Apr 13 2013

# optimized out: libstdc++-devel
BuildRequires: gcc-c++ libjpeg-devel libtiff-devel xdg-utils

%def_disable static

%description
DjVu is a web-centric format and software platform for distributing documents
and images. DjVu can advantageously replace PDF, PS, TIFF, JPEG, and GIF for
distributing scanned documents, digital documents, or high-resolution pictures.
DjVu content downloads faster, displays and renders faster, looks nicer on a
screen, and consume less client resources than competing formats. DjVu images
display instantly and can be smoothly zoomed and panned with no lengthy
re-rendering.

DjVuLibre is a free (GPL'ed) implementation of DjVu, including decoders,
simple encoders, and utilities.  The viewer and browser plugin are in
their own separate packages.

%package common
Summary: DjVu shared files
Group: Publishing
BuildArch: noarch

%description common
DjVu is a web-centric format and software platform for distributing documents
and images. DjVu can advantageously replace PDF, PS, TIFF, JPEG, and GIF for
distributing scanned documents, digital documents, or high-resolution pictures.
DjVu content downloads faster, displays and renders faster, looks nicer on a
screen, and consume less client resources than competing formats. DjVu images
display instantly and can be smoothly zoomed and panned with no lengthy
re-rendering.

This package contains data files shared among DjVu subpackages.

%package -n lib%name
Summary: DjVu encoder runtime library
Group: System/Libraries
Requires: %name-common = %EVR

%description -n lib%name
This package contains DjVu encoder runtime library.

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

%description utils
This package contains DjVu encoder and support utilites.

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

%description xmltools
This package contains DjVu XML tools.

%package doc
Summary: DjVu documenation
Group: Publishing
BuildArch: noarch

%description doc
This package contains documentaion about DjVu technology,
can be also used as test samples.

%package -n lib%name-devel
Summary: Development files for lib%name
Group: Development/C++
Requires: lib%name = %EVR
Provides: %name-devel = %EVR
Obsoletes: %name-devel < %EVR

%description -n lib%name-devel
This package contains development files for lib%name.

%package -n lib%name-devel-static
Summary: static version of libdjvu
Group: Development/C++
Requires: lib%name-devel = %EVR

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

%prep
%setup -n djvulibre-%version
%patch -p1

%build
%autoreconf
%configure %{subst_enable static} --enable-threads
%make_build V=1 OPTS='%optflags' \
PNGICONS="$(cd desktopfiles && echo prebuilt-hi*-djvu.png |sed s/prebuilt-//g)"

%install
%makeinstall_std \
PNGICONS="$(cd desktopfiles && echo prebuilt-hi*-djvu.png |sed s/prebuilt-//g)"
find %buildroot%_datadir/djvu -name 'prebuilt-hi*-djvu.png' -delete

pushd desktopfiles
for f in hi*-djvu.png; do
i=${f%%-djvu.png};
i=${i#hi}
install -Dpm644 "$f" \
%buildroot%_iconsdir/hicolor/"$i"x"$i"/mimetypes/image-vnd.djvu.mime.png
done
install -Dpm644 djvulibre-mime.xml %buildroot%_datadir/mime/packages/djvulibre-mime.xml
install -Dpm644 vnd.djvu.desktop %buildroot%_datadir/mimelnk/image/vnd.djvu.desktop
popd

%define docdir %_docdir/%name-%version
mkdir -p %buildroot%docdir
cp -a COPYRIGHT NEWS README doc %buildroot%docdir/

%find_lang %name
%set_verify_elf_method strict

%files common
%_datadir/djvu/
%_iconsdir/*/*/*/*.png
%_datadir/mime*/*
%dir %docdir/
%docdir/[CNR]*

%files doc
%dir %docdir/
%docdir/doc/

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

%files utils
%_bindir/*
%_mandir/man?/*
%exclude %_bindir/*xml*
%exclude %_mandir/man?/*xml*

%files xmltools
%_bindir/*xml*
%_mandir/man?/*xml*

%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