674363
%if %{?fedora}%{!?fedora:0} >= 17 || %{?rhel}%{!?rhel:0} >= 7
674363
%global boost_cmake_flags -DBOOST_INCLUDEDIR=/usr/include
674363
%else
674363
%global boost_cmake_flags -DBOOST_INCLUDEDIR=/usr/include/boost148 -DBOOST_LIBRARYDIR=%{_libdir}/boost148
674363
%endif
674363
674363
%if %{?fedora}%{!?fedora:0} >= 17 || %{?rhel}%{!?rhel:0} >= 7
674363
%global systemd 1
674363
%else
674363
%global systemd 0
674363
%endif
674363
674363
674363
674363
674363
Name:				dynafed
bc7434
Version:			1.2.2
bc7434
Release:			2%{?dist}
674363
Summary:			Ultra-scalable dynamic system for federating HTTP-based storage resources
674363
Group:				Applications/Internet
674363
License:			ASL 2.0
674363
URL:				https://svnweb.cern.ch/trac/lcgdm/wiki
674363
# svn export http://svn.cern.ch/guest/lcgdm/ugr/trunk ugr
674363
Source0:			http://grid-deployment.web.cern.ch/grid-deployment/dms/lcgutil/tar/%{name}/%{name}-%{version}.tar.gz
674363
BuildRoot:			%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
674363
674363
%if %{?fedora}%{!?fedora:0} >= 17 || %{?rhel}%{!?rhel:0} >= 7
674363
BuildRequires:			boost-devel >= 1.48.0
674363
%else
674363
BuildRequires:			boost148-devel >= 1.48.0
674363
%endif
674363
674363
BuildRequires:		cmake
674363
BuildRequires:		dmlite-devel >= 0.7.6
674363
BuildRequires:		dmlite-private-devel  >= 0.7.6
674363
BuildRequires:		davix-devel >= 0.5.1
674363
BuildRequires:          lfc-devel >= 1.8.8
674363
BuildRequires:          gfal2-devel
674363
BuildRequires:		GeoIP-devel
674363
BuildRequires:		libmemcached-devel
674363
BuildRequires:		openssl-devel
674363
BuildRequires:		protobuf-devel
674363
BuildRequires:		python
674363
BuildRequires:		python-devel
674363
674363
%if %systemd
674363
# possible deps to configure the journal for practical logging
674363
%else
674363
Requires:		rsyslog
674363
%endif
674363
674363
674363
%description
674363
The Dynafed project provides a dynamic, scalable HTTP resource
674363
federation mechanism for distributed storage systems.
674363
It supports backends exposing HTTP, WebDAV, S3, Azure as
674363
access protocols. In the S3 and Azure case it hides the secret
674363
keys and exploits pre-signed URLs.
674363
The default deployment style is accessible by any HTTP/Webdav
674363
compatible client. The core components can be used to design
674363
frontends based on other protocols.
674363
674363
%package private-devel
674363
Summary:			Development files for %{name}
674363
Group:				Applications/Internet
674363
Requires:			%{name}%{?_isa} = %{version}-%{release}
674363
Requires:			pkgconfig
674363
674363
%description private-devel
674363
Headers files for %{name}'s plugin development.
674363
674363
%package http-plugin
674363
Summary:			Http and WebDav plugin for %{name}
674363
Group:				Applications/Internet
674363
Requires:			%{name}%{?_isa} = %{version}-%{release}
674363
Requires:			davix-libs >= 0.5.1
674363
Provides:                       %{name}-dav-plugin = %{version}-%{release}
674363
674363
%description http-plugin
674363
Plugin for the WebDav based storage system for %{name}
674363
674363
%package lfc-plugin
674363
Summary:			Logical File catalog (LFC) plugin for %{name}
674363
Group:				Applications/Internet
674363
Requires:			%{name}%{?_isa} = %{version}-%{release}
674363
Requires:			gfal2-plugin-lfc%{?_isa}
674363
674363
%description lfc-plugin
674363
Plugin for the Logical File catalog system for %{name}
674363
674363
%package dmlite-plugin
674363
Summary:                        dmlite plugin for %{name}
674363
Group:                          Applications/Internet
674363
Requires:                       %{name}%{?_isa} = %{version}-%{release}
674363
674363
%description dmlite-plugin
674363
Plugin for using dmlite for %{name}
674363
674363
%package dmlite-frontend
674363
Summary:                        dmlite plugin for %{name}
674363
Group:                          Applications/Internet
674363
Requires:                       %{name}%{?_isa} = %{version}-%{release}
674363
Requires:                       %{_libdir}/httpd/modules/mod_lcgdm_dav.so
674363
Requires:                       dmlite-libs%{?_isa} >= 0.7.6
3de6ac
%if %systemd == 0
674363
Requires:                       mod_proxy_fcgi
3de6ac
%endif
674363
Requires:                       php-fpm
674363
Requires:                       php-pecl-memcache
674363
674363
%description dmlite-frontend
674363
Webdav frontend for %{name} using dmlite and lcgdm-dav
674363
674363
674363
674363
%clean
674363
rm -rf %{buildroot};
674363
make clean
674363
674363
%prep
674363
%setup -q
674363
674363
%build
674363
%if %systemd
674363
%cmake \
674363
-DDOC_INSTALL_DIR=%{_docdir}/%{name}-%{version} \
674363
-DAPACHE_SITES_INSTALL_DIR=%{_sysconfdir}/httpd/conf.d \
674363
-DOUT_OF_SOURCE_CHECK=FALSE \
674363
-DRSYSLOG_SUPPORT=FALSE \
674363
-DLOGROTATE_SUPPORT=FALSE \
674363
%{boost_cmake_flags} \
674363
.
674363
make
674363
%else
674363
%cmake \
674363
-DDOC_INSTALL_DIR=%{_docdir}/%{name}-%{version} \
674363
-DAPACHE_SITES_INSTALL_DIR=%{_sysconfdir}/httpd/conf.d \
674363
-DOUT_OF_SOURCE_CHECK=FALSE \
674363
-DRSYSLOG_SUPPORT=TRUE \
674363
-DLOGROTATE_SUPPORT=TRUE \
674363
%{boost_cmake_flags} \
674363
.
674363
make
674363
%endif
674363
674363
%install
674363
rm -rf %{buildroot}
674363
make DESTDIR=%{buildroot} install
674363
674363
%post
674363
/sbin/ldconfig
674363
/sbin/service rsyslog condrestart || true
674363
## conf file plugin path transition
674363
## sed -i 's@/usr/lib\([0-9]*\)/ugr@/usr/lib\1/dynafed@g' /etc/ugr.conf || true
674363
674363
%postun
674363
/sbin/ldconfig
674363
674363
%post dmlite-frontend
674363
/sbin/ldconfig
674363
/sbin/service rsyslog condrestart || true
674363
/sbin/service httpd condrestart  || true
674363
674363
%files
674363
%defattr (-,root,root)
674363
%{_libdir}/libugrconnector.so.*
674363
%{_libdir}/ugr/libugrgeoplugin_geoip.so
674363
%{_libdir}/ugr/libugrnoloopplugin.so
674363
%{_libdir}/ugr/libugrauthplugin_python*.so
674363
%config(noreplace) %{_sysconfdir}/ugr/ugr.conf
674363
%config(noreplace) %{_sysconfdir}/ugr/conf.d/*
674363
%if %systemd
674363
# possible config to configure the journal for practical logging
674363
%else
674363
%config(noreplace) %{_sysconfdir}/rsyslog.d/*
674363
%config(noreplace) %{_sysconfdir}/logrotate.d/*
674363
%endif
674363
%doc RELEASE-NOTES
674363
674363
%files private-devel
674363
%defattr (-,root,root)
674363
%{_libdir}/libugrconnector.so
674363
%dir %{_includedir}/ugr
674363
%{_includedir}/ugr/*
674363
%{_libdir}/pkgconfig/*
674363
674363
%files http-plugin
674363
%defattr (-,root,root)
674363
%{_libdir}/ugr/libugrlocplugin_dav.so
674363
%{_libdir}/ugr/libugrlocplugin_http.so
674363
%{_libdir}/ugr/libugrlocplugin_s3.so
674363
%{_libdir}/ugr/libugrlocplugin_azure.so
674363
%{_libdir}/ugr/libugrlocplugin_davrucio.so
674363
674363
%files lfc-plugin
674363
%defattr (-,root,root)
674363
%{_libdir}/ugr/libugrlocplugin_lfc.so
674363
674363
674363
%files dmlite-plugin
674363
%defattr (-,root,root)
674363
%attr (-,root,root)
674363
%{_libdir}/ugr/libugrlocplugin_dmliteclient.so
674363
%config(noreplace) %{_sysconfdir}/ugr/ugrdmliteclientORA.conf
674363
%config(noreplace) %{_sysconfdir}/ugr/ugrdmliteclientMY.conf
674363
674363
674363
%files dmlite-frontend
674363
%defattr (-,root,root)
674363
%{_libdir}/ugr/libugrdmlite.so
674363
%config(noreplace) %{_sysconfdir}/ugr/ugrdmlite.conf
674363
%config(noreplace) %{_sysconfdir}/httpd/conf.d/zlcgdm-ugr-dav.conf
674363
/var/www/html/dashboard/*
674363
674363
%changelog
bc7434
* Fri Jul 01 2016 Fabrizio Furano <furano at="" cern.ch=""> - 1.2.2-2
bc7434
 - fixing dependency issue in EL7 and F25
674363
* Thu May 18 2016 Fabrizio Furano <furano at="" cern.ch=""> - 1.2.1-1
674363
 - Little packaging fixes for inclusion into EPEL
674363
* Fri Jun 01 2012 Adrien Devresse <adevress at="" cern.ch=""> - 0.0.2-0.1-2012052812snap
674363
 - initial draft