Skip to content

Commit

Permalink
RPM spec: exclude build cachedb_redis for el6 because hiredis_devel p…
Browse files Browse the repository at this point in the history
…ackage was removed from epel
  • Loading branch information
Nick Altmann committed Mar 8, 2017
1 parent 39d2980 commit 1795e32
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packaging/fedora/opensips.spec
Expand Up @@ -5,7 +5,11 @@
%endif
%endif

%global EXCLUDE_MODULES sngtc osp cachedb_cassandra cachedb_couchbase cachedb_mongodb %{?disable_snmpstats} %{?el5:db_perlvdb} %{?el5:cachedb_redis} %{!?_with_oracle:db_oracle} lua
%if 0%{?rhel} > 6 || 0%{?fedora} > 0
%define _with_cachedb_redis 1
%endif

%global EXCLUDE_MODULES sngtc osp cachedb_cassandra cachedb_couchbase cachedb_mongodb %{?disable_snmpstats} %{?el5:db_perlvdb} %{!?_with_cachedb_redis:cachedb_redis} %{!?_with_oracle:db_oracle} lua

Summary: Open Source SIP Server
Name: opensips
Expand Down Expand Up @@ -516,7 +520,7 @@ Requires: %{name} = %{version}-%{release}
%description python
Helps implement your own OpenSIPS extensions in Python

%if %{undefined el5}
%if 0%{?_with_cachedb_redis:1}
%package redis
Summary: Redis connector
Group: System Environment/Daemons
Expand Down Expand Up @@ -1188,7 +1192,7 @@ fi
%files python
%{_libdir}/opensips/modules/python.so

%if %{undefined el5}
%if 0%{?_with_cachedb_redis:1}
%files redis
%{_libdir}/opensips/modules/cachedb_redis.so
%doc docdir/README.cachedb_redis
Expand Down

0 comments on commit 1795e32

Please sign in to comment.