source: projects/specs/branches/6/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

Line 
1Summary: DjVu viewer
2Summary(ja): DjVu 画像形式ファイルのビュアー
3Name: djview
4Version: 4.7
5Release: 2%{?_dist_release}
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
54cat > %{name}.desktop <<EOF
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ビュアー
62Exec=%{name} %f
63Comment=Standalone Djvu Viewer
64Comment[ja]=スタンドアロンでDjvu画像を表示するツールです
65Terminal=false
66Icon=%{name}
67EOF
68
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
74
75
76%post
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
83
84%postun
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
91
92%clean
93rm -rf %{buildroot}
94
95
96%files
97%defattr(-, root, root)
98%doc COPYRIGHT COPYING INSTALL NEWS README*
99%{_bindir}
100%{_datadir}/djvu/djview4
101%{_datadir}/applications/%{name}.desktop
102%{_datadir}/icons/hicolor/*/apps/*.png
103%{_mandir}
104
105%files plugin
106%defattr(-, root, root)
107%{_libdir}/mozilla/plugins/nsdejavu.so
108
109
110%changelog
111* Mon May 02 2011 Shu KONNO <owa@bg.wakwak.com> 4.7-2
112- install desktop files
113
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.