Kevin Kofler 40ad31
Summary: PIM Storage Service
Kevin Kofler 40ad31
Name:    akonadi
Than Ngo 54e141
Version: 1.0.0
Rex Dieter 84e443
Release: 4%{?dist}
Kevin Kofler 40ad31
Kevin Kofler 40ad31
Group:   System Environment/Libraries
Kevin Kofler 40ad31
License: LGPLv2+
Than Ngo 54e141
URL:     http://download.akonadi-project.org/
Than Ngo 54e141
Source0:  http://akonadi.omat.nl/akonadi-%{version}.tar.bz2
Kevin Kofler 40ad31
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Kevin Kofler 40ad31
Kevin Kofler 40ad31
BuildRequires: cmake
Kevin Kofler 40ad31
BuildRequires: qt4-devel >= 4.4
Rex Dieter 9e420d
BuildRequires: automoc4
Kevin Kofler 40ad31
BuildRequires: mysql-devel
Rex Dieter 9e420d
BuildRequires: mysql-server
Kevin Kofler 40ad31
# for xsltproc
Kevin Kofler 40ad31
BuildRequires: libxslt
Kevin Kofler 40ad31
BuildRequires: shared-mime-info
Kevin Kofler 40ad31
Rex Dieter 391aba
# when/if akonadi grows support for other backends, consider splitting
Rex Dieter 391aba
# these similar to how phonon is done currently.
Rex Dieter 84e443
Requires: qt4-mysql
Rex Dieter 84e443
# not *strictly* required, leave out for now, until we have something in
Rex Dieter 84e443
# fedora that actively uses akonadi.
Rex Dieter 84e443
#Requires(hint): mysql-server
Rex Dieter 9e420d
Rex Dieter 9e420d
Requires(post): /sbin/ldconfig
Rex Dieter 9e420d
Requires(postun): /sbin/ldconfig
Rex Dieter 9e420d
Kevin Kofler 40ad31
%description
Kevin Kofler 40ad31
%{summary}.
Rex Dieter 48ecce
Requires an available instance of mysql server at runtime.  
Rex Dieter 48ecce
Akonadi can spawn a per-user one automatically if the mysql-server 
Rex Dieter 48ecce
package is installed on the machine.
Rex Dieter 48ecce
See also: %{_sysconfdir}/akonadi/mysql-global.conf
Rex Dieter 84e443
Kevin Kofler 40ad31
Kevin Kofler 40ad31
%package devel
Kevin Kofler 40ad31
Summary: Developer files for %{name}
Kevin Kofler 40ad31
Group:   Development/Libraries
Kevin Kofler 40ad31
Requires: %{name} = %{version}-%{release}
Kevin Kofler 763262
Requires: qt4-devel
Kevin Kofler 888938
Requires: pkgconfig
Kevin Kofler 40ad31
%description devel
Kevin Kofler 40ad31
%{summary}.
Kevin Kofler 40ad31
Rex Dieter 84e443
Kevin Kofler 40ad31
%prep
Rex Dieter 208c76
%setup -q 
Kevin Kofler 40ad31
Rex Dieter 84e443
Kevin Kofler 40ad31
%build
Rex Dieter 9e420d
Rex Dieter 9e420d
mkdir -p %{_target_platform}
Rex Dieter 9e420d
pushd %{_target_platform}
Rex Dieter 9e420d
%{cmake} \
Rex Dieter 9e420d
  -DCONFIG_INSTALL_DIR=%{_sysconfdir} \
Rex Dieter 9e420d
  ..
Rex Dieter 9e420d
popd
Rex Dieter 9e420d
Rex Dieter 9e420d
make %{?_smp_mflags} -C %{_target_platform}
Kevin Kofler 40ad31
Rex Dieter 84e443
Kevin Kofler 40ad31
%install
Kevin Kofler 40ad31
rm -rf $RPM_BUILD_ROOT
Rex Dieter 9e420d
make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
Kevin Kofler 40ad31
Rex Dieter 84e443
Kevin Kofler 40ad31
%clean
Kevin Kofler 40ad31
rm -rf $RPM_BUILD_ROOT
Kevin Kofler 40ad31
Rex Dieter 84e443
Kevin Kofler 40ad31
%post
Kevin Kofler 40ad31
/sbin/ldconfig
Kevin Kofler 40ad31
update-mime-database %{_datadir}/mime &> /dev/null || :
Kevin Kofler 40ad31
Kevin Kofler 40ad31
%postun
Kevin Kofler 40ad31
/sbin/ldconfig
Kevin Kofler 40ad31
update-mime-database %{_datadir}/mime &> /dev/null || :
Kevin Kofler 40ad31
Rex Dieter 84e443
Kevin Kofler 40ad31
%files
Kevin Kofler 40ad31
%defattr(-,root,root,-)
Kevin Kofler 40ad31
%doc AUTHORS lgpl-license
Kevin Kofler 40ad31
%dir %{_sysconfdir}/akonadi/
Kevin Kofler 40ad31
%config(noreplace) %{_sysconfdir}/akonadi/mysql-global.conf
Kevin Kofler 40ad31
%{_bindir}/akonadi_control
Kevin Kofler 40ad31
%{_bindir}/akonadictl
Kevin Kofler 40ad31
%{_bindir}/akonadiserver
Kevin Kofler 40ad31
%{_libdir}/libakonadi*.so.*
Kevin Kofler 40ad31
%{_datadir}/dbus-1/interfaces/
Kevin Kofler 888938
%{_datadir}/dbus-1/services/org.freedesktop.Akonadi.Control.service
Kevin Kofler 40ad31
%{_datadir}/mime/packages/akonadi-mime.xml
Kevin Kofler 40ad31
Kevin Kofler 40ad31
%files devel
Kevin Kofler 40ad31
%defattr(-,root,root,-)
Kevin Kofler 40ad31
%{_includedir}/akonadi/
Kevin Kofler 888938
%{_libdir}/pkgconfig/akonadi.pc
Kevin Kofler 40ad31
%{_libdir}/libakonadi*.so
Kevin Kofler 40ad31
Rex Dieter 84e443
Kevin Kofler 40ad31
%changelog
Rex Dieter 84e443
* Wed Oct 22 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0.0-4
Rex Dieter 84e443
- drop Requires: mysql-server (for now), mention in %%description
Rex Dieter 84e443
Rex Dieter 391aba
* Wed Jul 30 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0.0-3
Rex Dieter 391aba
- Requires: mysql-server
Rex Dieter 391aba
Rex Dieter 9e420d
* Wed Jul 30 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0.0-2
Rex Dieter 9e420d
- BR: mysql-server
Rex Dieter 5909d8
- Requires: qt4-mysql
Rex Dieter 9e420d
- cleanup spec
Rex Dieter 9e420d
Than Ngo 54e141
* Wed Jul 23 2008 Than Ngo <than@redhat.com> -  1.0.0-1
Than Ngo 54e141
- 1.0.0
Than Ngo 54e141
Rex Dieter 208c76
* Wed Jun 18 2008 Rex Dieter <rdieter@fedoraproject.org> 0.82.0-1
Rex Dieter 208c76
- akonadi-0.82.0
Rex Dieter 208c76
Kevin Kofler 455b89
* Tue Jun  3 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 0.81.0-0.2.20080526svn812787
Kevin Kofler 455b89
- BR automoc, drop automoc hack
Kevin Kofler 455b89
Kevin Kofler 7379ea
* Mon May 26 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 0.81.0-0.1.20080526svn812787
Kevin Kofler 7379ea
- update to revision 812787 from KDE SVN (to match KDE 4.1 Beta 1)
Kevin Kofler b8dd49
- restore builtin automoc4 for now
Kevin Kofler 888938
- update file list, require pkgconfig in -devel (.pc file now included)
Kevin Kofler 7379ea
Kevin Kofler 763262
* Mon May  5 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 0.80.0-2
Kevin Kofler 763262
- -devel: remove bogus Requires: pkgconfig
Kevin Kofler 763262
Kevin Kofler 40ad31
* Sat May  3 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 0.80.0-1
Kevin Kofler 40ad31
- first Fedora package