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