spec: install the translations
[trojita.git] / trojita.spec
blobae718e639c81fc667ad73f1128e792469f6f552d
2 # spec file for package trojita
4 # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
6 # All modifications and additions to the file contributed by third parties
7 # remain the property of their copyright owners, unless otherwise agreed
8 # upon. The license for this file, and modifications and additions to the
9 # file, is the same license as for the pristine package itself (unless the
10 # license for the pristine package is not an Open Source License, in which
11 # case the license is the MIT License). An "Open Source License" is a
12 # license that conforms to the Open Source Definition (Version 1.9)
13 # published by the Open Source Initiative.
15 # Please submit bugfixes or comments via http://bugs.opensuse.org/
18 Name: trojita
19 Version: 0.3
20 Release: 1
21 # Almost everything: dual-licensed under the GPLv2 or GPLv3
22 # (with KDE e.V. provision for relicensing)
23 # src/XtConnect: BSD
24 # src/Imap/Parser/3rdparty/kcodecs.*: LGPLv2
25 # Nokia imports: LGPLv2.1 or GPLv3
26 # src/Imap/Parser/3rdparty/rfccodecs.cpp: LGPLv2+
27 # src/qwwsmtpclient/: GPLv2
28 License: (GPLv2 or GPLv3) and BSD and LGPLv2 and (LGPLv2.1 or GPLv3) and LGPLv2+ and GPLv2
29 Summary: Qt IMAP e-mail client
30 Url: http://trojita.flaska.net/
31 Group: Productivity/Networking/Email/Clients
32 Source: http://sourceforge.net/projects/trojita/files/src/%{name}-%{version}.tar.bz2
33 %if 0%{?fedora}
34 BuildRequires: qt-webkit-devel >= 4.6
35 BuildRequires: libstdc++-devel gcc-c++
36 %define qmake_command qmake-qt4
37 %endif
38 %if 0%{?rhel_version} || 0%{?centos_version}
39 BuildRequires: qtwebkit-devel >= 4.6
40 BuildRequires: libstdc++-devel gcc-c++
41 %define qmake_command qmake-qt4
42 %endif
43 %if 0%{?suse_version} || 0%{?sles_version}
44 BuildRequires: pkgconfig(QtGui) >= 4.6
45 BuildRequires: pkgconfig(QtWebKit) >= 4.6
46 BuildRequires: libQtWebKit-devel
47 BuildRequires: update-desktop-files
48 %define qmake_command qmake
49 %endif
50 BuildRoot: %{_tmppath}/%{name}-%{version}-build
52 %description
53 Trojita is a Qt IMAP e-mail client which:
54 * Enables you to access your mail anytime, anywhere.
55 * Does not slow you down. If we can improve the productivity of an e-mail user, we better do.
56 * Respects open standards and facilitates modern technologies. We value the vendor-neutrality that IMAP provides and are committed to be as interoperable as possible.
57 * Is efficient — be it at conserving the network bandwidth, keeping memory use at a reasonable level or not hogging the system's CPU.
58 * Can be used on many platforms. One UI is not enough for everyone, but our IMAP core works fine on anything from desktop computers to cell phones and big ERP systems.
59 * Plays well with the rest of the ecosystem. We don't like reinventing wheels, but when the existing wheels quite don't fit the tracks, we're not afraid of making them work.
61 %prep
62 %setup -q
64 %build
65 %qmake_command CONFIG+=debug PREFIX=/usr
66 make %{?_smp_mflags}
68 %install
69 make %{?_smp_mflags} INSTALL_ROOT=%{buildroot} install
70 %if 0%{?suse_version} || 0%{?sles_version}
71 %suse_update_desktop_file %{buildroot}/%{_datadir}/applications/trojita.desktop
72 %endif
74 %clean
75 %{?buildroot:rm -rf "%{buildroot}"}
77 %files
78 %defattr(-,root,root)
79 %doc LICENSE README
80 %{_bindir}/trojita
81 %{_datadir}/applications/trojita.desktop
82 %dir %{_datadir}/icons/hicolor
83 %dir %{_datadir}/icons/hicolor/*
84 %dir %{_datadir}/icons/hicolor/*/apps
85 %{_datadir}/icons/hicolor/32x32/apps/trojita.png
86 %{_datadir}/icons/hicolor/scalable/apps/trojita.svg
87 %{_datadir}/trojita/locale/trojita_common_*.qm
89 %check
90 make test
92 %changelog