akonadi/akonadi.spec

398 lines
14 KiB
RPMSpec
Raw Normal View History

%define gccver %(gcc -dumpversion)
Name: akonadi
Version: 16.08.3
Release: 1mamba
Summary: PIM Storage Service
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Davide Madrisan <davide.madrisan@gmail.com>
URL: http://pim.kde.org/akonadi/
Source: http://download.kde.org/stable/applications/%{version}/src/akonadi-%{version}.tar.xz
Patch0: akonadi-16.04.2-qt-5.7.0-sqlite3.patch
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libkauth-devel
BuildRequires: libkcodecs-devel
BuildRequires: libkcompletion-devel
BuildRequires: libkconfig-devel
BuildRequires: libkconfigwidgets-devel
BuildRequires: libkcoreaddons-devel
BuildRequires: libkdbusaddons-devel
BuildRequires: libki18n-devel
BuildRequires: libkiconthemes-devel
BuildRequires: libkio-devel
BuildRequires: libkitemmodels-devel
BuildRequires: libkitemviews-devel
BuildRequires: libkservice-devel
BuildRequires: libkwidgetsaddons-devel
BuildRequires: libkwindowsystem-devel
BuildRequires: libkxmlgui-devel
BuildRequires: libqt5-devel
BuildRequires: libsqlite-devel
BuildRequires: libstdc++6-devel
BuildRequires: libxml2-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
BuildRequires: automoc4
BuildRequires: libqt5-devel >= 5.6.1
Requires: libqt5-mysql
Requires: mariadb >= 10.1
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Provides: akonadi5
Obsoletes: akonadi5
Conflicts: akonadi4
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
PIM Storage Service.
This package contains the server and control files.
%package -n lib%{name}
Group: System/Libraries
Summary: Static libraries and headers for %{name}
Provides: libakonadi5
Obsoletes: libakonadi5
%description -n lib%{name}
PIM Storage Service.
This package contains static libraries and header files need for development.
%description
PIM Storage Service.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Static libraries and headers for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: libstdc++6-devel == %{gccver}
Provides: libakonadi5-devel
Obsoletes: libakonadi5-devel
Conflicts: libakonadi4-devel
%description -n lib%{name}-devel
PIM Storage Service.
This package contains static libraries and header files need for development.
%prep
%setup -q -n akonadi-%{version}
#-D -T
#:<< _EOF
#%patch0 -p1
%build
#:<< _EOF
%cmake_kde5 -d build \
-DDATABASE_BACKEND=MYSQL
# -DCONFIG_INSTALL_DIR:PATH=%{_sysconfdir} \
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
#install -d -m0755 %{buildroot}%{_sysconfdir}/xprofile.d/
#cat >> %{buildroot}%{_sysconfdir}/xprofile.d/akonadi.sh << _EOF
## set akonadi default backend db to QSQLITE3 when mysqld is not installed
#if [ ! -e %{_sbindir}/mysqld -a -e ~/.config/akonadi/akonadiserverrc -a ! -e ~/.config/akonadi.backup.mysqld ]; then
# [ "`grep "Driver=QMYSQL" ~/.config/akonadi/akonadiserverrc`" ] && mv ~/.config/akonadi ~/.config/akonadi.backup.mysqld
#fi
#_EOF
#chmod +x %{buildroot}%{_sysconfdir}/xprofile.d/akonadi.sh
install -d -m0755 %{buildroot}%{_sysconfdir}/prelink.conf.d
cat > %{buildroot}%{_sysconfdir}/prelink.conf.d/akonadi.conf << _EOF
-b %{_bindir}/akonadi_rds
-b %{_bindir}/akonadictl
-b %{_bindir}/akonadiserver
-b %{_bindir}/asapcat
_EOF
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
/sbin/ldconfig
update-mime-database %{_datadir}/mime &> /dev/null || :
%postun
/sbin/ldconfig
update-mime-database %{_datadir}/mime &> /dev/null || :
%files
%defattr(-,root,root)
%{_sysconfdir}/prelink.conf.d/akonadi.conf
%{_sysconfdir}/xdg/akonadi.categories
%dir %{_sysconfdir}/xdg/akonadi
%{_sysconfdir}/xdg/akonadi/mysql-global-mobile.conf
%{_sysconfdir}/xdg/akonadi/mysql-global.conf
%{_bindir}/akonadi*
%{_bindir}/asapcat
%{_datadir}/akonadi/agents/knutresource.desktop
%{_datadir}/config.kcfg/resourcebase.kcfg
%{_datadir}/dbus-1/services/org.freedesktop.Akonadi.*
%{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.*
%{_datadir}/mime/packages/akonadi-mime.xml
%files -n lib%{name}
%defattr(-,root,root)
%{_kde5_libdir}/libKF5Akonadi*.so.*
%{_qt5_plugindir}/sqldrivers/libqsqlite3.so
%{_qt5_plugindir}/designer/akonadi5widgets.so
%{_qt5_plugindir}/akonadi/akonadi_test_searchplugin.so
%{_kde5_datadir}/kf5/akonadi/akonadi-xml.xsd
%{_kde5_datadir}/kf5/akonadi/kcfg2dbus.xsl
%{_kde5_datadir}/kf5/akonadi_knut_resource/knut-template.xml
%doc AUTHORS NEWS README
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_kde5_includedir}/akonadi/
%{_kde5_includedir}/akonadi/*
%dir %{_kde5_includedir}/Akonadi*
%{_kde5_includedir}/Akonadi*/*
%{_kde5_includedir}/akonadi_version.h
%{_kde5_libdir}/libKF5Akonadi*.so
%dir %{_kde5_libdir}/cmake/KF5Akonadi
%{_kde5_libdir}/cmake/KF5Akonadi/KF5Akonadi*.cmake
%{_libdir}/qt5/mkspecs/modules/qt_Akonadi*.pri
%changelog
* Thu Nov 10 2016 Automatic Build System <autodist@mambasoft.it> 16.08.3-1mamba
- automatic version update by autodist
* Tue Oct 18 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 16.08.2-3mamba
- rebuilt with mysql database backend
- require libqt5-mysql and mariadb > 10.1
* Tue Oct 18 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 16.08.2-2mamba
- removed requirement for libqt5-sqlite
* Thu Oct 13 2016 Automatic Build System <autodist@mambasoft.it> 16.08.2-1mamba
- automatic version update by autodist
* Tue Oct 11 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 16.08.1-2mamba
- disable binaries prelinking causing akonadiserver not to run anymore
* Thu Sep 08 2016 Automatic Build System <autodist@mambasoft.it> 16.08.1-1mamba
- automatic version update by autodist
* Tue Aug 30 2016 Automatic Build System <autodist@mambasoft.it> 16.08.0-1mamba
- automatic version update by autodist
* Tue Jul 12 2016 Automatic Build System <autodist@mambasoft.it> 16.04.3-1mamba
- automatic version update by autodist
* Fri Jul 01 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 16.04.2-3mamba
- rebuild with default CONFIG_INSTALL_DIR
* Thu Jun 30 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 16.04.2-2mamba
- uptream patch to re-enable sqlite3 backend after Qt 5.7.0
* Tue Jun 14 2016 Automatic Build System <autodist@mambasoft.it> 16.04.2-1mamba
- automatic version update by autodist
* Mon Jun 13 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 16.04.1-3mamba
- rebuilt with qt 5.6.1
* Sat Jun 04 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 16.04.1-2mamba
- rebuilt with gcc 6.1.0 and needs rebuild at every gcc upgrade
* Wed May 11 2016 Automatic Build System <autodist@mambasoft.it> 16.04.1-1mamba
- automatic version update by autodist
* Sun Apr 24 2016 Automatic Build System <autodist@mambasoft.it> 16.04.0-1mamba
- automatic version update by autodist
* Tue Mar 15 2016 Automatic Build System <autodist@mambasoft.it> 15.12.3-1mamba
- automatic version update by autodist
* Sun Feb 21 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 15.12.2-3mamba
- definitely move dbus file to akonadi package
* Sun Feb 21 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 15.12.2-2mamba
- moded dbus interface files to -devel package
* Wed Feb 17 2016 Automatic Build System <autodist@mambasoft.it> 15.12.2-1mamba
- automatic version update by autodist
* Mon Feb 15 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 15.12.1-2mamba
- rename back from akonadi5 to akonadi
* Tue Jan 12 2016 Automatic Build System <autodist@mambasoft.it> 15.12.1-1mamba
- automatic version update by autodist
* Fri Jan 01 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 15.12.0-2mamba
- renamed from akonadi to akonadi5
* Sun Dec 20 2015 Automatic Build System <autodist@mambasoft.it> 15.12.0-1mamba
- automatic version update by autodist
* Tue Nov 10 2015 Automatic Build System <autodist@mambasoft.it> 15.08.3-1mamba
- automatic version update by autodist
* Tue Oct 13 2015 Automatic Build System <autodist@mambasoft.it> 15.08.2-1mamba
- automatic version update by autodist
* Sun Sep 20 2015 Automatic Build System <autodist@mambasoft.it> 15.08.1-1mamba
- automatic version update by autodist
* Wed Aug 26 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 15.08.0-1mamba
- update to 15.08.0
* Sat Jan 24 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.13.0-4mamba
- rebuilt
* Tue Sep 30 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.13.0-3mamba
- fix default to QSQLITE3 for database backend
* Sun Aug 31 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.13.0-2mamba
- install qt sqlite3 plugin in correct directory
* Thu Aug 21 2014 Automatic Build System <autodist@mambasoft.it> 1.13.0-1mamba
- automatic version update by autodist
* Tue Apr 08 2014 Automatic Build System <autodist@mambasoft.it> 1.12.1-1mamba
- automatic version update by autodist
* Wed Mar 26 2014 Automatic Build System <autodist@mambasoft.it> 1.12.0-1mamba
- automatic version update by autodist
* Sun Dec 08 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.11.0-1mamba
- update to 1.11.0
* Thu Dec 05 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.10.3-2mamba
- rebuilt with libboost 1.45
* Tue Oct 15 2013 Automatic Build System <autodist@mambasoft.it> 1.10.3-1mamba
- update to 1.10.3
* Fri Jul 26 2013 Automatic Build System <autodist@mambasoft.it> 1.10.2-1mamba
- automatic version update by autodist
* Tue Jul 23 2013 Automatic Build System <autodist@mambasoft.it> 1.10.1-1mamba
- automatic version update by autodist
* Sun Jul 21 2013 Automatic Build System <autodist@mambasoft.it> 1.10.0-1mamba
- automatic update by autodist
* Mon Jun 17 2013 Automatic Build System <autodist@mambasoft.it> 1.9.80-1mamba
- automatic version update by autodist
* Mon May 06 2013 Automatic Build System <autodist@mambasoft.it> 1.9.2-1mamba
- automatic version update by autodist
* Sat Mar 09 2013 Automatic Build System <autodist@mambasoft.it> 1.9.1-1mamba
- automatic version update by autodist
* Fri Jan 11 2013 Automatic Build System <autodist@mambasoft.it> 1.9.0-1mamba
- automatic version update by autodist
* Mon Nov 19 2012 Automatic Build System <autodist@mambasoft.it> 1.8.80-1mamba
- automatic version update by autodist
* Fri Oct 26 2012 Automatic Build System <autodist@mambasoft.it> 1.8.1-1mamba
- automatic version update by autodist
* Wed Aug 01 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.0-1mamba
- update to 1.8.0
* Wed Mar 14 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.7.1-1mamba
- update to 1.7.1
* Mon Feb 06 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.7.0-1mamba
- update to 1.7.0
* Fri Nov 04 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.2-1mamba
- update to 1.6.2
* Mon Jun 20 2011 Automatic Build System <autodist@mambasoft.it> 1.5.80-1mamba
- automatic update by autodist
* Mon Jun 06 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.3-1mamba
- update to 1.5.3
* Sun Jun 05 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.1-2mamba
- set Sqlite3 as the default db backend
- added xprofile script to set Sqlite3 as default backend for user (when mysqld is not installed)
* Mon Mar 14 2011 Automatic Build System <autodist@mambasoft.it> 1.5.1-1mamba
- automatic update by autodist
* Wed Feb 23 2011 Automatic Build System <autodist@mambasoft.it> 1.5.0-1mamba
- automatic update by autodist
* Mon Dec 27 2010 Automatic Build System <autodist@mambasoft.it> 1.4.90-1mamba
- automatic update by autodist
* Sun Dec 19 2010 Automatic Build System <autodist@mambasoft.it> 1.4.85-1mamba
- automatic update by autodist
* Wed Dec 15 2010 Automatic Build System <autodist@mambasoft.it> 1.4.80-1mamba
- automatic update by autodist
* Wed Nov 10 2010 Automatic Build System <autodist@mambasoft.it> 1.4.1-1mamba
- automatic update by autodist
* Mon Sep 20 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.0-3mamba
- patched to use QSQLITE as default backend driver (internally optimized QSQLITE3 crashes)
- removed requirements for mysql components
* Tue Sep 14 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.0-2mamba
- added requirement for mysql-client
* Fri Aug 13 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.0-1mamba
- update to 1.4.0
* Wed Jul 07 2010 Automatic Build System <autodist@mambasoft.it> 1.3.90-1mamba
- automatic update by autodist
* Mon Jun 14 2010 Automatic Build System <autodist@mambasoft.it> 1.3.85-1mamba
- automatic update by autodist
* Sat Mar 13 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.1-1mamba
- update to 1.3.1
* Tue Jan 26 2010 Davide Madrisan <davide.madrisan@gmail.com> 1.3.0-1mamba
- update to 1.3.0
* Tue Jan 19 2010 Davide Madrisan <davide.madrisan@gmail.com> 1.2.90-1mamba
- update to 1.2.90
* Fri Nov 06 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.1-2mamba
- added requirement for libqt4-mysql
* Sat Aug 29 2009 Automatic Build System <autodist@mambasoft.it> 1.2.1-1mamba
- automatic update by autodist
* Sun Aug 02 2009 Automatic Build System <autodist@mambasoft.it> 1.2.0-1mamba
- automatic update by autodist
* Wed Jul 01 2009 Automatic Build System <autodist@mambasoft.it> 1.1.95-1mamba
- automatic update by autodist
* Sun Jun 07 2009 Automatic Build System <autodist@mambasoft.it> 1.1.90-2mamba
- automatic rebuild by autodist
* Thu Jun 04 2009 Automatic Build System <autodist@mambasoft.it> 1.1.90-1mamba
- automatic update by autodist
* Fri May 29 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.85-1mamba
- update to 1.1.85
- added requirement for mysql
* Thu Feb 05 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.1-1mamba
- automatic update by autodist
* Tue Oct 07 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.0-1mamba
- update to 1.0.0
- package renamed to akonadi, library moved to libakonadi* packages
* Tue Jun 10 2008 Aleph0 <aleph0@openmamba.org> 812787-1mamba
- package created by autospec