[3762] | 1 | Summary: DjVu viewer |
---|
[9347] | 2 | Summary(ja): DjVu 画像ファイルのビュアー |
---|
[3762] | 3 | Name: djview |
---|
[9347] | 4 | Version: 4.9 |
---|
| 5 | Release: 1%{?_dist_release} |
---|
| 6 | License: GPLv2 and BSD |
---|
| 7 | Group: Applications/Graphics |
---|
[3762] | 8 | URL: http://djvu.sourceforge.net/djview4.html |
---|
[9347] | 9 | |
---|
[3762] | 10 | Source: http://downloads.sourceforge.net/djvu/%{name}-%{version}.tar.gz |
---|
[9347] | 11 | |
---|
| 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[3762] | 13 | BuildRequires: qt4-devel >= 4.2 |
---|
| 14 | BuildRequires: djvulibre-devel >= 3.5.19 |
---|
| 15 | BuildRequires: desktop-file-utils |
---|
[9347] | 16 | Requires(post): desktop-file-utils |
---|
| 17 | Requires(post): shared-mime-info |
---|
| 18 | Requires(postun): desktop-file-utils |
---|
| 19 | Requires(postun): shared-mime-info |
---|
| 20 | |
---|
[3762] | 21 | Distribution: Project Vine |
---|
| 22 | Vendor: Vine Linux |
---|
| 23 | Packager: owa |
---|
| 24 | |
---|
| 25 | %description |
---|
| 26 | DjView4 is a viewer and browser plugin for DjVu documents, |
---|
| 27 | based on the DjVuLibre-3.5 library and the Qt4 toolkit. |
---|
| 28 | |
---|
| 29 | %package plugin |
---|
[9347] | 30 | Summary: The plug-in files needed for Fx browser. |
---|
| 31 | Summary(ja): Fx ウェブブラウザ用の DjView プラグイン |
---|
[3762] | 32 | Group: Applications/Internet |
---|
| 33 | Requires: %{name} = %{version} |
---|
| 34 | Obsoletes: djvulibre-plugin <= 3.5.22 |
---|
| 35 | |
---|
| 36 | %description plugin |
---|
[9347] | 37 | Djview plug-in files for fx browser. |
---|
[3762] | 38 | |
---|
| 39 | |
---|
| 40 | %prep |
---|
[9347] | 41 | %setup -q -n djview4-%{version} |
---|
[3762] | 42 | |
---|
| 43 | %build |
---|
| 44 | %configure QTDIR=`pkg-config --variable=prefix Qt` |
---|
| 45 | make %{?_smp_mflags} |
---|
| 46 | |
---|
| 47 | |
---|
| 48 | %install |
---|
| 49 | rm -rf %{buildroot} |
---|
| 50 | make DESTDIR=%{buildroot} install |
---|
| 51 | mv %{buildroot}/%{_libdir}/netscape %{buildroot}/%{_libdir}/mozilla |
---|
| 52 | |
---|
[3769] | 53 | cat > %{name}.desktop <<EOF |
---|
[3762] | 54 | [Desktop Entry] |
---|
| 55 | Encoding=UTF-8 |
---|
| 56 | Type=Application |
---|
| 57 | Categories=Application;Graphics; |
---|
| 58 | MimeType=image/x-djvu;image/x.djvu;image/vnd.djvu; |
---|
| 59 | Name=DjView |
---|
| 60 | Name[ja]=Djvuビュアー |
---|
[3769] | 61 | Exec=%{name} %f |
---|
[3762] | 62 | Comment=Standalone Djvu Viewer |
---|
| 63 | Comment[ja]=スタンドアロンでDjvu画像を表示するツールです |
---|
| 64 | Terminal=false |
---|
[3769] | 65 | Icon=%{name} |
---|
[3762] | 66 | EOF |
---|
| 67 | |
---|
[3769] | 68 | desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications %{name}.desktop |
---|
| 69 | mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps |
---|
| 70 | mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps |
---|
| 71 | install -m644 ./desktopfiles/hi32-djview4.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/%{name}.png |
---|
| 72 | install -m644 ./desktopfiles/hi64-djview4.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps/%{name}.png |
---|
[3762] | 73 | |
---|
| 74 | |
---|
| 75 | %post |
---|
[9347] | 76 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 77 | |
---|
| 78 | %posttrans |
---|
| 79 | update-desktop-database -q &> /dev/null ||: |
---|
| 80 | update-mime-database %{_datadir}/mime > /dev/null 2>&1 || : |
---|
[3769] | 81 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
[9347] | 82 | /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor |
---|
[3769] | 83 | fi |
---|
[3762] | 84 | |
---|
| 85 | %postun |
---|
[9347] | 86 | if [ $1 -eq 0 ] ; then |
---|
| 87 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 88 | update-desktop-database -q &> /dev/null ||: |
---|
| 89 | update-mime-database %{_datadir}/mime > /dev/null 2>&1 || : |
---|
| 90 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
| 91 | /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor |
---|
| 92 | fi |
---|
[3769] | 93 | fi |
---|
[3762] | 94 | |
---|
| 95 | %clean |
---|
| 96 | rm -rf %{buildroot} |
---|
| 97 | |
---|
| 98 | |
---|
| 99 | %files |
---|
| 100 | %defattr(-, root, root) |
---|
[3769] | 101 | %doc COPYRIGHT COPYING INSTALL NEWS README* |
---|
[3762] | 102 | %{_bindir} |
---|
| 103 | %{_datadir}/djvu/djview4 |
---|
[3769] | 104 | %{_datadir}/applications/%{name}.desktop |
---|
| 105 | %{_datadir}/icons/hicolor/*/apps/*.png |
---|
[9347] | 106 | %{_mandir}/* |
---|
[3762] | 107 | |
---|
| 108 | %files plugin |
---|
| 109 | %defattr(-, root, root) |
---|
| 110 | %{_libdir}/mozilla/plugins/nsdejavu.so |
---|
| 111 | |
---|
| 112 | |
---|
| 113 | %changelog |
---|
[9347] | 114 | * Mon Feb 09 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 4.9-1 |
---|
| 115 | - updated to 4.9 |
---|
| 116 | - built with current VineSeed |
---|
| 117 | - moved to Applications/Graphics |
---|
| 118 | - used 'fx' as browser name at plugin subpackage summary |
---|
| 119 | |
---|
[3769] | 120 | * Mon May 02 2011 Shu KONNO <owa@bg.wakwak.com> 4.7-2 |
---|
| 121 | - install desktop files |
---|
| 122 | |
---|
[3762] | 123 | * Sun May 01 2011 Shu KONNO <owa@bg.wakwak.com> 4.7-1 |
---|
| 124 | - initial build for VineLinux |
---|
| 125 | |
---|