%define hordeapp turba # Summary: Turba - Address book for IMP Summary(pl.UTF-8): Turba - Książka adresowa dla IMP-a Name: horde-%{hordeapp} Version: 2.3.6 Release: 4 License: ASL Group: Applications/WWW Source0: ftp://ftp.horde.org/pub/turba/%{hordeapp}-h3-%{version}.tar.gz # Source0-md5: 40fe71bc9ca86b88b70fb006b7f61598 Source1: %{hordeapp}-apache.conf Source2: %{hordeapp}-httpd.conf Source3: %{hordeapp}-trans.mo Patch0: %{hordeapp}-search.patch URL: http://www.horde.org/turba/ BuildRequires: rpm-php-pearprov >= 4.0.2-98 BuildRequires: rpmbuild(macros) >= 1.304 Requires(triggerpostun): sed >= 4.0 Requires: horde >= 3.2 Requires: php(core) >= 4.1.0 Requires: php(xml) Requires: webapps Suggests: php-pear-Net_LDAP Obsoletes: horde-addons-turba Obsoletes: turba Conflicts: apache-base < 2.4.0-1 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _noautoreq_pear Horde.* Net/IMSP.php Net/IMSP/Utils.php %define hordedir /usr/share/horde %define _appdir %{hordedir}/%{hordeapp} %define schemadir /usr/share/openldap/schema %define _webapps /etc/webapps %define _webapp horde-%{hordeapp} %define _sysconfdir %{_webapps}/%{_webapp} %description Turba is a complete basic contact management application. SQL, LDAP, and Horde Preferences backends are available and are well tested. You can define the fields in your address books in a very flexible way, just by changing the config files. You can import/export from/to Pine, Mulberry, CSV, TSV, and vCard contacts. You can create distribution lists from your addressbooks, which are handled transparently by IMP and other Horde applications. And there are Horde API functions to add and search for contacts. %description -l pl.UTF-8 Turba to kompletna aplikacja do podstawowego zarządzania kontaktami. Dostępne i dobrze przetestowane są backendy ustawień SQL, LDAP i Horde. Można definiować pola książki adresowej w bardzo elastyczny sposób, po prostu zmieniając pliki konfiguracyjne. Kontakty można importować/eksportować z/do Pine, Mulberry, CSV, TSV i vCard. Można tworzyć listy dystrybucyjne z książek adresowych, które są obsługiwane w sposób przezroczysty przez IMP-a i inne aplikacje Horde. Są także funkcje API Horde do dodawania i wyszukiwania kontaktów. %package -n openldap-schema-rfc2739 Summary: LDAP schema for freebusy information Summary(pl.UTF-8): Schemat LDAP do informacji freebusy Group: Networking/Daemons Requires(post,postun): sed >= 4.0 Requires: openldap-servers %description -n openldap-schema-rfc2739 This package contains rfc2739.schema for openldap. To store freebusy information in the LDAP directory, you'll need the rfc2739.schema from . %description -n openldap-schema-rfc2739 -l pl.UTF-8 Ten pakiet zawiera schemat rfc2739.schema dla openldap. Aby przechowywać informacje freebusy w bazie LDAP potrzebny jest schemat rfc2739.schema z . %prep %setup -q -n %{hordeapp}-h3-%{version} %patch0 -p1 rm */.htaccess for i in config/*.dist; do mv $i config/$(basename $i .dist) done # considered harmful (horde/docs/SECURITY) rm -f test.php %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}/docs} cp -a *.php $RPM_BUILD_ROOT%{_appdir} cp -a config/* $RPM_BUILD_ROOT%{_sysconfdir} echo '' > $RPM_BUILD_ROOT%{_sysconfdir}/conf.php touch $RPM_BUILD_ROOT%{_sysconfdir}/conf.php.bak cp -a addressbooks js lib locale templates themes $RPM_BUILD_ROOT%{_appdir} cp -a docs/CREDITS $RPM_BUILD_ROOT%{_appdir}/docs ln -s %{_sysconfdir} $RPM_BUILD_ROOT%{_appdir}/config install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf install %{SOURCE3} $RPM_BUILD_ROOT%{_appdir}/locale/pl_PL/LC_MESSAGES/turba.mo install -d $RPM_BUILD_ROOT%{schemadir} install scripts/ldap/rfc2739.schema $RPM_BUILD_ROOT%{schemadir} %clean rm -rf $RPM_BUILD_ROOT %post if [ ! -f %{_sysconfdir}/conf.php.bak ]; then install /dev/null -o root -g http -m660 %{_sysconfdir}/conf.php.bak fi if [ "$1" = 1 ]; then %banner %{name} -e <