2 %bcond_with kde # integrate with KDE to use KDE styles
4 Summary: QuiteInsane - Qt-based graphical frontend for SANE
5 Summary(pl.UTF-8): QuiteInsane - oparty na Qt graficzny interfejs do SANE
10 Group: X11/Applications/Graphics
11 Source0: http://dl.sourceforge.net/quiteinsane/%{name}-%{version}.tar.gz
12 # Source0-md5: f07006e5de95a6c326166696638ca3b5
13 Source1: http://dl.sourceforge.net/quiteinsane/%{name}_cs.qm.gz
14 # Source1-md5: 685234aba48c8bf58b07c581df98a836
15 Source2: http://dl.sourceforge.net/quiteinsane/%{name}_fr.qm.gz
16 # Source2-md5: 68f9f2be094903df01d6c2134e806cce
17 Patch0: %{name}-qtstyle.patch
18 URL: http://quiteinsane.sourceforge.net/index.shtml
19 %{?with_kde:BuildRequires: kdelibs-devel}
20 BuildRequires: qt-devel >= 1:3.0.1
21 BuildRequires: sane-backends-devel >= 1.0.3
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 QuiteInsane is a graphical frontend for SANE ("Scanner Access Now
26 Easy"). The intention behind SANE is to provide a standard application
27 programming interface to access raster scanner hardware.
29 %description -l pl.UTF-8
30 QuiteInsane to graficzny interfejs do SANE (projektu mającego na celu
31 dostarczenie standardowego interfejsu programistycznego do dostępu do
41 %{?with_kde:--enable-kde-app}
45 rm -rf $RPM_BUILD_ROOT
48 DESTDIR=$RPM_BUILD_ROOT
50 gzip -dc %{SOURCE1} > $RPM_BUILD_ROOT%{_datadir}/%{name}/locale/%{name}_cs.qm
51 gzip -dc %{SOURCE2} > $RPM_BUILD_ROOT%{_datadir}/%{name}/locale/%{name}_fr.qm
53 # TODO: check if our qt can read translations from its own de/LC_MESSAGES/qt.qm
54 #rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/locale/qt_de.qm
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
61 %doc AUTHORS BUGS ChangeLog PROBLEMS README TODO
62 %attr(755,root,root) %{_bindir}/*
63 %dir %{_datadir}/%{name}
64 %{_datadir}/%{name}/doc
65 %dir %{_datadir}/%{name}/locale
66 %lang(cs) %{_datadir}/%{name}/locale/*cs.qm
67 %lang(de) %{_datadir}/%{name}/locale/*de.qm
68 %lang(es) %{_datadir}/%{name}/locale/*es.qm
69 %lang(fr) %{_datadir}/%{name}/locale/*fr.qm
70 %lang(ru) %{_datadir}/%{name}/locale/*ru.qm