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

Revision 3769, 3.1 KB checked in by owa, 13 years ago (diff)

rebuilt:djview,python-django,python-kconv,python-pykf,python-tornado,sodipodi,tokyocabinet

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