|
@@ -1,16 +1,23 @@
|
|
|
Summary: DjVu viewer
|
|
|
-Summary(ja): DjVu 画像形式ファイルのビュアー
|
|
|
+Summary(ja): DjVu 画像ファイルのビュアー
|
|
|
Name: djview
|
|
|
-Version: 4.7
|
|
|
-Release: 2%{?_dist_release}
|
|
|
-License: GPL
|
|
|
-Group: Applications/Publishing
|
|
|
+Version: 4.9
|
|
|
+Release: 1%{?_dist_release}
|
|
|
+License: GPLv2 and BSD
|
|
|
+Group: Applications/Graphics
|
|
|
URL: http://djvu.sourceforge.net/djview4.html
|
|
|
+
|
|
|
Source: http://downloads.sourceforge.net/djvu/%{name}-%{version}.tar.gz
|
|
|
+
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
BuildRequires: qt4-devel >= 4.2
|
|
|
BuildRequires: djvulibre-devel >= 3.5.19
|
|
|
BuildRequires: desktop-file-utils
|
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
+Requires(post): desktop-file-utils
|
|
|
+Requires(post): shared-mime-info
|
|
|
+Requires(postun): desktop-file-utils
|
|
|
+Requires(postun): shared-mime-info
|
|
|
+
|
|
|
Distribution: Project Vine
|
|
|
Vendor: Vine Linux
|
|
|
Packager: owa
|
|
@@ -20,18 +27,18 @@ DjView4 is a viewer and browser plugin for DjVu documents,
|
|
|
based on the DjVuLibre-3.5 library and the Qt4 toolkit.
|
|
|
|
|
|
%package plugin
|
|
|
-Summary: The plug-in files needed for firefox.
|
|
|
+Summary: The plug-in files needed for Fx browser.
|
|
|
+Summary(ja): Fx ウェブブラウザ用の DjView プラグイン
|
|
|
Group: Applications/Internet
|
|
|
Requires: %{name} = %{version}
|
|
|
Obsoletes: djvulibre-plugin <= 3.5.22
|
|
|
|
|
|
%description plugin
|
|
|
-Djview plug-in files for firefox.
|
|
|
+Djview plug-in files for fx browser.
|
|
|
|
|
|
|
|
|
%prep
|
|
|
-%setup -q
|
|
|
-
|
|
|
+%setup -q -n djview4-%{version}
|
|
|
|
|
|
%build
|
|
|
%configure QTDIR=`pkg-config --variable=prefix Qt`
|
|
@@ -43,14 +50,6 @@ rm -rf %{buildroot}
|
|
|
make DESTDIR=%{buildroot} install
|
|
|
mv %{buildroot}/%{_libdir}/netscape %{buildroot}/%{_libdir}/mozilla
|
|
|
|
|
|
-# Remove symlinks to djview when there are alternatives
|
|
|
-if test -x /usr/sbin/update-alternatives ; then
|
|
|
- test -h %{buildroot}%{_bindir}/djview \
|
|
|
- && rm %{buildroot}%{_bindir}/djview
|
|
|
- test -h %{buildroot}%{_mandir}/man1/djview.1 \
|
|
|
- && rm %{buildroot}%{_mandir}/man1/djview.1
|
|
|
-fi
|
|
|
-
|
|
|
cat > %{name}.desktop <<EOF
|
|
|
[Desktop Entry]
|
|
|
Encoding=UTF-8
|
|
@@ -74,19 +73,23 @@ install -m644 ./desktopfiles/hi64-djview4.png $RPM_BUILD_ROOT%{_datadir}/icons/h
|
|
|
|
|
|
|
|
|
%post
|
|
|
-update-desktop-database -q
|
|
|
-update-mime-database /usr/share/mime > /dev/null 2>&1 || :
|
|
|
-touch %{_datadir}/icons/hicolor
|
|
|
+touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
|
|
|
+
|
|
|
+%posttrans
|
|
|
+update-desktop-database -q &> /dev/null ||:
|
|
|
+update-mime-database %{_datadir}/mime > /dev/null 2>&1 || :
|
|
|
if [ -x /usr/bin/gtk-update-icon-cache ]; then
|
|
|
- /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
|
|
|
+ /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
|
|
|
fi
|
|
|
|
|
|
%postun
|
|
|
-update-desktop-database -q
|
|
|
-update-mime-database /usr/share/mime > /dev/null 2>&1 || :
|
|
|
-touch %{_datadir}/icons/hicolor
|
|
|
-if [ -x /usr/bin/gtk-update-icon-cache ]; then
|
|
|
- /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
|
|
|
+if [ $1 -eq 0 ] ; then
|
|
|
+ touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
|
|
|
+ update-desktop-database -q &> /dev/null ||:
|
|
|
+ update-mime-database %{_datadir}/mime > /dev/null 2>&1 || :
|
|
|
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
|
|
|
+ /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
|
|
|
+ fi
|
|
|
fi
|
|
|
|
|
|
%clean
|
|
@@ -100,7 +103,7 @@ rm -rf %{buildroot}
|
|
|
%{_datadir}/djvu/djview4
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
%{_datadir}/icons/hicolor/*/apps/*.png
|
|
|
-%{_mandir}
|
|
|
+%{_mandir}/*
|
|
|
|
|
|
%files plugin
|
|
|
%defattr(-, root, root)
|
|
@@ -108,6 +111,12 @@ rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Mon Feb 09 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 4.9-1
|
|
|
+- updated to 4.9
|
|
|
+- built with current VineSeed
|
|
|
+- moved to Applications/Graphics
|
|
|
+- used 'fx' as browser name at plugin subpackage summary
|
|
|
+
|
|
|
* Mon May 02 2011 Shu KONNO <owa@bg.wakwak.com> 4.7-2
|
|
|
- install desktop files
|
|
|
|