X-Git-Url: http://git.pld-linux.org/?p=packages%2Faethera.git;a=blobdiff_plain;f=aethera.spec;h=c18e41c6f27de6f3e95ab15119764ac61d6d2427;hp=7131347c18f99c3db80e2837ba21dc5dcd133648;hb=HEAD;hpb=0539190260dd3e142fa2d49fbf1a0d1323aaa905 diff --git a/aethera.spec b/aethera.spec index 7131347..c18e41c 100644 --- a/aethera.spec +++ b/aethera.spec @@ -1,6 +1,7 @@ -%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} @@ -9,9 +10,13 @@ Group: X11/Applications Source0: %{name}-%{version}.tar.gz 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) @@ -20,110 +25,142 @@ 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 libraries +Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Aethery +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +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 +ln -sf ../../aethera/libs/clientskel/vfsmodule.h include/aethera %build export QTDIR=/usr +export QMAKE_STRIP=: + # Use the new libraries in building process export LD_LIBRARY_PATH=$dir/lib:$LD_LIBRARY_PATH dir=$(pwd) - -mkdir -p include/aethera -ln -sf ../../aethera/libs/clientskel/clientrmi.h include/aethera -ln -sf ../../aethera/libs/clientskel/vfsmodule.h include/aethera - # Compile tkcBase cd tkcbase -echo > defines.pri -echo "TKCBASE_LIB="$dir/lib >> defines.pri -echo "TKCBASE_INCLUDE="$dir/tkcbase >> defines.pri -echo "CONFIG += release thread" >> defines.pri +cat < defines.pri +TKCBASE_LIB=%{_libdir} +TKCBASE_INCLUDE=%{_includedir}/tkcbase +CONFIG += release thread +EOF qmake desktop.pro %{__make} # Compile tkcSSL cd ../tkcssl -echo > defines.pri -echo "TKCSSL_LIB="$dir/lib >> defines.pri -echo "TKCSSL_INCLUDE="$dir/tkcssl >> defines.pri -echo "INCLUDEPATH += "$dir/tkcbase >> defines.pri -echo "DEPENDPATH += "$dir/tkcbase >> defines.pri -echo "CONFIG += release thread" >> defines.pri +cat < defines.pri +TKCSSL_LIB=%{_libdir} +TKCSSL_INCLUDE=%{_includedir}/tkcssl +INCLUDEPATH += $dir/tkcbase +DEPENDPATH += $dir/tkcbase +CONFIG += release thread +EOF qmake tkcssl.pro %{__make} # Compile webdav cd ../webdav -echo > defines.pri -echo "WEBDAV_LIB="$dir/lib/ >> defines.pri -echo "WEBDAV_INCLUDE="$dir/tkcbase >> defines.pri -echo "CONFIG += release thread" >> defines.pri +cat < defines.pri +WEBDAV_LIB=%{_libdir} +WEBDAV_INCLUDE=%{_includedir}/tkcbase +CONFIG += release thread +EOF qmake webdav.pro %{__make} # Compile Aethera cd ../aethera -echo > defines.pri -echo "AETHERA_DIR="$dir/lib/theKompany/Aethera >> defines.pri -echo "AETHERA_BIN="$dir/bin >> defines.pri -echo "AETHERA_LIB="$dir/tkcbase >> defines.pri -echo "AETHERA_INCLUDE="$dir/include/aethera/ >> defines.pri -echo "AETHERA_INCLUDES="$dir/include/aethera/ >> defines.pri -echo "TINO_LIB="$dir/lib/lib >> defines.pri -echo "TINO_INCLUDE="$dir/include/tino >> defines.pri -echo "INCLUDEPATH += "$dir/include >> defines.pri -echo "INCLUDEPATH += "$dir/tkcbase >> defines.pri -echo "DEPENDPATH += "$dir/tkcbase >> defines.pri -echo "INCLUDEPATH += "$dir/tkcssl >> defines.pri -echo "DEPENDPATH += "$dir/tkcssl >> defines.pri - -echo "CONFIG += qt warn_on release thread" >> defines.pri +cat < defines.pri +AETHERA_DIR=%{_libdir}/aethera +AETHERA_BIN=%{_bindir} +AETHERA_LIB=%{_libdir} +AETHERA_INCLUDE=%{_includedir}/aethera +TINO_LIB=%{_libdir} +TINO_INCLUDE=%{_includedir}/tino +INCLUDEPATH += $dir/include +INCLUDEPATH += $dir/tkcbase +DEPENDPATH += $dir/tkcbase +INCLUDEPATH += $dir/tkcssl +DEPENDPATH += $dir/tkcssl + +CONFIG += qt warn_on release thread +EOF qmake aethera.pro %{__make} # Compile KOrganizer plugin cd ../koplugin -echo > defines.pri -echo "AETHERA_DIR="$dir/lib >> defines.pri -echo "INCLUDEPATH += "$dir/include >> defines.pri -echo "INCLUDEPATH += "$dir/tkcbase >> defines.pri -echo "DEPENDPATH += "$dir/tkcbase >> defines.pri -echo "INCLUDEPATH += "$dir/tkcssl >> defines.pri -echo "DEPENDPATH += "$dir/tkcssl >> defines.pri -echo "INCLUDEPATH += "$dir/aethera/libs >> defines.pri -echo "DEPENDPATH += "$dir/aethera/libs >> defines.pri -echo "INCLUDEPATH += "$dir/aethera/libs/aethera >> defines.pri -echo "DEPENDPATH += "$dir/aethera/libs/aethera >> defines.pri -echo "INCLUDEPATH += "$direbdav/webdav >> defines.pri -echo "DEPENDPATH += "$dir/webdav/webdav >> defines.pri -echo "INCLUDEPATH += "$dir/aethera/libs/clientskel >> defines.pri -echo "DEPENDPATH += "$dir/aethera/libs/clientskel >> defines.pri - -echo "INCLUDEPATH += "$dir/include/aethera/libs/plugins/kommailplugin >> defines.pri -echo "DEPENDPATH += "$dir/include/aethera/libs/plugins/kommailplugin >> defines.pri -echo "INCLUDEPATH += "$dir/include/aethera/libs/plugins/komcontactsplugin >> defines.pri -echo "DEPENDPATH += "$dir/include/aethera/libs/plugins/komcontactsplugin >> defines.pri -echo "INCLUDEPATH += "$dir/include/tino >> defines.pri -echo "DEPENDPATH += "$dir/include/tino >> defines.pri - -echo "CONFIG += qt warn_on release thread" >> defines.pri -echo "DEFINES += AETHERA_KOLAB" >> defines.pri +cat < defines.pri +AETHERA_DIR = %{_libdir}/aethera + +INCLUDEPATH += $dir/include +INCLUDEPATH += $dir/tkcbase +DEPENDPATH += $dir/tkcbase + +INCLUDEPATH += $dir/tkcssl +DEPENDPATH += $dir/tkcssl + +INCLUDEPATH += $dir/aethera/libs +DEPENDPATH += $dir/aethera/libs + +INCLUDEPATH += $dir/aethera/libs/aethera +DEPENDPATH += $dir/aethera/libs/aethera + +INCLUDEPATH += $direbdav/webdav +DEPENDPATH += $dir/webdav/webdav + +INCLUDEPATH += $dir/aethera/libs/clientskel +DEPENDPATH += $dir/aethera/libs/clientskel + +INCLUDEPATH += $dir/include/aethera/libs/plugins/kommailplugin +DEPENDPATH += $dir/include/aethera/libs/plugins/kommailplugin + +INCLUDEPATH += $dir/include/aethera/libs/plugins/komcontactsplugin +DEPENDPATH += $dir/include/aethera/libs/plugins/komcontactsplugin + +INCLUDEPATH += $dir/include/tino +DEPENDPATH += $dir/include/tino + +CONFIG += qt warn_on release thread +DEFINES += AETHERA_KOLAB +EOF qmake KOPlugin.pro %{__make} %install rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_libdir}/aethera + export QTDIR=/usr %{__make} -C tkcbase install \ INSTALL_ROOT=$RPM_BUILD_ROOT @@ -133,9 +170,69 @@ export QTDIR=/usr INSTALL_ROOT=$RPM_BUILD_ROOT %{__make} -C aethera install \ INSTALL_ROOT=$RPM_BUILD_ROOT +%{__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 +%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/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 +%lang(en) %{_libdir}/aethera/i18n/aethera_en.ts +%lang(en) %{_libdir}/aethera/i18n/koplugin_en.ts +%lang(fr) %{_libdir}/aethera/i18n/aethera_fr.qm +%lang(fr) %{_libdir}/aethera/i18n/aethera_fr.ts +%lang(fr) %{_libdir}/aethera/i18n/koplugin_fr.qm +%lang(fr) %{_libdir}/aethera/i18n/koplugin_fr.ts +%lang(pt) %{_libdir}/aethera/i18n/aethera_pt.qm +%lang(pt) %{_libdir}/aethera/i18n/aethera_pt.ts +%lang(pt) %{_libdir}/aethera/i18n/koplugin_pt.qm +%lang(pt) %{_libdir}/aethera/i18n/koplugin_pt.ts +%lang(pt) %{_libdir}/aethera/i18n/qt_pt.qm +%lang(pt) %{_libdir}/aethera/i18n/qt_pt.ts +%lang(ru) %{_libdir}/aethera/i18n/aethera_ru.qm +%lang(ru) %{_libdir}/aethera/i18n/aethera_ru.ts +%{_desktopdir}/aethera.desktop +%{_iconsdir}/hicolor/*/apps/aethera.png +%{_pixmapsdir}/*.png + +%files devel +%defattr(644,root,root,755) +%{_libdir}/libtkwidgets.a +%{_libdir}/libwebdav.a +%{_includedir}/aethera +%{_includedir}/tino +%{_includedir}/tkcbase +%{_includedir}/tkcssl