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
fbfe22
%define _unpackaged_files_terminate_build 0
fbfe22
674363
Name:				dynafed
298b69
Version:			1.3.2
298b69
Release:			1%{?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
298b69
# svn export http://svn.cern.ch/guest/lcgdm/ugr/tags/dynafed_1_3_2 dynafed-1.3.2
298b69
# tar -czvf dynafed-1.3.2.tar.gz dynafed-1.3.2
674363
Source0:			http://grid-deployment.web.cern.ch/grid-deployment/dms/lcgutil/tar/%{name}/%{name}-%{version}.tar.gz
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
8f6c6e
BuildRequires:		dmlite-devel >= 0.8.0
8f6c6e
BuildRequires:		dmlite-private-devel  >= 0.8.0
8f6c6e
BuildRequires:		davix-devel >= 0.6.0
674363
BuildRequires:          lfc-devel >= 1.8.8
674363
BuildRequires:          gfal2-devel
674363
BuildRequires:		GeoIP-devel
7ded98
BuildRequires:          libmaxminddb-devel
674363
BuildRequires:		libmemcached-devel
674363
BuildRequires:		openssl-devel
674363
BuildRequires:		protobuf-devel
298b69
%if %{?fedora}%{!?fedora:0} >= 26
404727
BuildRequires:		python2
404727
BuildRequires:		python2-devel
298b69
%else
298b69
BuildRequires:		python
298b69
BuildRequires:		python-devel
298b69
%endif
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}
7ded98
Requires:                       dmlite-libs%{?_isa} >= 0.8.0
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
8f6c6e
Requires:                       dmlite-libs%{?_isa} >= 0.8.0
7ded98
Requires:                       lcgdm-dav-server
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
7ded98
%{_libdir}/ugr/libugrgeoplugin_mmdb.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
7ded98
%doc doc/whitepaper/Doc_DynaFeds.pdf
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
298b69
* Fri May 11 2018 Oliver Keeble <oliver.keeble@cern.ch> - 1.3.2-1
298b69
- New upstream release
298b69
404727
* Mon Mar 26 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.3.1-10
404727
- Update Python 2 dependency declarations to new packaging standards
404727
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
404727
419952
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-9
419952
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
419952
Igor Gnatenko 3b0c83
* Wed Nov 29 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.3.1-8
Igor Gnatenko 3b0c83
- Rebuild for protobuf 3.5
Igor Gnatenko 3b0c83
8c7fa6
* Mon Nov 13 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.3.1-7
8c7fa6
- Rebuild for protobuf 3.4
8c7fa6
dede74
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-5
dede74
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
dede74
5a9428
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-4
5a9428
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
5a9428
cf93ec
* Mon Jul 24 2017 Bjรถrn Esser <besser82@fedoraproject.org> - 1.3.1-3
cf93ec
- Rebuilt for Boost 1.64
cf93ec
Orion Poplawski 052159
* Tue Jun 13 2017 Orion Poplawski <orion@cora.nwra.com> - 1.3.1-2
Orion Poplawski 052159
- Rebuild for protobuf 3.3.1
Orion Poplawski 052159
afad9e
* Tue May 30 2017 Andrea Manzi <amanzi at="" cern.ch=""> - 1.3.1-1
afad9e
 - new upstream  release
afad9e
7ded98
* Wed Apr 12 2017 Andrea Manzi <amanzi at="" cern.ch=""> - 1.3.0-1
7ded98
 - new upstream release
7ded98
d70492
* Tue Mar 14 2017 Andrea Manzi <amanzi at="" cern.ch=""> - 1.2.5-1
d70492
 - new bug fix release
d70492
b375ba
* Tue Feb 21 2017 Andrea Manzi <amanzi at="" cern.ch=""> - 1.2.4-1
b375ba
 - new bug fix release
b375ba
739f98
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3-5
739f98
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
739f98
Orion Poplawski 8ed3d9
* Mon Jan 23 2017 Orion Poplawski <orion@cora.nwra.com> - 1.2.3-4
Orion Poplawski 8ed3d9
- Rebuild for protobuf 3.2.0
Orion Poplawski 8ed3d9
Orion Poplawski 8ed3d9
* Mon Jan 23 2017 Orion Poplawski <orion@cora.nwra.com> - 1.2.3-3
Orion Poplawski 8ed3d9
- Rebuild for protobuf 3.2.0
Orion Poplawski 8ed3d9
Orion Poplawski ec6fa9
* Sat Nov 19 2016 Orion Poplawski <orion@cora.nwra.com> - 1.2.3-2
Orion Poplawski ec6fa9
- Rebuild for protobuf 3.1.0
Orion Poplawski ec6fa9
8f6c6e
* Wed Oct 26 2016 Fabrizio Furano <furano at="" cern.ch=""> - 1.2.3-1
8f6c6e
 - new bug fix release
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