-%define _rel 0.1
+# TODO: optflags
+%define _rel 0.3
Summary: Aethera - Email and PIM application
-Summary(pl): Aethera - aplikacja e-mail i zarz±dcy informacji osobistej (PIM)
+Summary(pl.UTF-8): Aethera - aplikacja poczty elektronicznej i zarządcy informacji osobistej (PIM)
Name: aethera
Version: 1.2.1
Release: 050331.%{_rel}
Patch0: %{name}-libs.patch
Patch1: %{name}-includes.patch
Patch2: %{name}-install.patch
+Patch3: %{name}-fpic.patch
+Patch4: %{name}-typo.patch
# Source0-md5: f3efd064b5e9884bd7adf49bf763e213
URL: http://www.thekompany.com/projects/aethera/
BuildRequires: korelib-devel
+BuildRequires: qmake
BuildRequires: qt-devel
#Requires: thekompany-support
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Aethera is a pim application, i.e. it handles all kinds of personal
information: email, contacts, notes, tasks, todos, journals.
-%description -l pl
-Aethera jest aplikacj± zarz±dcy informacji osobistej (PIM). Obs³uguje
-wszystkie rodzaje informacji osobistych: e-mail, kontakty, notatki,
-zadania, sprawy do za³atwienia, dzienniki.
+%description -l pl.UTF-8
+Aethera jest aplikacją zarządcy informacji osobistej (PIM). Obsługuje
+wszystkie rodzaje informacji osobistych: pocztę elektroniczną,
+kontakty, notatki, zadania, sprawy do załatwienia, dzienniki.
%package devel
-Summary: Header files for Aethera
+Summary: Header files for Aethera libraries
+Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Aethery
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
-Header files for Aethera library.
+Header files for Aethera libraries.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe bibliotek Aethery.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%ifarch %{x8664}
+%patch3 -p1
+%endif
+%patch4 -p1
mkdir -p include/aethera
ln -sf ../../aethera/libs/clientskel/clientrmi.h include/aethera
# Compile tkcBase
cd tkcbase
-%if 0
cat <<EOF > defines.pri
TKCBASE_LIB=%{_libdir}
TKCBASE_INCLUDE=%{_includedir}/tkcbase
qmake aethera.pro
%{__make}
-%endif
# Compile KOrganizer plugin
cd ../koplugin
%{__make} -C koplugin install \
INSTALL_ROOT=$RPM_BUILD_ROOT
+# x86 binary
+rm $RPM_BUILD_ROOT%{_libdir}/aethera/bin/sox
+# unneccessary wrappers
+rm $RPM_BUILD_ROOT%{_libdir}/aethera/bin/aethera_sound
+rm $RPM_BUILD_ROOT%{_prefix}/local/bin/aethera
+
%clean
rm -rf $RPM_BUILD_ROOT
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/aethera
-%dir %attr(755,root,root) %{_libdir}/aethera
-%dir %attr(755,root,root) %{_libdir}/aethera/plugins
+%attr(755,root,root) %{_libdir}/libaethera.so.1.0.1
+%attr(755,root,root) %{_libdir}/libfilebrowser.so.1.0.0
+%attr(755,root,root) %{_libdir}/libtino.so.1.0.0
+%attr(755,root,root) %{_libdir}/libtkcbase.so.1.0.0
+%attr(755,root,root) %{_libdir}/libtkcssl.so.1.0.0
+%dir %{_libdir}/aethera
+%dir %{_libdir}/aethera/plugins
+%attr(755,root,root) %{_libdir}/aethera/plugins/libhomeplugin.so.1.0.0
+%attr(755,root,root) %{_libdir}/aethera/plugins/libkomcontactsplugin.so.1.0.0
%attr(755,root,root) %{_libdir}/aethera/plugins/libkommailplugin.so.1.0.0
%attr(755,root,root) %{_libdir}/aethera/plugins/libkomnotesplugin.so.1.0.0
%attr(755,root,root) %{_libdir}/aethera/plugins/libkorganizer.so.1.0.0
-%attr(755,root,root) %{_libdir}/aethera/plugins/libkomcontactsplugin.so.1.0.0
-%dir %{_libdir}/aethera
+%attr(755,root,root) %{_libdir}/aethera/plugins/libmailimport.so.1.0.0
%{_libdir}/aethera/help
%{_libdir}/aethera/pics
%{_libdir}/aethera/sound
%{_libdir}/aethera/data
%dir %{_libdir}/aethera/i18n
+# XXX: are *.ts (translation sources) needed in binary package?
%lang(de) %{_libdir}/aethera/i18n/aethera_de.qm
%lang(de) %{_libdir}/aethera/i18n/aethera_de.ts
%lang(de) %{_libdir}/aethera/i18n/koplugin_de.ts
%files devel
%defattr(644,root,root,755)
+%{_libdir}/libtkwidgets.a
+%{_libdir}/libwebdav.a
%{_includedir}/aethera
%{_includedir}/tino
%{_includedir}/tkcbase