commit c3fcdc847cdc162cb83792495fd08d969e6b52ce
Author: Sérgio M. Basto <sergio(a)serjux.com>
Date: Thu Sep 15 12:12:20 2016 +0100
Only need z-push-zarafa for Zarafa, which is no longer in Fedora, rfbz #3892
z-push.spec | 22 +++++++++++++++++++---
1 file changed, 19 insertions(+), 3 deletions(-)
---
diff --git a/z-push.spec b/z-push.spec
index b7397b7..97ee739 100644
--- a/z-push.spec
+++ b/z-push.spec
@@ -1,7 +1,7 @@
Summary: ActiveSync over-the-air implementation for mobile syncing
Name: z-push
Version: 2.2.9
-Release: 1%{?dist}
+Release: 2%{?dist}
License: AGPLv3 with exceptions
Group: Applications/Productivity
URL:
https://z-push.org/
@@ -100,6 +100,7 @@ The z-push-vcarddir package contains the vCard directory backend data
provider for Z-Push. If you want Z-Push to access a vCard directory,
you will need to install this package.
+%if 0%{?rhel}
%package zarafa
Summary: Zarafa data backend provider for Z-Push
Group: Applications/Productivity
@@ -112,6 +113,7 @@ The z-push-zarafa package contains the Zarafa Collaboration Plattform
data backend provider for Z-Push. If you want Z-Push to access a MAPI-
based service or the Zarafa Collaboration Plattform, you will need to
install this package.
+%endif
%prep
%setup -q -n %{name}-%{version}
@@ -132,11 +134,17 @@ cp -af * $RPM_BUILD_ROOT%{_datadir}/%{name}/
mv -f $RPM_BUILD_ROOT%{_datadir}/%{name}/config.php
$RPM_BUILD_ROOT%{_sysconfdir}/%{name}/config.php
ln -sf ../../..%{_sysconfdir}/%{name}/config.php
$RPM_BUILD_ROOT%{_datadir}/%{name}/config.php
-for backend in combined imap maildir searchldap vcarddir zarafa; do
+%if 0%{?rhel}
+variants="zarafa"
+%endif
+
+for backend in combined imap maildir searchldap vcarddir $variants; do
mv -f $RPM_BUILD_ROOT%{_datadir}/%{name}/backend/${backend}/config.php
$RPM_BUILD_ROOT%{_sysconfdir}/%{name}/${backend}.php
ln -sf ../../../../..%{_sysconfdir}/%{name}/${backend}.php
$RPM_BUILD_ROOT%{_datadir}/%{name}/backend/${backend}/config.php
done
+
+
mv -f $RPM_BUILD_ROOT%{_datadir}/%{name}/autodiscover/config.php
$RPM_BUILD_ROOT%{_sysconfdir}/%{name}/autodiscover.php
ln -sf ../../../..%{_sysconfdir}/%{name}/${backend}.php
$RPM_BUILD_ROOT%{_datadir}/%{name}/autodiscover/config.php
@@ -219,12 +227,20 @@ rm -rf $RPM_BUILD_ROOT
%config(noreplace) %{_sysconfdir}/%{name}/vcarddir.php
%{_datadir}/%{name}/backend/vcarddir/
+%if 0%{?rhel}
%files zarafa
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/%{name}/zarafa.php
%{_datadir}/%{name}/backend/zarafa/
+%endif
%changelog
+* Thu Sep 15 2016 Sérgio Basto <sergio(a)serjux.com> - 2.2.9-2
+- Only need z-push-zarafa for Zarafa, which is no longer in Fedora, rfbz #3892
+
+* Sat Aug 20 2016 Sérgio Basto <sergio(a)serjux.com> - 2.2.8-2
+- Only need z-push-zarafa for Zarafa, which is no longer in Fedora, rfbz #3892
+
* Thu Mar 24 2016 Robert Scheck <robert(a)fedoraproject.org> 2.2.9-1
- Upgrade to 2.2.9
@@ -306,7 +322,7 @@ rm -rf $RPM_BUILD_ROOT
* Fri Feb 11 2011 Robert Scheck <robert(a)fedoraproject.org> 1.5.1-1
- Upgrade to 1.5.1
-* Mon Jan 26 2011 Robert Scheck <robert(a)fedoraproject.org> 1.5-1
+* Tue Jan 25 2011 Robert Scheck <robert(a)fedoraproject.org> 1.5-1
- Upgrade to 1.5
* Thu May 27 2010 Robert Scheck <robert(a)fedoraproject.org> 1.3-2