source: projects/specs/trunk/d/djview/djview-vl.spec @ 9347

Revision 9347, 3.4 KB checked in by inagaki, 9 years ago (diff)

2015-02-10 Ryoichi INAGAKI <ryo1@…>

  • djview, mtpaint, mtpaint-handbook, wmakerconf: updated


Line 
1Summary: DjVu viewer
2Summary(ja): DjVu 画像ファイルのビュアー
3Name: djview
4Version: 4.9
5Release: 1%{?_dist_release}
6License: GPLv2 and BSD
7Group: Applications/Graphics
8URL: http://djvu.sourceforge.net/djview4.html
9
10Source: http://downloads.sourceforge.net/djvu/%{name}-%{version}.tar.gz
11
12BuildRoot: %{_tmppath}/%{name}-%{version}-root
13BuildRequires: qt4-devel >= 4.2
14BuildRequires: djvulibre-devel >= 3.5.19
15BuildRequires: desktop-file-utils
16Requires(post): desktop-file-utils
17Requires(post): shared-mime-info
18Requires(postun): desktop-file-utils
19Requires(postun): shared-mime-info
20
21Distribution: Project Vine
22Vendor: Vine Linux
23Packager: owa
24
25%description
26DjView4 is a viewer and browser plugin for DjVu documents,
27based on the DjVuLibre-3.5 library and the Qt4 toolkit.
28
29%package plugin
30Summary: The plug-in files needed for Fx browser.
31Summary(ja): Fx ウェブブラウザ用の DjView プラグイン
32Group: Applications/Internet
33Requires: %{name} = %{version}
34Obsoletes: djvulibre-plugin <= 3.5.22
35
36%description plugin
37Djview 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`
45make %{?_smp_mflags}
46
47
48%install
49rm -rf %{buildroot}
50make DESTDIR=%{buildroot} install
51mv %{buildroot}/%{_libdir}/netscape %{buildroot}/%{_libdir}/mozilla
52
53cat > %{name}.desktop <<EOF
54[Desktop Entry]
55Encoding=UTF-8
56Type=Application
57Categories=Application;Graphics;
58MimeType=image/x-djvu;image/x.djvu;image/vnd.djvu;
59Name=DjView
60Name[ja]=Djvuビュアー
61Exec=%{name} %f
62Comment=Standalone Djvu Viewer
63Comment[ja]=スタンドアロンでDjvu画像を表示するツールです
64Terminal=false
65Icon=%{name}
66EOF
67
68desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications %{name}.desktop
69mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps
70mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps
71install -m644 ./desktopfiles/hi32-djview4.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
72install -m644 ./desktopfiles/hi64-djview4.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
73
74
75%post
76touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
77
78%posttrans
79update-desktop-database -q &> /dev/null ||:
80update-mime-database %{_datadir}/mime > /dev/null 2>&1 || :
81if [ -x /usr/bin/gtk-update-icon-cache ]; then
82    /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
83fi
84
85%postun
86if [ $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
93fi
94
95%clean
96rm -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
Note: See TracBrowser for help on using the repository browser.