- added patch (workaround) http://bugzilla.ximian.com/show_bug.cgi?id=68533
[packages/evolution-data-server.git] / evolution-data-server.spec
1 #
2 # todo:
3 # - system libical
4 #
5 %define         mver            1.0
6
7 Summary:        Evolution data server
8 Summary(pl):    Serwer danych Evolution
9 Name:           evolution-data-server
10 Version:        1.0.2
11 Release:        2
12 License:        GPL
13 Group:          Libraries
14 Source0:        http://ftp.gnome.org/pub/gnome/sources/%{name}/1.0/%{name}-%{version}.tar.bz2
15 # Source0-md5:  ca13b5dd751cd30c55e889d9a07e70fb
16 Patch0:         %{name}-system_db.patch
17 Patch1:         %{name}-GG-IM.patch
18 Patch2:         %{name}-configure.patch
19 Patch3:         %{name}-workaround-cal-backend-leak.patch
20 URL:            http://www.ximian.com/products/ximian_evolution/
21 BuildRequires:  ORBit2-devel >= 1:2.10.3
22 BuildRequires:  autoconf >= 2.52
23 BuildRequires:  automake
24 BuildRequires:  db-devel
25 BuildRequires:  gnome-common >= 2.8.0
26 BuildRequires:  intltool
27 BuildRequires:  libgnome-devel >= 2.6.1.1
28 BuildRequires:  libsoup-devel >= 2.2.0
29 BuildRequires:  libtool
30 BuildRequires:  openldap-devel
31 BuildRequires:  pkgconfig
32 Requires(post,postun):  /sbin/ldconfig
33 Requires(post,postun):  /usr/bin/scrollkeeper-update
34 Requires(post):         GConf2
35 Requires:       libsoup >= 2.2.0
36 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38 %description
39 The Evolution data server for the calendar and addressbook.
40
41 %description -l pl
42 Serwer danych Evolution dla kalendarza i ksi±¿ki adresowej.
43
44 %package devel
45 Summary:        Evolution data server development files
46 Summary(pl):    Pliki programistyczne serwera danych evolution
47 Group:          Development/Libraries
48 Requires:       %{name} = %{version}-%{release}
49 # for all but libegroupwise
50 Requires:       GConf2-devel >= 2.6.2
51 Requires:       ORBit2-devel >= 1:2.10.3
52 Requires:       glib2-devel >= 1:2.4.4
53 Requires:       libbonobo-devel >= 2.6.2
54 Requires:       libgnome-devel >= 2.6.1.1
55 Requires:       libxml2-devel
56 # for libegroupwise
57 Requires:       libsoup-devel >= 2.2.0
58
59 %description devel
60 This package contains the files necessary to develop applications
61 using Evolution's data server libraries.
62
63 %description devel -l pl
64 Ten pakiet zawiera pliki potrzebne do tworzenia aplikacji
65 korzystaj±cych z bibliotek serwera danych Evolution.
66
67 %package static
68 Summary:        Evolution data server static libraries
69 Summary(pl):    Statyczne biblioteki serwera danych Evolution
70 Group:          Development/Libraries
71 Requires:       %{name}-devel = %{version}-%{release}
72
73 %description static
74 Evolution data server static libraries.
75
76 %description static -l pl
77 Statyczne biblioteki serwera danych Evolution.
78
79 %prep
80 %setup -q 
81 %patch0 -p1
82 %patch1 -p1
83 %patch2 -p1
84 %patch3 -p1
85
86 rm -rf libdb
87
88 %build
89 glib-gettextize --copy --force
90 intltoolize --copy --force
91 %{__libtoolize}
92 %{__aclocal}
93 %{__autoheader}
94 %{__autoconf}
95 %{__automake}
96
97 cd calendar/libical
98 %{__libtoolize}
99 %{__aclocal}
100 %{__autoheader}
101 %{__autoconf}
102 %{__automake}
103 cd ../..
104
105 %configure \
106         --enable-gtk-doc \
107         --enable-static \
108         --with-openldap=yes
109
110 %{__make} \
111         HTML_DIR=%{_gtkdocdir} \
112         GTKHTML_DATADIR=%{_datadir}/idl 
113
114 %install
115 rm -rf $RPM_BUILD_ROOT
116
117 %{__make} install \
118         DESTDIR=$RPM_BUILD_ROOT \
119         GTKHTML_DATADIR=%{_datadir}/idl \
120         HTML_DIR=%{_gtkdocdir} \
121         pkgconfigdir=%{_pkgconfigdir}
122
123 rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
124
125 %find_lang %{name} --all-name
126
127 %clean
128 rm -rf $RPM_BUILD_ROOT
129
130 %post
131 /sbin/ldconfig
132 /usr/bin/scrollkeeper-update
133 %gconf_schema_install
134
135 %postun
136 /sbin/ldconfig
137 /usr/bin/scrollkeeper-update
138
139 %files -f %{name}.lang
140 %defattr(644,root,root,755)
141 %doc AUTHORS ChangeLog NEWS* README
142 %attr(755,root,root) %{_libdir}/%{name}-1.0
143 %attr(755,root,root) %{_libdir}/*.so.*.*
144 %{_libdir}/bonobo/servers/*
145 %{_datadir}/idl/*
146 %dir %{_datadir}/%{name}-%{mver}
147 %{_datadir}/%{name}-%{mver}/zoneinfo
148 %{_datadir}/%{name}-%{mver}/*.schema
149
150 %files devel
151 %defattr(644,root,root,755)
152 %attr(755,root,root) %{_libdir}/*.so
153 %{_libdir}/*.la
154 %{_includedir}/*
155 %{_pkgconfigdir}/*
156 %{_gtkdocdir}/*
157
158 %files static
159 %defattr(644,root,root,755)
160 %{_libdir}/*.a
This page took 0.072215 seconds and 3 git commands to generate.