diff options
Diffstat (limited to 'redhat/libraries/libtdeldap/libtdeldap-14.0.0.spec')
-rw-r--r-- | redhat/libraries/libtdeldap/libtdeldap-14.0.0.spec | 80 |
1 files changed, 52 insertions, 28 deletions
diff --git a/redhat/libraries/libtdeldap/libtdeldap-14.0.0.spec b/redhat/libraries/libtdeldap/libtdeldap-14.0.0.spec index 0ea245548..c13dbe2ae 100644 --- a/redhat/libraries/libtdeldap/libtdeldap-14.0.0.spec +++ b/redhat/libraries/libtdeldap/libtdeldap-14.0.0.spec @@ -1,5 +1,5 @@ # -# spec file for package libtdeldap (version R14.0.0) +# spec file for package libtdeldap (version R14) # # Copyright (c) 2014 Trinity Desktop Environment # @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # -# Please submit bugfixes or comments via http:/www.trinitydesktop.org/ +# Please submit bugfixes or comments via http://www.trinitydesktop.org/ # # BUILD WARNING: @@ -21,7 +21,9 @@ # TDE variables %define tde_epoch 2 +%if "%{?tde_version}" == "" %define tde_version 14.0.0 +%endif %define tde_pkg libtdeldap %define tde_prefix /opt/trinity %define tde_bindir %{tde_prefix}/bin @@ -34,18 +36,13 @@ %define tde_tdeincludedir %{tde_includedir}/tde %define tde_tdelibdir %{tde_libdir}/trinity -# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". -%if "%{?tde_prefix}" != "/usr" -%define _variant .opt -%endif - Name: trinity-%{tde_pkg} -Summary: LDAP interface library for TDE -Group: System/Libraries Epoch: %{tde_epoch} Version: 0.5 -Release: %{?!preversion:1}%{?preversion:0_%{preversion}}%{?dist}%{?_variant} +Release: %{?tde_version}_%{?!preversion:1}%{?preversion:0_%{preversion}}%{?dist} +Summary: LDAP interface library for TDE +Group: System/Libraries URL: http://www.trinitydesktop.org/ %if 0%{?suse_version} @@ -86,22 +83,41 @@ BuildRequires: cyrus-sasl-devel %endif # OPENLDAP support -%if 0%{?rhel} || 0%{?fedora} || 0%{?mdkversion} || 0%{?mgaversion} +%if 0%{?rhel} >= 6 || 0%{?fedora} || 0%{?mdkversion} || 0%{?mgaversion} BuildRequires: openldap-devel %endif %if 0%{?suse_version} BuildRequires: openldap2-devel %endif +%if 0%{?rhel} == 5 +BuildRequires: openldap24-libs-devel +%endif +# HEIMDAL support +%if 0%{?rhel} >= 5 || 0%{?fedora} || 0%{?mdkversion} || 0%{?mgaversion} +BuildRequires: heimdal-devel +%endif +%if 0%{?suse_version} +BuildRequires: libheimdal-devel +%endif -%description -LDAP interface library for TDE management modules. +# UDEV support +%if 0%{?fedora} || 0%{?mdkversion} || 0%{?mgaversion} || 0%{?suse_version} || 0%{?rhel} >= 6 +%define with_tdehwlib 1 +BuildRequires: libudev-devel +%endif + +# LIBCOM_ERR support +%if 0%{?fedora} || 0%{?suse_version} || 0%{?rhel} >= 6 +BuildRequires: libcom_err-devel +%endif +%if 0%{?mdkversion} || 0%{?mgaversion} +BuildRequires: %{_lib}ext2fs-devel +%endif -%post -/sbin/ldconfig || : -%postun -/sbin/ldconfig || : +%description +LDAP interface library for TDE management modules. %files %defattr(-,root,root,-) @@ -120,12 +136,6 @@ LDAP interface library for TDE management modules. libtdeldap-trinity-dev contains development files and documentation. -%post devel -/sbin/ldconfig || : - -%postun devel -/sbin/ldconfig || : - %files devel %defattr(-,root,root,-) %{tde_tdeincludedir}/ldappasswddlg.h @@ -145,7 +155,7 @@ libtdeldap-trinity-dev contains development files and documentation. %setup -q -n %{name}-%{tde_version}%{?preversion:~%{preversion}} %__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in" -%__cp "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" +%__cp "/usr/share/libtool/"*"/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh" %__make -f "admin/Makefile.common" @@ -153,6 +163,19 @@ libtdeldap-trinity-dev contains development files and documentation. unset QTDIR QTINC QTLIB export PATH="%{tde_bindir}:${PATH}" +extra_includes="%{_includedir}" +extra_libs="%{_libdir}" + +if [ -d "%{_includedir}/openldap24" ]; then + extra_includes="%{_includedir}/openldap24:${extra_includes}" + extra_libs="%{_libdir}/openldap24:${extra_libs}" +fi + +if [ -d "%{_includedir}/heimdal" ]; then + extra_includes="%{_includedir}/heimdal:${extra_includes}" + extra_libs="%{_libdir}/heimdal:${extra_libs}" +fi + %configure \ --prefix=%{tde_prefix} \ --exec-prefix=%{tde_prefix} \ @@ -167,7 +190,10 @@ export PATH="%{tde_bindir}:${PATH}" --enable-final \ --enable-closure \ --enable-rpath \ - --disable-gcc-hidden-visibility + --disable-gcc-hidden-visibility \ + \ + --with-extra-includes=${extra_includes} \ + --with-extra-libs=${extra_libs} \ %__make %{?_smp_mflags} @@ -182,6 +208,4 @@ export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} -%Changelog -* Fri Jul 05 2013 Francois Andriot <francois.andriot@free.fr> - 20.5-1 -- Initial release for TDE 14.0.0 +%changelog |