]>
Commit | Line | Data |
---|---|---|
71030823 | 1 | # |
2 | # TODO: - check BRs | |
3 | # | |
4 | # NOTE: | |
5 | # | |
6 | # To generate source package use generate-tarball.sh script included to this spec as SourceX. | |
7 | # Requires: git-core, subversion and sed >= 4.0 | |
8 | # | |
9 | %define ver 0.15 | |
bf9cd02b | 10 | %define rev 4127M |
8513c769 | 11 | %define rel 0.%{rev}.1 |
71030823 | 12 | # |
13 | Summary: PSI - Jabber client | |
14 | Summary(de.UTF-8): PSI - ein Instant Messaging Client-Programm für Jabber | |
15 | Summary(pl.UTF-8): PSI - klient Jabbera | |
16 | Name: psi-plus | |
17 | Version: %{ver}.%{rev} | |
18 | Release: %{rel} | |
19 | License: GPL v2+ / LGPL v2.1+ | |
20 | Group: Applications/Communications | |
751fbf59 | 21 | Source0: %{name}-%{version}.tar.xz |
bf9cd02b | 22 | # Source0-md5: 58f215e685358ef8dc7b7910b846664b |
751fbf59 | 23 | Source1: %{name}-lang.tar.bz2 |
71030823 | 24 | # Source1-md5: cf6d82f53f1f1600a49bb61ba81151bf |
25 | Source2: generate-tarball.sh | |
26 | Patch0: %{name}-fix_configure_for_ksh.patch | |
f57ab9ef | 27 | Patch1: %{name}-customos.patch |
28 | Patch2: %{name}-icon_buttons_big_return-mod.patch | |
29 | Patch3: %{name}-empty_group-fix.patch | |
b7f2a2b7 | 30 | Patch4: %{name}-build.patch |
71030823 | 31 | URL: http://psi-plus.com/ |
32 | BuildRequires: Qt3Support-devel | |
33 | BuildRequires: QtCore-devel | |
34 | BuildRequires: QtDBus-devel | |
35 | BuildRequires: QtNetwork-devel | |
36 | BuildRequires: QtXml-devel | |
37 | BuildRequires: aspell-devel | |
38 | BuildRequires: libstdc++-devel | |
39 | BuildRequires: openssl-devel >= 0.9.7c | |
40 | BuildRequires: qca-devel >= 2.0.0 | |
41 | BuildRequires: qt4-build >= 4.4.0 | |
42 | BuildRequires: qt4-linguist >= 4.4.0 | |
43 | BuildRequires: qt4-qmake >= 4.4.0 | |
44 | BuildRequires: tar >= 1:1.22 | |
45 | BuildRequires: which | |
46 | BuildRequires: xorg-lib-libX11-devel | |
47 | BuildRequires: xorg-lib-libXScrnSaver-devel | |
48 | BuildRequires: xorg-proto-scrnsaverproto-devel | |
49 | BuildRequires: xz >= 1:4.999.7 | |
50 | BuildRequires: zlib-devel | |
51 | Requires: gstreamer-v4l2 | |
71030823 | 52 | Requires: qt4-plugin-qca-ossl |
53 | Suggests: gpgme >= 1.0.0 | |
1e6b34e3 AM |
54 | Provides: psi = %{version}-%{relase} |
55 | Obsoletes: psi < 0.15 | |
71030823 | 56 | Obsoletes: qt-designer-psiwidgets |
57 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
58 | ||
59 | %description | |
60 | PSI is a communicator for the Jabber open messaging system. It is | |
61 | based on the Qt library. It supports SSL encrypted connections. The | |
62 | default behaviour for SSL was changed so that it looks for SSL | |
63 | certificates in $DATADIR/certs or in ~/.psi/certs. | |
64 | ||
65 | Psi+ is a development branch of Psi IM Jabber client. | |
66 | ||
67 | %description -l de.UTF-8 | |
68 | Psi ist ein Instant Messaging (IM) Client-Programm für das | |
69 | Jabber-Protokoll (XMPP), welches das Qt Toolkit nutzt. | |
70 | ||
71 | %description -l pl.UTF-8 | |
72 | PSI jest komunikatorem dla otwartego systemu wiadomości Jabber. Został | |
73 | stworzony w oparciu o bibliotekę Qt. PSI wspiera połączenia szyfrowane | |
74 | SSL. W stosunku do domyślnego zachowania komunikatora została | |
75 | wprowadzona zmiana, która powoduje, że certyfikaty SSL są poszukiwane | |
76 | w katalogu $DATADIR/certs lub ~/.psi/certs. | |
77 | ||
78 | Psi+ jest rozwojową gałęzią komunikatora Psi IM Jabber. | |
79 | ||
80 | %prep | |
751fbf59 | 81 | %setup -q -a 1 |
71030823 | 82 | %patch0 -p0 |
f57ab9ef | 83 | %patch1 -p1 |
71030823 | 84 | %patch2 -p1 |
f57ab9ef | 85 | %patch3 -p1 |
b7f2a2b7 | 86 | %patch4 -p1 |
71030823 | 87 | |
f57ab9ef | 88 | %{__rm} -r third-party |
71030823 | 89 | |
90 | %build | |
91 | ./configure \ | |
92 | --prefix=%{_prefix} \ | |
93 | --datadir=%{_datadir} \ | |
94 | --libdir=%{_libdir} \ | |
95 | --no-separate-debug-info | |
96 | ||
97 | %{__make} | |
98 | ||
99 | cd lang | |
100 | lrelease-qt4 *.ts | |
101 | ||
102 | %install | |
103 | rm -rf $RPM_BUILD_ROOT | |
104 | ||
105 | export QTDIR=%{_libdir}/qt4 | |
106 | ||
107 | install -d $RPM_BUILD_ROOT%{_libdir}/psi/plugins | |
108 | ||
109 | %{__make} install \ | |
110 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
111 | ||
112 | cp -a lang/*.qm $RPM_BUILD_ROOT%{_datadir}/psi/ | |
113 | ||
114 | %clean | |
115 | rm -rf $RPM_BUILD_ROOT | |
116 | ||
117 | %files | |
118 | %defattr(644,root,root,755) | |
119 | %doc README | |
120 | %attr(755,root,root) %{_bindir}/psi-plus | |
121 | %dir %{_datadir}/psi | |
122 | %lang(ar) %{_datadir}/psi/*_ar.qm | |
123 | %lang(ca) %{_datadir}/psi/*_ca.qm | |
124 | %lang(cs) %{_datadir}/psi/*_cs.qm | |
125 | %lang(da) %{_datadir}/psi/*_da.qm | |
126 | %lang(de) %{_datadir}/psi/*_de.qm | |
127 | %lang(el) %{_datadir}/psi/*_el.qm | |
128 | %lang(eo) %{_datadir}/psi/*_eo.qm | |
129 | %lang(es) %{_datadir}/psi/*_es.qm | |
130 | %lang(fi) %{_datadir}/psi/*_fi.qm | |
131 | %lang(fr) %{_datadir}/psi/*_fr.qm | |
132 | %lang(it) %{_datadir}/psi/*_it.qm | |
133 | %lang(jp) %{_datadir}/psi/*_jp.qm | |
134 | %lang(mk) %{_datadir}/psi/*_mk.qm | |
135 | %lang(nl) %{_datadir}/psi/*_nl.qm | |
136 | %lang(pl) %{_datadir}/psi/*_pl.qm | |
137 | %lang(pt_BR) %{_datadir}/psi/*_ptbr.qm | |
138 | %lang(pt) %{_datadir}/psi/*_pt.qm | |
139 | %lang(ru) %{_datadir}/psi/*_ru.qm | |
140 | %lang(se) %{_datadir}/psi/*_se.qm | |
141 | %lang(sk) %{_datadir}/psi/*_sk.qm | |
142 | %lang(sr) %{_datadir}/psi/*_sr.qm | |
143 | %lang(uk) %{_datadir}/psi/*_uk.qm | |
144 | %lang(zh) %{_datadir}/psi/*_zh.qm | |
145 | %dir %{_libdir}/psi | |
146 | %dir %{_libdir}/psi/plugins | |
147 | %{_datadir}/psi/certs | |
148 | %{_datadir}/psi/iconsets | |
149 | %{_datadir}/psi/sound | |
150 | %{_desktopdir}/*.desktop | |
151 | %{_iconsdir}/hicolor/*/*/*.png |