djview/djview.spec

105 lines
2.8 KiB
RPMSpec
Raw Normal View History

Name: djview
Version: 4.8
Release: 1mamba
Summary: A portable DjVu viewer
Group: Graphical Desktop/Applications/Publishing
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://djvu.sourceforge.net/djview4.html
Source: http://downloads.sourceforge.net/djvu/djview-%{version}.tar.gz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libdjvulibre-devel
BuildRequires: libgcc
BuildRequires: libqt4-devel
BuildRequires: libstdc++6-devel
BuildRequires: libtiff-devel
BuildRequires: libX11-devel
BuildRequires: libXext-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
DjView4 is a new portable DjVu viewer and browser plugin.
Highlights:
Entirely based on the public djvulibre api.
Entirely written in portable Qt4.
Works with Qt/X11, Qt/Mac, and Qt/Windows.
Continuous scrolling of pages
Side-by-side display of pages
Ability to specify a url to the djview command
All plugin and cgi options available from the command line
All silly annotations implemented
Display thumbnails as a grid
Display outlines
Page names supported (see djvused command set-page-title)
Metadata dialog (see djvused command set-meta)
Implemented as reusable Qt widgets
%package mozilla-plugin
Summary: DjVuLibre plugin for web browsers
Group: Applications/Web
Provides: djvulibre15-plugins
Obsoletes: djvulibre15-plugins
Provides: djvulibre-plugins
Obsoletes: djvulibre-plugins
%description mozilla-plugin
DjView4 is a new portable DjVu viewer and browser plugin.
Highlights:
Entirely based on the public djvulibre api.
Entirely written in portable Qt4.
Works with Qt/X11, Qt/Mac, and Qt/Windows.
Continuous scrolling of pages
Side-by-side display of pages
Ability to specify a url to the djview command
All plugin and cgi options available from the command line
All silly annotations implemented
Display thumbnails as a grid
Display outlines
Page names supported (see djvused command set-page-title)
Metadata dialog (see djvused command set-meta)
Implemented as reusable Qt widgets
This package contains the mozilla-based plugin for browsers.
%prep
%setup -q
%build
export QTDIR=/usr/lib/qt4
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall plugindir=%{_libdir}/mozilla/plugins
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/djview
%{_bindir}/djview4
%dir %{_datadir}/djvu/djview4
%{_datadir}/djvu/djview4/*
%{_mandir}/man1/djview.1*
%{_mandir}/man1/djview4.1*
%doc COPYING
%files mozilla-plugin
%defattr(-,root,root)
%{_libdir}/mozilla/plugins/nsdejavu.so
%{_mandir}/man1/nsdejavu.1*
%changelog
* Mon Dec 12 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 4.8-1mamba
- package created by autospec