1 | Summary: DjVu viewer |
---|
2 | Summary(ja): DjVu 画像ファイルのビュアー |
---|
3 | Name: djview |
---|
4 | Version: 4.9 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | License: GPLv2 and BSD |
---|
7 | Group: Applications/Graphics |
---|
8 | URL: http://djvu.sourceforge.net/djview4.html |
---|
9 | |
---|
10 | Source: http://downloads.sourceforge.net/djvu/%{name}-%{version}.tar.gz |
---|
11 | |
---|
12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
13 | BuildRequires: qt4-devel >= 4.2 |
---|
14 | BuildRequires: djvulibre-devel >= 3.5.19 |
---|
15 | BuildRequires: desktop-file-utils |
---|
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 | |
---|
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 |
---|
30 | Summary: The plug-in files needed for Fx browser. |
---|
31 | Summary(ja): Fx ウェブブラウザ用の DjView プラグイン |
---|
32 | Group: Applications/Internet |
---|
33 | Requires: %{name} = %{version} |
---|
34 | Obsoletes: djvulibre-plugin <= 3.5.22 |
---|
35 | |
---|
36 | %description plugin |
---|
37 | Djview plug-in files for fx browser. |
---|
38 | |
---|
39 | |
---|
40 | %prep |
---|
41 | %setup -q -n djview4-%{version} |
---|
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 | |
---|
53 | cat > %{name}.desktop <<EOF |
---|
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ビュアー |
---|
61 | Exec=%{name} %f |
---|
62 | Comment=Standalone Djvu Viewer |
---|
63 | Comment[ja]=スタンドアロンでDjvu画像を表示するツールです |
---|
64 | Terminal=false |
---|
65 | Icon=%{name} |
---|
66 | EOF |
---|
67 | |
---|
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 |
---|
73 | |
---|
74 | |
---|
75 | %post |
---|
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 || : |
---|
81 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
82 | /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor |
---|
83 | fi |
---|
84 | |
---|
85 | %postun |
---|
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 |
---|
93 | fi |
---|
94 | |
---|
95 | %clean |
---|
96 | rm -rf %{buildroot} |
---|
97 | |
---|
98 | |
---|
99 | %files |
---|
100 | %defattr(-, root, root) |
---|
101 | %doc COPYRIGHT COPYING INSTALL NEWS README* |
---|
102 | %{_bindir} |
---|
103 | %{_datadir}/djvu/djview4 |
---|
104 | %{_datadir}/applications/%{name}.desktop |
---|
105 | %{_datadir}/icons/hicolor/*/apps/*.png |
---|
106 | %{_mandir}/* |
---|
107 | |
---|
108 | %files plugin |
---|
109 | %defattr(-, root, root) |
---|
110 | %{_libdir}/mozilla/plugins/nsdejavu.so |
---|
111 | |
---|
112 | |
---|
113 | %changelog |
---|
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 | |
---|
120 | * Mon May 02 2011 Shu KONNO <owa@bg.wakwak.com> 4.7-2 |
---|
121 | - install desktop files |
---|
122 | |
---|
123 | * Sun May 01 2011 Shu KONNO <owa@bg.wakwak.com> 4.7-1 |
---|
124 | - initial build for VineLinux |
---|
125 | |
---|