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

Revision 10758, 3.4 KB checked in by ara_t, 8 years ago (diff)

rebuild with gcc-5.4.0

RevLine 
[3762]1Summary: DjVu viewer
[9347]2Summary(ja): DjVu 画像ファイルのビュアー
[3762]3Name: djview
[9347]4Version: 4.9
[10758]5Release: 2%{?_dist_release}
[9347]6License: GPLv2 and BSD
7Group: Applications/Graphics
[3762]8URL: http://djvu.sourceforge.net/djview4.html
[9347]9
[3762]10Source: http://downloads.sourceforge.net/djvu/%{name}-%{version}.tar.gz
[9347]11
12BuildRoot: %{_tmppath}/%{name}-%{version}-root
[3762]13BuildRequires: qt4-devel >= 4.2
14BuildRequires: djvulibre-devel >= 3.5.19
15BuildRequires: desktop-file-utils
[9347]16Requires(post): desktop-file-utils
17Requires(post): shared-mime-info
18Requires(postun): desktop-file-utils
19Requires(postun): shared-mime-info
20
[3762]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
[9347]30Summary: The plug-in files needed for Fx browser.
31Summary(ja): Fx ウェブブラウザ用の DjView プラグイン
[3762]32Group: Applications/Internet
33Requires: %{name} = %{version}
34Obsoletes: djvulibre-plugin <= 3.5.22
35
36%description plugin
[9347]37Djview 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`
45make %{?_smp_mflags}
46
47
48%install
49rm -rf %{buildroot}
50make DESTDIR=%{buildroot} install
51mv %{buildroot}/%{_libdir}/netscape %{buildroot}/%{_libdir}/mozilla
52
[3769]53cat > %{name}.desktop <<EOF
[3762]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ビュアー
[3769]61Exec=%{name} %f
[3762]62Comment=Standalone Djvu Viewer
63Comment[ja]=スタンドアロンでDjvu画像を表示するツールです
64Terminal=false
[3769]65Icon=%{name}
[3762]66EOF
67
[3769]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
[3762]73
74
75%post
[9347]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 || :
[3769]81if [ -x /usr/bin/gtk-update-icon-cache ]; then
[9347]82    /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
[3769]83fi
[3762]84
85%postun
[9347]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
[3769]93fi
[3762]94
95%clean
96rm -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
[10758]114* Thu Sep 01 2016 Toshiaki Ara <ara_t@384.jp> - 4.9-2
115- rebuild with gcc-5.4.0
116
[9347]117* Mon Feb 09 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 4.9-1
118- updated to 4.9
119- built with current VineSeed
120- moved to Applications/Graphics
121- used 'fx' as browser name at plugin subpackage summary
122
[3769]123* Mon May 02 2011 Shu KONNO <owa@bg.wakwak.com> 4.7-2
124- install desktop files
125
[3762]126* Sun May 01 2011 Shu KONNO <owa@bg.wakwak.com> 4.7-1
127- initial build for VineLinux
128
Note: See TracBrowser for help on using the repository browser.