Репозитории ALT
Последнее обновление в Вс, 09 мая 2021, 11:40:53 +0000 | Пакетов: 9785
en ru
Исходные пакеты в ветвях
свернуть окно
  • 3.5.25.3-alt1
  • 3.5.25.3-alt1
  • 3.5.25.3-alt1
  • 3.5.25.3-alt1
  • 3.5.25.3-alt1
  • 3.5.25.3-alt1
  • 3.5.22-alt1.1
  • 3.5.22-alt1.1
  • 3.5.22-alt1.1
  • 3.5.21-alt1.1
Группа :: Издательство
Исходный пакет: djvu
Необработанный spec-файл

%define orig_name djvulibre

%def_disable static

Summary: DjVu viewers, encoders and utilities
Name: djvu
Version: 3.5.21
Release: alt1.1
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

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,-rpath ${plugindir},-rpath %browser_plugins_path,' gui/nsdejavu/Makefile.in
%__subst 's,^plugindir[[:space:]]*=.*,plugindir = %buildroot%browser_plugins_path,' gui/nsdejavu/Makefile.in

%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-gnome: FORCE

%__install -pD -m 644 desktopfiles/hi22-djvu.png %buildroot%_iconsdir/hicolor/22x22/mimetypes/image-vnd.djvu.mime.png
%__install -pD -m 644 desktopfiles/hi32-djvu.png %buildroot%_iconsdir/hicolor/32x32/mimetypes/image-vnd.djvu.mime.png
%__install -pD -m 644 desktopfiles/hi48-djvu.png %buildroot%_iconsdir/hicolor/48x48/mimetypes/image-vnd.djvu.mime.png
%__install -pD -m 644 desktopfiles/hi32-djview3.png %buildroot%_niconsdir/djvulibre-djview3.png
%__install -pD -m 644 desktopfiles/djvulibre-mime.xml %buildroot%_datadir/mime/packages/djvulibre-mime.xml
%__install -pD -m 644 desktopfiles/vnd.djvu.desktop %buildroot%_datadir//mimelnk/image/vnd.djvu.desktop
%__install -pD -m 644 desktopfiles/djvulibre-djview3.desktop %buildroot%_desktopdir/djvulibre-djview3.desktop

%find_lang %name

%files common
%doc README COPYRIGHT COPYING INSTALL NEWS TODO
%_datadir/djvu
%_iconsdir/*/*/*/*.png
%_datadir/mime*/*

%files doc
%doc doc

%files -f %name.lang -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
%_bindir/djvudigital
%_mandir/man?/any2djvu*
%_mandir/man?/bzz*
%_mandir/man?/c*
%_mandir/man?/ddjvu*
%_mandir/man?/djvm*
%_mandir/man?/djvu.*
%_mandir/man?/djvups*
%_mandir/man?/djvused*
%_mandir/man?/djvuserve*
%_mandir/man?/djvutxt*
%_mandir/man?/djvuextract*
%_mandir/man?/djvumake*
%_mandir/man?/djvudump*
%_mandir/man?/djvudigital*

%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
* Wed Sep 30 2009 Alexey Gladkov <legion at altlinux.ru> 3.5.21-alt1.1
- NMU: Rebuilt with browser-plugins-npapi.

* Wed Nov 26 2008 Evgeny Sinelnikov <sin at altlinux.ru> 3.5.21-alt1
- update to new release
- clean spec for obsolete macroses
- fix filesystem intersections

* Sun Jan 27 2008 Evgeny Sinelnikov <sin at altlinux.ru> 3.5.20-alt0.1
- update to new release

* Wed Oct 10 2007 Evgeny Sinelnikov <sin at altlinux.ru> 3.5.19-alt0.1
- update to new release

* Fri Jan 19 2007 L.A. Kostis <lakostis at altlinux.ru> 3.5.17-alt2
- Added patches:
+ djvulibre-3.5.17-alt-xgl.patch - Djview sets variable
XLIB_SKIP_ARGB_VISUALS to make sure that Xgl does not
select visuals with transparency.
+ djvulibre-3.5-alt-xtlib-dep.patch - fix undefined symbol
XtShellStrings in nsdejavu.so. It's just a hackaround, see related
discusson in debian -
http://bugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=377468
- Add djvu.1 manpage.

* Sat Jun 17 2006 LAKostis <lakostis at altlinux dot ru> 3.5.17-alt1.1
- cleanup requires for mozilla-plugin (closes #9621).

* Mon May 15 2006 LAKostis <lakostis at altlinux dot ru> 3.5.17-alt1
- 3.5.17.
- update %%url.
- update desktop files entries.
- cleanup buildreq & .spec.
- fix issue with missing -lpthread in libdjvulibre (due --as-needed ld flag).

* Wed Jan 04 2006 LAKostis <lakostis at altlinux dot ru> 3.5.16-alt0.cvs20060104
- latest cvs snapshot.
- add any2djvu.
- add static build switch.
- rename %%name-devel -> lib%%name-devel.

* Sat Dec 31 2005 LAKostis <lakostis at altlinux dot ru> 3.5.15-alt0.cvs20050807.1
- rebuild with new qt.
- remove unwanted menu files.
- fix -devel package.
- spec cleanup.

* Sun Aug 07 2005 LAKostis <lakostis at altlinux dot ru> 3.5.15-alt0.cvs20050807
- latest cvs snapshot.
- fix plugin location and naming.
- update package Buildreq/Req.
- spec cleanup.
- add -devel package.

* Tue Jan 18 2005 ALT QA Team Robot <qa-robot at altlinux.org> 3.5.14-alt1.cvs.1.1
- Rebuilt with libstdc++.so.6.

* Fri Sep 17 2004 ALT QA Team Robot <qa-robot at altlinux.org> 3.5.14-alt1.cvs.1
- Rebuilt with libtiff.so.4.

* Sat Aug 14 2004 LAKostis <lakostis at altlinux dot ru> 3.5.14-alt1.cvs
- version 3.5.14.
- fix for bug #4137.
- fix for djview menu entry.
- spec cleanups.
- add icons and mime-types.
- fixed SMP build.
- updated BuildRequires.

* Thu Sep 18 2003 LAKostis <lakostis at altlinux dot ru> 3.5.13-alt1.cvs
- version 3.5.13
- ripped out docs to separate package.
- spec cleanups.

* Thu Mar 11 2003 LAKostis <lakostis at altlinux.ru> 3.5.10-alt0.1cvs
- CVS snapshot.
- initial build for Sisyphus.

* Thu Feb 6 2003 Leon Bottou <leon@bottou.org> 3.5.10-2
- version 3.5.10-2
* Fri Jan 24 2003 Leon Bottou <leon@bottou.org> 3.5.10-1
- prepared for version 3.5.10
* Wed Oct 9 2002 Leon Bottou <leonb@users.sourceforge.net> 3.5.9-2
- fixed logic for uninstalling nsdejavu links.
- copy stuff from the freshrpms spec file.
* Sun Oct 6 2002 Leon Bottou <leonb@users.sourceforge.net> 3.5.9-1
- added logic to install nsdejavu for mozilla.
* Wed May 29 2002 Leon Bottou <leonb@users.sourceforge.net> 3.5.6-1
- bumped to version 3.5.6-1
* Mon Apr 1 2002 Leon Bottou <leonb@users.sourceforge.net> 3.5.5-2
- changed group to Applications/Publishing
* Tue Mar 25 2002 Leon Bottou <leonb@users.sourceforge.net> 3.5.5-2
* Tue Jan 22 2002 Leon Bottou <leonb@users.sourceforge.net> 3.5.4-2
- fixed for properly locating the man directory.
* Wed Jan 16 2002 Leon Bottou <leonb@users.sourceforge.net> 3.5.3-1
* Fri Dec 7 2001 Leon Bottou <leonb@users.sourceforge.net> 3.5.2-1
* Wed Dec 5 2001 Leon Bottou <leonb@users.sourceforge.net> 3.5.1-1
- created spec file for rh7.x.

 
Проект Geyser основан на коде из проекта Prometheus 2.0, который был доступен по лицензии MIT