summaryrefslogtreecommitdiffstats
path: root/redhat/tdelibs
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2013-07-28 14:39:39 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2013-07-28 14:39:39 +0200
commit15546e1bdcca076459d4dde156a47334f8a64955 (patch)
treebb46f0310f551c5609d4e8add6882a6b7ba89d1b /redhat/tdelibs
parent87d7ecf03757f5b4001a7c8682ce46c9eb1b6037 (diff)
parent7c8779619f078a4a3b565ffa1673bac2f8e70c19 (diff)
downloadtde-packaging-15546e1bdcca076459d4dde156a47334f8a64955.tar.gz
tde-packaging-15546e1bdcca076459d4dde156a47334f8a64955.zip
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tde-packaging
Diffstat (limited to 'redhat/tdelibs')
-rw-r--r--redhat/tdelibs/tdelibs-14.0.0.spec10
1 files changed, 8 insertions, 2 deletions
diff --git a/redhat/tdelibs/tdelibs-14.0.0.spec b/redhat/tdelibs/tdelibs-14.0.0.spec
index f65aef3d8..776aa744b 100644
--- a/redhat/tdelibs/tdelibs-14.0.0.spec
+++ b/redhat/tdelibs/tdelibs-14.0.0.spec
@@ -257,7 +257,14 @@ BuildRequires: NetworkManager-glib-devel
%endif
# Certificates support
+%if 0%{?rhel} || 0%{?fedora} || 0%{?suse_version}
+%define cacert %{_sysconfdir}/ssl/certs/ca-certificates.crt
Requires: ca-certificates
+%endif
+%if 0%{?mgaversion} || 0%{?mdkversion}
+%define cacert %{_sysconfdir}/ssl/certs/ca-bundle.crt
+Requires: openssl
+%endif
# Trinity dependencies
Requires: trinity-tqt3 >= 3.5.0
@@ -523,8 +530,7 @@ echo "Version: %{version}" >>"%{?buildroot}%{tde_libdir}/pkgconfig/tdelibs.pc"
# Use system-wide CA certificate
%__rm -f "%{?buildroot}%{tde_datadir}/apps/kssl/ca-bundle.crt"
-%__ln_s "%{_sysconfdir}/ssl/certs/ca-certificates.crt" "%{?buildroot}%{tde_datadir}/apps/kssl/ca-bundle.crt"
-
+%__ln_s "%{cacert}" "%{?buildroot}%{tde_datadir}/apps/kssl/ca-bundle.crt"
%clean
%__rm -rf "%{?buildroot}"