Пакет openchange: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 | %def_enable python %def_enable server %define samba_version 4.5.12 # Licensing Note: The code is GPLv3+ and the IDL files are public domain. Name: openchange Version: 2.4 Release: alt13.zentyal23%ubt.5 Group: Networking/Mail Summary: Provides access to Microsoft Exchange servers using native protocols License: GPLv3+ and Public Domain Url: http://www.openchange.org/ # VCS: https://github.com/zentyal/openchange Source: %name-%version.tar Patch: %name-%version-alt.patch BuildRequires(pre): rpm-build-ubt BuildRequires(pre): rpm-build-apache2 BuildRequires(pre): apache2-common BuildRequires(pre): rpm-build-python BuildRequires: flex BuildRequires: libtalloc-devel BuildRequires: libtevent-devel BuildRequires: libldb-devel BuildRequires: libtdb-devel BuildRequires: bison BuildRequires: samba-DC-devel >= %samba_version BuildRequires: samba-DC-util-private-headers = %samba_version BuildRequires: python-module-samba-DC BuildRequires: samba-DC-pidl BuildRequires: doxygen BuildRequires: libical-devel BuildRequires: libmagic-devel BuildRequires: libmysqlclient-devel BuildRequires: libmemcached-devel >= 1.0.18 BuildRequires: libnanomsg-devel BuildRequires: libpopt-devel BuildRequires: libsqlite3-devel BuildRequires: libxslt BuildRequires: python-devel BuildRequires: zlib-devel BuildRequires: python-module-pylons BuildRequires: python-module-PasteScript BuildRequires: python-module-PasteDeploy %filter_from_requires /^\/usr\/%_lib\/samba-dc\/lib/d ### Patches ### # OpenChange's libmapi conflicts with Zarafa's libmapi. # Zarafa is older than OpenChange, so it wins. # Patch10: libmapi-0.8.2-libmapi-conflict.patch # RH bug #552984 # Patch11: openchange-0.9-generate-xml-doc.patch %description OpenChange aims to provide a portable Open Source implementation of Microsoft Exchange Server and Exchange protocols. Exchange is a groupware server designed to work with Microsoft Outlook, and providing features such as a messaging server, shared calendars, contact databases, public folders, notes and tasks. OpenChange provides libraries to access Microsoft Exchange servers using native protocols. %package -n libmapi Summary: libmapi is a Main client-side library Group: System/Libraries Requires: samba-DC-libs %description -n libmapi Main client-side library. libmapi closely reflects the underlying protocol operations (Exchange RPC) being performed between the client and the server. %package -n libmapiadmin Summary: Administration client library for the MAPI (Exchange/Outlook) protocol Group: System/Libraries Requires: libmapi = %version-%release %description -n libmapiadmin Library that allows remote administration of MAPI (Exchange/Outlook) servers. %package -n libmapiproxy Summary: Proxy library for the MAPI (Exchange/Outlook) protocol Group: System/Libraries Requires: libmapi = %version-%release %description -n libmapiproxy This is a library that allows proxying of the MAPI (Exchange/Outlook) protocol. %package -n libmapistore Summary: Storage library for MAPI objects Group: System/Libraries Requires: samba-DC-libs %description -n libmapistore Library that can store arbitrary MAPI objects. %package -n libocpf Summary: Scripting library for the MAPI protocol Group: System/Libraries Requires: libmapi = %version-%release %description -n libocpf Library that reads and runs files in the OCPF scripting language, a domain-specific language for the MAPI protocol. Currently implemented features include sending and receiving mail and enumerating the address book. %package devel Summary: Developer tools for OpenChange libraries Group: Development/C Requires: libmapi = %version-%release Requires: libmapiadmin = %version-%release Requires: libocpf = %version-%release %if_enabled server Requires: libmapiproxy = %version-%release Requires: libmapistore = %version-%release %endif Requires: samba-DC-devel Requires: samba-DC-util-private-headers = %samba_version %description devel This package provides the development tools and headers for OpenChange, providing libraries to access Microsoft Exchange servers using native protocols. %package client Summary: User tools for OpenChange libraries Group: Networking/Mail Requires: libmapi = %version-%release Requires: libmapiadmin = %version-%release Requires: libocpf = %version-%release %if_enabled server Requires: libmapistore = %version-%release %endif %description client This package provides the user tools for OpenChange, providing access to Microsoft Exchange servers using native protocols. %package -n python-module-%name Summary: Python bindings for OpenChange libraries Group: Development/Python Requires: libmapi = %version-%release %description -n python-module-%name This module contains a wrapper that allows the use of OpenChange via Python. %package server Summary: Server-side modules for OpenChange Group: System/Servers Requires: libmapi = %version-%release Requires: sqlite3 %description server This package provides the server elements for OpenChange. %package ocsmanager Summary: OpenChange - web services Group: Networking/Mail Requires: apache2-common Requires: python-module-pylons Requires: python-module-PasteScript %description ocsmanager This packages provides web services for OpenChange in the form of a Pylons application. %package rpcproxy Summary: OpenChange - RPC-over-HTTP proxy Group: Networking/Mail Requires: apache2-mod_wsgi %description rpcproxy This package contains a a RPC-over-HTTP python implementation for Samba, using wsgi. %prep %setup -q %patch -p1 ln -s %_includedir/samba-4.0/private/lib lib ln -s %_includedir/samba-4.0/private/libcli libcli %build mkdir -p bin mkdir -p setup/mapistore ./autogen.sh %configure \ %if_enabled python --enable-pymapi \ %endif --with-modulesdir=%_libdir/samba-dc # Parallel builds prohibited by makefile make make doxygen %install %makeinstall_std cp -r libmapi++ %buildroot%_includedir rm -rf %buildroot%_libdir/nagios/check_exchange rm -rf %buildroot%prefix/modules rm -rf %buildroot%_datadir/js rm -rf %buildroot%_datadir/setup mkdir %buildroot%_mandir cp -r doc/man/man1 %buildroot%_mandir # Avoid a file conflict with man-pages package. # Page is still reachable as "mapi_obj_bookmark". rm -f %buildroot%_man3dir/index.3* %if_disabled python rm -rf %buildroot%python_sitelibdir/openchange %endif %if_disabled server # XXX There is no configure switch to disable the server # libraries in OpenChange 0.9, so just delete them. rm -f %buildroot%_libdir/libmapiserver.so* rm -f %buildroot%_pkgconfigdir/libmapiserver.pc rm -f %buildroot%_bindir/check_fasttransfer %endif # ocsmanager install -Dm644 mapiproxy/services/ocsmanager/ocsmanager.ini %buildroot%_sysconfdir/ocsmanager/ocsmanager.ini install -dm750 %buildroot%_logdir/ocsmanager install -Dm644 mapiproxy/services/ocsmanager/ocsmanager-apache.conf %buildroot%apache2_mods_available/ocsmanager.conf install -Dm755 openchange-ocsmanager.init %buildroot%_initdir/openchange-ocsmanager install -dm700 %buildroot%_cachedir/ntlmauthhandler pushd mapiproxy/services/ocsmanager %python_install --prefix=/usr # HACK: fix wrong installed egg files on x86_64 test "%python_sitelibdir" != "%python_sitelibdir_noarch" && mv %buildroot%python_sitelibdir_noarch/*.egg-* %buildroot%python_sitelibdir popd # rpcproxy install -Dm0644 mapiproxy/services/web/rpcproxy/rpcproxy.conf %buildroot%apache2_mods_available/rpcproxy.conf install -Dm0644 mapiproxy/services/web/rpcproxy/rpcproxy.wsgi %buildroot%_libexecdir/openchange/web/rpcproxy/rpcproxy.wsgi pushd mapiproxy/services/web/rpcproxy cp -a rpcproxy %buildroot%_libexecdir/openchange/web/rpcproxy popd # Add Samba private headers to libmapi.pc subst 's,^\(Cflags:.*\)$,\1 -I%_includedir/samba-4.0/private,' %buildroot%_pkgconfigdir/libmapi.pc %files -n libmapi %doc CHANGES.md COPYING IDL_LICENSE.txt README.md README.smbconf.md %doc apidocs/html/libmapi %doc apidocs/html/libocpf %doc apidocs/html/overview %doc apidocs/html/index.html %_libdir/libmapi.so.* %files -n libmapiadmin %_libdir/libmapiadmin.so.* %files -n libocpf %_libdir/libocpf.so.* %files devel %_includedir/* %_libdir/*.so %_pkgconfigdir/* %files client %_bindir/* %_man1dir/* %_datadir/mapitest %if_enabled python %files -n python-module-%name %python_sitelibdir/openchange %endif %if_enabled server %files -n libmapiproxy %_libdir/libmapiproxy.so.* %_libdir/samba-dc/dcerpc_mapiproxy %files -n libmapistore %_libdir/libmapistore.so.* %files server %_sbindir/* %_libdir/libmapiserver.so.* %_libdir/samba-dc/dcerpc_server %_libdir/samba-dc/dcerpc_mapiproxy_server %_datadir/samba/setup/* %endif %files ocsmanager %config(noreplace) %_initdir/openchange-ocsmanager %dir %_sysconfdir/ocsmanager %config(noreplace) %_sysconfdir/ocsmanager/* %config(noreplace) %apache2_mods_available/ocsmanager.conf %python_sitelibdir/ocsmanager* %_logdir/ocsmanager %attr(0700, %apache2_name, %apache2_group) %_cachedir/ntlmauthhandler %files rpcproxy %config(noreplace) %apache2_mods_available/rpcproxy.conf %dir %_libexecdir/openchange %dir %_libexecdir/openchange/web %_libexecdir/openchange/web/rpcproxy %changelog * Wed Jul 12 2017 Evgeny Sinelnikov <sin@altlinux.ru> 2.4-alt13.zentyal23%ubt.5 - Rebuild with headers from new release of Samba-4.5.12 * Wed May 24 2017 Evgeny Sinelnikov <sin@altlinux.ru> 2.4-alt13.zentyal23%ubt.4 - Rebuild with headers from new release of Samba-4.5.10 * Thu May 18 2017 Evgeny Sinelnikov <sin@altlinux.ru> 2.4-alt13.zentyal23%ubt.3 - Rebuild with headers from new release of Samba-4.5.9 * Wed Apr 12 2017 Evgeny Sinelnikov <sin@altlinux.ru> 2.4-alt13.zentyal23%ubt.2 - Rebuild with headers from new release of Samba-4.5.8 * Sun Apr 09 2017 Evgeny Sinelnikov <sin@altlinux.ru> 2.4-alt13.zentyal23%ubt.1 - Rebuild with headers from new release of Samba-4.5.7 * Thu Feb 02 2017 Evgeny Sinelnikov <sin@altlinux.ru> 2.4-alt13.zentyal23%ubt - Rebuild with headers from new release of Samba-4.5.5 * Mon Dec 19 2016 Evgeny Sinelnikov <sin@altlinux.ru> 2.4-alt12.zentyal23%ubt - Rebuild with headers from new release of Samba-4.5.3 * Mon Dec 19 2016 Evgeny Sinelnikov <sin@altlinux.ru> 2.4-alt11.zentyal23%ubt - Rebuild with headers from new release of Samba-4.5.2 * Sat Oct 29 2016 Evgeny Sinelnikov <sin@altlinux.ru> 2.4-alt10.zentyal23 - Rebuild with headers from new release of Samba-4.5.1 * Wed Sep 14 2016 Evgeny Sinelnikov <sin@altlinux.ru> 2.4-alt9.zentyal23 - Rebuild with headers from new release of Samba-4.5.0 * Fri Jul 08 2016 Evgeny Sinelnikov <sin@altlinux.ru> 2.4-alt8.zentyal23 - Rebuild with headers from new release of Samba-4.4.5 * Wed Jul 06 2016 Andrey Cherepanov <cas@altlinux.org> 2.4-alt7.zentyal23 - Add path to libsamba_util private headers to libmapi.pc * Wed Jun 29 2016 Andrey Cherepanov <cas@altlinux.org> 2.4-alt6.zentyal23 - Use private libsamba_util private headers from samba-DC-util-private-headers with exact Samba version * Mon Jun 27 2016 Andrey Cherepanov <cas@altlinux.org> 2.4-alt5.zentyal23 - Build with headers from Samba 4.4.4 and -Werror=implicit * Tue Apr 12 2016 Andrey Cherepanov <cas@altlinux.org> 2.4-alt4.zentyal23 - New version - Fix unowned directories * Mon Mar 28 2016 Andrey Cherepanov <cas@altlinux.org> 2.4-alt4.zentyal22.1.M70P.1 - Backport to p7 branch * Mon Mar 28 2016 Andrey Cherepanov <cas@altlinux.org> 2.4-alt4.zentyal22.2 - Fix build with Samba 4.4.0 * Thu Mar 10 2016 Andrey Cherepanov <cas@altlinux.org> 2.4-alt4.zentyal22.1 - Rebuild with new rpm * Tue Mar 08 2016 Andrey Cherepanov <cas@altlinux.org> 2.4-alt4.zentyal22 - New version * Mon Feb 08 2016 Andrey Cherepanov <cas@altlinux.org> 2.4-alt4.zentyal21 - New version * Thu Jan 28 2016 Andrey Cherepanov <cas@altlinux.org> 2.4-alt4.zentyal20 - New version * Tue Jan 26 2016 Andrey Cherepanov <cas@altlinux.org> 2.4-alt4.zentyal19 - New version * Mon Jan 25 2016 Andrey Cherepanov <cas@altlinux.org> 2.4-alt4.zentyal18.1 - Fix build * Tue Jan 19 2016 Andrey Cherepanov <cas@altlinux.org> 2.4-alt4.zentyal18 - New version - Spec cleanup * Wed Jan 13 2016 Andrey Cherepanov <cas@altlinux.org> 2.4-alt4.zentyal17 - New version * Thu Dec 24 2015 Andrey Cherepanov <cas@altlinux.org> 2.4-alt3.zentyal16 - Package openchange-ocsmanager and openchange-rpcproxy * Wed Dec 09 2015 Andrey Cherepanov <cas@altlinux.org> 2.4-alt2.zentyal16 - New version 2.4-zentyal16 * Mon Dec 07 2015 Andrey Cherepanov <cas@altlinux.org> 2.4-alt1.zentyal13 - Rebase to 2.4-zentyal13 from https://github.com/zentyal/openchange * Mon Nov 30 2015 Andrey Cherepanov <cas@altlinux.org> 2.3-alt1 - New version - Enable openchange-server build * Fri Apr 05 2013 Alexey Shabalin <shaba@altlinux.ru> 2.0-alt1 - 2.0 * Mon Feb 18 2013 Alexey Shabalin <shaba@altlinux.ru> 1.0-alt2.1 - rebuild * Tue Jan 15 2013 Alexey Shabalin <shaba@altlinux.ru> 1.0-alt2 - fix http://tracker.openchange.org/issues/397 - fix http://tracker.openchange.org/issues/398 - fix https://bugzilla.gnome.org/show_bug.cgi?id=682449 * Sun Dec 09 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.0-alt1.1 - Fixed build with flex 2.5.37 * Fri Mar 30 2012 Alexey Shabalin <shaba@altlinux.ru> 1.0-alt1 - 1.0 - add libmapiadmin, libmapiproxy, libmapistore, libocpf packages * Wed Aug 24 2011 Alexey Shabalin <shaba@altlinux.ru> 0.11-alt1 - 0.11 * Wed May 11 2011 Alexey Shabalin <shaba@altlinux.ru> 0.11-alt0.2 - rename libmapi so as not to conflict with Zarafa * Thu Apr 14 2011 Alexey Shabalin <shaba@altlinux.ru> 0.11-alt0.1 - pre 0.11 snapshot * Tue Aug 17 2010 Alexey Shabalin <shaba@altlinux.ru> 0.9-alt1 - initial build for ALT Linux Sisyphus, based on fedora spec |