870dc6
# This package depends on automagic byte compilation
870dc6
# https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_2
870dc6
%global _python_bytecompile_extra 1
870dc6
797dc1
%if %{?rhel}%{!?rhel:0} == 6
609b69
%filter_provides_in %{perl_vendorarch}/.*\.so$
797dc1
%filter_provides_in %{python2_sitearch}/.*\.so$
476293
%filter_setup
464b12
%endif
476293
feb7b8
%if %{?fedora}%{!?fedora:0} >= 17 || %{?rhel}%{!?rhel:0} >= 7
feb7b8
%global systemd 1
feb7b8
%else
feb7b8
%global systemd 0
feb7b8
%endif
feb7b8
4be6cf
# by default, argus support should not be included
797dc1
%{!?_with_argus: %{!?without_argus: %global _without_argus --without-argus}}
4be6cf
# make sure only one option is defined
4be6cf
%{?_with_argus: %{?_without_argus: %{error: both _with_argus and _without_argus}}}
4be6cf
01f6cc
Name:		lcgdm
fea891
Version:	1.13.0
fea891
Release:	1%{?dist}
01f6cc
Summary:	LHC Computing Grid Data Management
01f6cc
01f6cc
License:	ASL 2.0
01f6cc
URL:		http://glite.web.cern.ch/glite/
a2b08c
# git clone http://gitlab.cern.ch/lcgdm/lcg-dm.git
a2b08c
# cd lcg-dm && git archive --prefix lcgdm-1.12.0/ tags/v1.12.0a | gzip > lcgdm-1.12.0.tar.gz
01f6cc
Source0:	%{name}-%{version}.tar.gz
feb7b8
#		Systemd unit files
Ricardo Rocha 82ab91
Source1:	%{name}-unitfiles.tar.gz
13b176
#		Remove deprecated python function:
13b176
#		https://savannah.cern.ch/bugs/?69232
Ricardo Rocha 82ab91
Patch0:		%{name}-python-exception.patch
01f6cc
01f6cc
BuildRequires:	imake
Alejandro Alvarez Ayllon 0eff6b
BuildRequires:	globus-gssapi-gsi-devel
Alejandro Alvarez Ayllon 0eff6b
BuildRequires:	globus-gss-assist-devel
Alejandro Alvarez Ayllon 0eff6b
BuildRequires:	globus-gsi-credential-devel
Alejandro Alvarez Ayllon 0eff6b
BuildRequires:	globus-gsi-callback-devel
Alejandro Alvarez Ayllon 0eff6b
BuildRequires:	globus-gass-copy-devel
Alejandro Alvarez Ayllon 0eff6b
BuildRequires:	globus-ftp-client-devel
Alejandro Alvarez Ayllon 0eff6b
BuildRequires:	globus-common-devel
Alejandro Alvarez Ayllon 0eff6b
BuildRequires:	voms-devel
Alejandro Alvarez Ayllon 0eff6b
BuildRequires:	gsoap-devel
Alejandro Alvarez Ayllon 0eff6b
BuildRequires:	CGSI-gSOAP-devel >= 1.3.4.0
8588d8
1c0673
%if 0%{?fedora} >= 28
59a763
BuildRequires:	mariadb-connector-c-devel
797dc1
BuildRequires:	libnsl2-devel
8588d8
%else
797dc1
BuildRequires:	mysql-devel
8588d8
%endif
Alejandro Alvarez Ayllon 0eff6b
BuildRequires:	libuuid-devel
01f6cc
BuildRequires:	swig
1c0673
%if 0%{?rhel} && 0%{?rhel} <= 7
Alejandro Alvarez Ayllon 0eff6b
BuildRequires:	perl-devel
01f6cc
%else
01f6cc
BuildRequires:	perl
e6a0f9
BuildRequires:	perl-generators
01f6cc
%endif
7b53cd
BuildRequires:	python2-devel
797dc1
%if %{?fedora}%{!?fedora:0} >= 13 || %{?rhel}%{!?rhel:0} >= 8
797dc1
BuildRequires:	python3-devel
797dc1
%endif
797dc1
%if %{?rhel}%{!?rhel:0} == 7
93a884
BuildRequires:	python36-devel
13b176
%endif
feb7b8
%if %systemd
797dc1
BuildRequires:	systemd
feb7b8
%endif
01f6cc
4be6cf
BuildRequires:	groff
e9c932
BuildRequires:	gcc
797dc1
BuildRequires:	gcc-c++
4be6cf
4be6cf
# This cannot be executed in the case of pure EPEL builds
4be6cf
# as Argus is not available there
4be6cf
%{?_with_argus:BuildRequires:  argus-pep-api-c >= 2.2.0}
4be6cf
%{?_with_argus:BuildRequires:  argus-pep-api-c-devel >= 2.2.0}
4be6cf
4be6cf
4be6cf
01f6cc
%description
609b69
The lcgdm package provides the LCG Data Management components: the LFC
609b69
(LCG File Catalog) and the DPM (Disk Pool Manager).
609b69
609b69
%package libs
609b69
Summary:	LHC Computing Grid Data Management common libraries
609b69
Provides:	%{name} = %{version}-%{release}
609b69
Obsoletes:	%{name} < 1.8.1.2-2
609b69
609b69
%description libs
609b69
The lcgdm-libs package contains common libraries for the LCG Data Management
01f6cc
components: the LFC (LCG File Catalog) and the DPM (Disk Pool Manager).
01f6cc
01f6cc
%package devel
01f6cc
Summary:	LCG Data Management common development files
609b69
Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
01f6cc
01f6cc
%description devel
01f6cc
This package contains common development libraries and header files
609b69
for LCG Data Management.
01f6cc
609b69
%package -n lfc-libs
609b69
Summary:	LCG File Catalog (LFC) libraries
609b69
Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
609b69
Obsoletes:	lfc < 1.8.1.2-2
01f6cc
609b69
%description -n lfc-libs
01f6cc
The LCG File Catalog (LFC) keeps track of the locations of the physical
01f6cc
replicas of the logical files in a distributed storage system.
Ricardo Rocha 82ab91
This package contains the run time LFC client library.
01f6cc
01f6cc
%package -n lfc-devel
01f6cc
Summary:	LFC development libraries and header files
609b69
Requires:	lfc-libs%{?_isa} = %{version}-%{release}
01f6cc
Requires:	%{name}-devel%{?_isa} = %{version}-%{release}
01f6cc
01f6cc
%description -n lfc-devel
01f6cc
The LCG File Catalog (LFC) keeps track of the locations of the physical
01f6cc
replicas of the logical files in a distributed storage system.
01f6cc
This package contains the development libraries and header files for LFC.
01f6cc
609b69
%package -n lfc
01f6cc
Summary:	LCG File Catalog (LFC) client
609b69
Requires:	lfc-libs%{?_isa} = %{version}-%{release}
609b69
Provides:	lfc-client = %{version}-%{release}
609b69
Obsoletes:	lfc-client < 1.8.1.2-2
01f6cc
609b69
%description -n lfc
01f6cc
The LCG File Catalog (LFC) keeps track of the locations of the physical
01f6cc
replicas of the logical files in a distributed storage system.
01f6cc
This package contains the command line interfaces for the LFC.
01f6cc
01f6cc
%package -n lfc-perl
01f6cc
Summary:	LCG File Catalog (LFC) perl bindings
Ricardo Rocha 82ab91
Provides:	perl-lfc = %{version}-%{release}
Ricardo Rocha 82ab91
Obsoletes:	perl-lfc <= 1.8.2
609b69
Requires:	lfc-libs%{?_isa} = %{version}-%{release}
01f6cc
Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
01f6cc
01f6cc
%description -n lfc-perl
01f6cc
The LCG File Catalog (LFC) keeps track of the locations of the physical
01f6cc
replicas of the logical files in a distributed storage system.
01f6cc
This package provides Perl bindings for the LFC client library.
01f6cc
410ccc
%package -n python2-lfc
797dc1
Summary:	LCG File Catalog (LFC) python 2 bindings
410ccc
Provides:	lfc-python = %{version}-%{release}
73ec27
Provides:	lfc-python%{?_isa} = %{version}-%{release}
410ccc
Obsoletes:	lfc-python < 1.10.0-8
609b69
Requires:	lfc-libs%{?_isa} = %{version}-%{release}
410ccc
%{?python_provide:%python_provide python2-lfc}
01f6cc
410ccc
%description -n python2-lfc
01f6cc
The LCG File Catalog (LFC) keeps track of the locations of the physical
01f6cc
replicas of the logical files in a distributed storage system.
797dc1
This package provides Python 2 bindings for the LFC client library.
01f6cc
797dc1
%if %{?fedora}%{!?fedora:0} >= 13 || %{?rhel}%{!?rhel:0} >= 7
797dc1
%package -n python%{python3_pkgversion}-lfc
797dc1
Summary:	LCG File Catalog (LFC) python 3 bindings
797dc1
Provides:	lfc-python%{python3_pkgversion} = %{version}-%{release}
797dc1
Obsoletes:	lfc-python%{python3_pkgversion} < 1.10.0-8
609b69
Requires:	lfc-libs%{?_isa} = %{version}-%{release}
797dc1
%{?python_provide:%python_provide python%{python3_pkgversion}-lfc}
13b176
797dc1
%description -n python%{python3_pkgversion}-lfc
13b176
The LCG File Catalog (LFC) keeps track of the locations of the physical
13b176
replicas of the logical files in a distributed storage system.
797dc1
This package provides Python 3 bindings for the LFC client library.
13b176
%endif
13b176
609b69
%package -n lfc-server-mysql
Ricardo Rocha 82ab91
Summary:	LCG File Catalog (LFC) server with MySQL database back-end
797dc1
Requires:	finger
Ricardo Rocha 82ab91
Provides:	lfcdaemon = %{version}-%{release}
609b69
Requires:	lfc-libs%{?_isa} = %{version}-%{release}
609b69
Provides:	lfc-mysql = %{version}-%{release}
609b69
Obsoletes:	lfc-mysql < 1.8.1.2-2
Ricardo Rocha 82ab91
Provides:	LFC-server-mysql = %{version}-%{release}
Ricardo Rocha 82ab91
Obsoletes:	LFC-server-mysql <= 1.8.2
01f6cc
01f6cc
Requires(pre):		shadow-utils
e8c5ef
Requires(post):		mysql
feb7b8
%if %systemd
797dc1
%{?systemd_requires}
feb7b8
%else
01f6cc
Requires(post):		chkconfig
01f6cc
Requires(preun):	chkconfig
01f6cc
Requires(preun):	initscripts
01f6cc
Requires(postun):	initscripts
feb7b8
%endif
01f6cc
609b69
%description -n lfc-server-mysql
01f6cc
The LCG File Catalog (LFC) keeps track of the locations of the physical
01f6cc
replicas of the logical files in a distributed storage system.
01f6cc
This package provides an LFC server that uses MySQL as its database
Ricardo Rocha 82ab91
back-end.
01f6cc
609b69
%package -n lfc-dli
609b69
Summary:	LCG File Catalog (LFC) data location interface (dli) server
Ricardo Rocha 82ab91
Requires:	lfcdaemon = %{version}-%{release}
01f6cc
01f6cc
Requires(pre):		shadow-utils
797dc1
Requires(post):		finger
feb7b8
%if %systemd
797dc1
%{?systemd_requires}
feb7b8
%else
01f6cc
Requires(post):		chkconfig
01f6cc
Requires(preun):	chkconfig
01f6cc
Requires(preun):	initscripts
01f6cc
Requires(postun):	initscripts
feb7b8
%endif
01f6cc
609b69
%description -n lfc-dli
01f6cc
The LCG File Catalog (LFC) keeps track of the locations of the physical
01f6cc
replicas of the logical files in a distributed storage system.
609b69
This package provides the data location interface (dli) server for the LFC.
01f6cc
609b69
%package -n dpm-libs
609b69
Summary:	Disk Pool Manager (DPM) libraries
609b69
Requires:	%{name}-libs%{?_isa} = %{version}-%{release}
609b69
Obsoletes:	dpm < 1.8.1.2-2
01f6cc
609b69
%description -n dpm-libs
01f6cc
The LCG Disk Pool Manager (DPM) creates a storage element from a set
01f6cc
of disks. It provides several interfaces for storing and retrieving
995d52
data such as HTTP, gridftp and xroot.
Ricardo Rocha 82ab91
This package contains the run time DPM client library.
01f6cc
01f6cc
%package -n dpm-devel
01f6cc
Summary:	DPM development libraries and header files
609b69
Requires:	dpm-libs%{?_isa} = %{version}-%{release}
01f6cc
Requires:	%{name}-devel%{?_isa} = %{version}-%{release}
01f6cc
01f6cc
%description -n dpm-devel
01f6cc
The LCG Disk Pool Manager (DPM) creates a storage element from a set
01f6cc
of disks. It provides several interfaces for storing and retrieving
995d52
data such as HTTP, gridftp and xroot.
01f6cc
This package contains the development libraries and header files for DPM.
01f6cc
609b69
%package -n dpm
01f6cc
Summary:	Disk Pool Manager (DPM) client
609b69
Requires:	dpm-libs%{?_isa} = %{version}-%{release}
609b69
Provides:	dpm-client = %{version}-%{release}
609b69
Obsoletes:	dpm-client < 1.8.1.2-2
01f6cc
609b69
%description -n dpm
01f6cc
The LCG Disk Pool Manager (DPM) creates a storage element from a set
01f6cc
of disks. It provides several interfaces for storing and retrieving
995d52
data such as HTTP, gridftp and xroot.
01f6cc
This package contains the command line interfaces for the DPM.
01f6cc
01f6cc
%package -n dpm-perl
01f6cc
Summary:	Disk Pool Manager (DPM) perl bindings
Ricardo Rocha 82ab91
Provides:	perl-dpm = %{version}-%{release}
Ricardo Rocha 82ab91
Obsoletes:	perl-dpm <= 1.8.2
609b69
Requires:	dpm-libs%{?_isa} = %{version}-%{release}
01f6cc
Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
01f6cc
01f6cc
%description -n dpm-perl
01f6cc
The LCG Disk Pool Manager (DPM) creates a storage element from a set
01f6cc
of disks. It provides several interfaces for storing and retrieving
995d52
data such as HTTP, gridftp and xroot.
01f6cc
This package provides Perl bindings for the DPM client library.
01f6cc
797dc1
%package -n python2-dpm
797dc1
Summary:	Disk Pool Manager (DPM) python 2 bindings
797dc1
Provides:	dpm-python = %{version}-%{release}
73ec27
Provides:	dpm-python%{?_isa} = %{version}-%{release}
797dc1
Obsoletes:	dpm-python < 1.10.0-13
609b69
Requires:	dpm-libs%{?_isa} = %{version}-%{release}
797dc1
%{?python_provide:%python_provide python2-dpm}
01f6cc
797dc1
%description -n python2-dpm
01f6cc
The LCG Disk Pool Manager (DPM) creates a storage element from a set
01f6cc
of disks. It provides several interfaces for storing and retrieving
995d52
data such as HTTP, gridftp and xroot.
797dc1
This package provides Python 2 bindings for the DPM client library.
01f6cc
797dc1
%if %{?fedora}%{!?fedora:0} >= 13 || %{?rhel}%{!?rhel:0} >= 7
797dc1
%package -n python%{python3_pkgversion}-dpm
797dc1
Summary:	Disk Pool Manager (DPM) python 3 bindings
797dc1
Provides:	dpm-python%{python3_pkgversion} = %{version}-%{release}
797dc1
Obsoletes:	dpm-python%{python3_pkgversion} < 1.10.0-13
609b69
Requires:	dpm-libs%{?_isa} = %{version}-%{release}
797dc1
%{?python_provide:%python_provide python%{python3_pkgversion}-dpm}
13b176
797dc1
%description -n python%{python3_pkgversion}-dpm
13b176
The LCG Disk Pool Manager (DPM) creates a storage element from a set
13b176
of disks. It provides several interfaces for storing and retrieving
995d52
data such as HTTP, gridftp and xroot.
797dc1
This package provides Python 3 bindings for the DPM client library.
13b176
%endif
13b176
609b69
%package -n dpm-server-mysql
Ricardo Rocha 82ab91
Summary:	Disk Pool Manager (DPM) server with MySQL database back-end
609b69
Requires:	dpm-libs%{?_isa} = %{version}-%{release}
797dc1
Requires:	finger
de2022
Requires:	MySQL-python
de2022
Requires:	python-lxml
609b69
Provides:	dpm-mysql = %{version}-%{release}
609b69
Obsoletes:	dpm-mysql < 1.8.1.2-2
Ricardo Rocha 82ab91
Provides:	DPM-server-mysql = %{version}-%{release}
Ricardo Rocha 82ab91
Obsoletes:	DPM-server-mysql <= 1.8.2
01f6cc
01f6cc
Requires(pre):		shadow-utils
feb7b8
%if %systemd
797dc1
%{?systemd_requires}
feb7b8
%else
01f6cc
Requires(post):		chkconfig
01f6cc
Requires(preun):	chkconfig
01f6cc
Requires(preun):	initscripts
01f6cc
Requires(postun):	initscripts
feb7b8
%endif
01f6cc
609b69
%description -n dpm-server-mysql
01f6cc
The LCG Disk Pool Manager (DPM) creates a storage element from a set
01f6cc
of disks. It provides several interfaces for storing and retrieving
995d52
data such as HTTP, gridftp and xroot.
01f6cc
This package provides a DPM server that uses MySQL as its database
Ricardo Rocha 82ab91
back-end.
01f6cc
609b69
%package -n dpm-name-server-mysql
Ricardo Rocha 82ab91
Summary:	DPM name server with MySQL database back-end
797dc1
Requires:	finger
609b69
Requires:	dpm-libs%{?_isa} = %{version}-%{release}
609b69
Provides:	dpm-mysql-nameserver = %{version}-%{release}
609b69
Obsoletes:	dpm-mysql-nameserver < 1.8.1.2-2
Ricardo Rocha 82ab91
Provides:	DPM-name-server-mysql = %{version}-%{release}
Ricardo Rocha 82ab91
Obsoletes:	DPM-name-server-mysql <= 1.8.2
01f6cc
609b69
Requires(pre):		shadow-utils
609b69
Requires(post):		mysql
feb7b8
%if %systemd
797dc1
%{?systemd_requires}
feb7b8
%else
01f6cc
Requires(post):		chkconfig
01f6cc
Requires(preun):	chkconfig
01f6cc
Requires(preun):	initscripts
01f6cc
Requires(postun):	initscripts
feb7b8
%endif
01f6cc
609b69
%description -n dpm-name-server-mysql
01f6cc
The LCG Disk Pool Manager (DPM) creates a storage element from a set
01f6cc
of disks. It provides several interfaces for storing and retrieving
995d52
data such as HTTP, gridftp and xroot.
Ricardo Rocha 82ab91
This package provides a DPM name server that uses MySQL as its database
Ricardo Rocha 82ab91
back-end.
01f6cc
609b69
%package -n dpm-copy-server-mysql
Ricardo Rocha 82ab91
Summary:	DPM copy server with MySQL database back-end
797dc1
Requires:	finger
609b69
Requires:	dpm-libs%{?_isa} = %{version}-%{release}
609b69
Provides:	dpm-mysql-copyd = %{version}-%{release}
609b69
Obsoletes:	dpm-mysql-copyd < 1.8.1.2-2
Ricardo Rocha 82ab91
Provides:	DPM-copy-server-mysql = %{version}-%{release}
Ricardo Rocha 82ab91
Obsoletes:	DPM-copy-server-mysql <= 1.8.2
01f6cc
609b69
Requires(pre):		shadow-utils
feb7b8
%if %systemd
797dc1
%{?systemd_requires}
feb7b8
%else
01f6cc
Requires(post):		chkconfig
01f6cc
Requires(preun):	chkconfig
01f6cc
Requires(preun):	initscripts
01f6cc
Requires(postun):	initscripts
feb7b8
%endif
01f6cc
609b69
%description -n dpm-copy-server-mysql
01f6cc
The LCG Disk Pool Manager (DPM) creates a storage element from a set
01f6cc
of disks. It provides several interfaces for storing and retrieving
995d52
data such as HTTP, gridftp and xroot.
609b69
This package provides a DPM copy server that uses MySQL as its
Ricardo Rocha 82ab91
database back-end.
01f6cc
609b69
%package -n dpm-srm-server-mysql
Ricardo Rocha 82ab91
Summary:	DPM SRM server with MySQL database back-end
797dc1
Requires:	finger
609b69
Requires:	dpm-libs%{?_isa} = %{version}-%{release}
609b69
Provides:	dpm-mysql-srmv1 = %{version}-%{release}
609b69
Obsoletes:	dpm-mysql-srmv1 < 1.8.1.2-2
609b69
Provides:	dpm-mysql-srmv2 = %{version}-%{release}
609b69
Obsoletes:	dpm-mysql-srmv2 < 1.8.1.2-2
609b69
Provides:	dpm-mysql-srmv22 = %{version}-%{release}
Ricardo Rocha 82ab91
Obsoletes:	dpm-mysql-srmv22 <= 1.8.2
Ricardo Rocha 82ab91
Provides:	DPM-srm-server-mysql = %{version}-%{release}
Ricardo Rocha 82ab91
Obsoletes:	DPM-srm-server-mysql <= 1.8.2
01f6cc
609b69
Requires(pre):		shadow-utils
feb7b8
%if %systemd
797dc1
%{?systemd_requires}
feb7b8
%else
01f6cc
Requires(post):		chkconfig
01f6cc
Requires(preun):	chkconfig
01f6cc
Requires(preun):	initscripts
01f6cc
Requires(postun):	initscripts
feb7b8
%endif
01f6cc
609b69
%description -n dpm-srm-server-mysql
01f6cc
The LCG Disk Pool Manager (DPM) creates a storage element from a set
01f6cc
of disks. It provides several interfaces for storing and retrieving
995d52
data such as HTTP, gridftp and xroot.
609b69
This package provides a DPM SRM server that uses MySQL as its
Ricardo Rocha 82ab91
database back-end.
01f6cc
609b69
%package -n dpm-rfio-server
609b69
Summary:	DPM RFIO server
797dc1
Requires:	finger
609b69
Requires:	dpm-libs%{?_isa} = %{version}-%{release}
609b69
Provides:	dpm-rfiod = %{version}-%{release}
609b69
Obsoletes:	dpm-rfiod < 1.8.1.2-2
Ricardo Rocha 82ab91
Provides:	DPM-rfio-server = %{version}-%{release}
Ricardo Rocha 82ab91
Obsoletes:	DPM-rfio-server <= 1.8.2
01f6cc
feb7b8
%if %systemd
797dc1
%{?systemd_requires}
feb7b8
%else
01f6cc
Requires(post):		chkconfig
01f6cc
Requires(preun):	chkconfig
01f6cc
Requires(preun):	initscripts
01f6cc
Requires(postun):	initscripts
feb7b8
%endif
01f6cc
609b69
%description -n dpm-rfio-server
01f6cc
The LCG Disk Pool Manager (DPM) creates a storage element from a set
01f6cc
of disks. It provides several interfaces for storing and retrieving
995d52
data such as HTTP, gridftp and xroot.
609b69
This package provides a Remote File IO (RFIO) server for DPM.
01f6cc
797dc1
%if %{?_with_argus:1}%{!?_with_argus:0}
797dc1
%package -n dpm-argus
797dc1
Summary:	DPM Argus support
797dc1
Requires:	dpm-mysql-nameserver = %{version}-%{release}
797dc1
Provides:	dpm-argus = %{version}-%{release}
797dc1
797dc1
%description -n dpm-argus
797dc1
Argus support for the Disk Pool Manager (DPM).
797dc1
%endif
797dc1
01f6cc
%prep
13b176
%setup -T -q -c
01f6cc
%setup -q -c -n %{name}-%{version}/lfc-mysql
01f6cc
%setup -q -c -n %{name}-%{version}/dpm-mysql
Ricardo Rocha 82ab91
%setup -D -T -q -a 1
01f6cc
%setup -D -T -q
01f6cc
Ricardo Rocha 82ab91
for d in lfc-mysql dpm-mysql ; do
01f6cc
01f6cc
pushd $d/%{name}-%{version}
01f6cc
01f6cc
%patch0 -p1
01f6cc
01f6cc
chmod 644 security/globus_gsi_gss_constants.h \
01f6cc
	  security/globus_i_gsi_credential.h \
01f6cc
	  security/gssapi_openssl.h
7430aa
chmod 644 doc/lfc/INSTALL-*
01f6cc
01f6cc
# The code violates the strict aliasing rules all over the place...
01f6cc
# Need to use -fnostrict-aliasing so that the -O2 optimization in
01f6cc
# optflags doesn't try to use them.
Alejandro Alvarez Ayllon e9dc75
sed 's:^CC +=:& %{optflags} -fno-strict-aliasing -fno-tree-sink:' -i config/linux.cf
Ricardo Rocha 82ab91
sed "s/i386/'i386'/" -i config/linux.cf
01f6cc
01f6cc
popd
01f6cc
01f6cc
done
01f6cc
01f6cc
%build
797dc1
gsoapversion=`soapcpp2 -v 2>&1 
01f6cc
01f6cc
pushd lfc-mysql/%{name}-%{version}
01f6cc
797dc1
./configure lfc \
4be6cf
	%{?_without_argus} \
797dc1
	--with-python=%{__python2} \
4edb22
	--with-mysql \
01f6cc
	--libdir=%{_lib} \
01f6cc
	--with-gsoap-version=$gsoapversion \
01f6cc
	--with-id-map-file=%{_sysconfdir}/lcgdm-mapfile \
01f6cc
	--with-ns-config-file=%{_sysconfdir}/NSCONFIG \
Ricardo Rocha 82ab91
	--with-etc-dir='$(prefix)/../etc' \
4be6cf
	--with-emi 
01f6cc
01f6cc
make -f Makefile.ini Makefiles
01f6cc
Ricardo Rocha 82ab91
make %{?_smp_mflags} SOAPFLG="`pkg-config --cflags gsoap`"
01f6cc
01f6cc
popd
01f6cc
01f6cc
pushd dpm-mysql/%{name}-%{version}
01f6cc
4edb22
./configure dpm \
4be6cf
	%{?_without_argus} \
797dc1
	--with-python=%{__python2} \
4edb22
	--with-mysql \
01f6cc
	--libdir=%{_lib} \
01f6cc
	--with-gsoap-version=$gsoapversion \
01f6cc
	--with-dpm-config-file=%{_sysconfdir}/DPMCONFIG \
01f6cc
	--with-id-map-file=%{_sysconfdir}/lcgdm-mapfile \
Ricardo Rocha 82ab91
	--with-ns-config-file=%{_sysconfdir}/NSCONFIG \
Ricardo Rocha 82ab91
	--with-etc-dir='$(prefix)/../etc' \
4be6cf
	--with-emi 
01f6cc
01f6cc
make -f Makefile.ini Makefiles
01f6cc
Ricardo Rocha 82ab91
make %{?_smp_mflags} SOAPFLG="`pkg-config --cflags gsoap`"
01f6cc
01f6cc
popd
01f6cc
797dc1
%if %{?fedora}%{!?fedora:0} >= 13 || %{?rhel}%{!?rhel:0} >= 7
797dc1
mkdir python3
797dc1
pushd python3
13b176
797dc1
INCLUDE_PYTHON=`%{__python3} \
13b176
    -c "from distutils import sysconfig; \
13b176
	import sys; \
13b176
	sys.stdout.write('-I' + sysconfig.get_python_inc(0))"`
797dc1
PYTHON_LIB=`%{__python3} \
13b176
    -c "from distutils import sysconfig; \
13b176
	import sys; \
13b176
	sys.stdout.write('-L' + sysconfig.get_config_var('LIBDEST') + \
1ced0c
	'/config -lpython' + sys.version[:3] \
64c033
	   + sys.abiflags if hasattr(sys, 'abiflags') else '' \
64c033
	   + ' ' + \
13b176
	sysconfig.get_config_var('LIBS') + ' ' + \
13b176
	sysconfig.get_config_var('SYSLIBS'))"`
797dc1
PYTHON_MODULE_SUFFIX=`%{__python3} \
1ced0c
    -c "from distutils import sysconfig; \
64c033
	print(sysconfig.get_config_var('SO'))"`
13b176
13b176
for module in lfc lfcthr lfc2 lfc2thr ; do
13b176
13b176
gcc %{optflags} -fno-strict-aliasing -fPIC -D_LARGEFILE64_SOURCE -Dlinux \
13b176
    -c -pthread -DCTHREAD_LINUX -D_THREAD_SAFE -D_REENTRANT \
13b176
    -I../lfc-mysql/%{name}-%{version}/h -DNSTYPE_LFC \
13b176
    ${INCLUDE_PYTHON} ../lfc-mysql/%{name}-%{version}/ns/${module}_wrap.c
13b176
gcc %{optflags} -fno-strict-aliasing -fPIC -D_LARGEFILE64_SOURCE -Dlinux \
1ced0c
    -shared -o _${module}${PYTHON_MODULE_SUFFIX} ${module}_wrap.o ${PYTHON_LIB} \
cb8ae3
    %{?__global_ldflags} -L../lfc-mysql/%{name}-%{version}/shlib -llfc -llcgdm
13b176
13b176
done
13b176
13b176
for module in dpm dpm2 ; do
13b176
13b176
gcc %{optflags} -fno-strict-aliasing -fPIC -D_LARGEFILE64_SOURCE -Dlinux \
13b176
    -c -pthread -DCTHREAD_LINUX -D_THREAD_SAFE -D_REENTRANT \
13b176
    -I../dpm-mysql/%{name}-%{version}/h -DNSTYPE_DPNS \
13b176
    ${INCLUDE_PYTHON} ../dpm-mysql/%{name}-%{version}/dpm/${module}_wrap.c
13b176
gcc %{optflags} -fno-strict-aliasing -fPIC -D_LARGEFILE64_SOURCE -Dlinux \
1ced0c
    -shared -o _${module}${PYTHON_MODULE_SUFFIX} ${module}_wrap.o ${PYTHON_LIB} \
cb8ae3
    %{?__global_ldflags} -L../dpm-mysql/%{name}-%{version}/shlib -ldpm -llcgdm
13b176
13b176
done
13b176
13b176
popd
13b176
%endif
13b176
01f6cc
%install
feb7b8
%if %systemd
feb7b8
mkdir -p ${RPM_BUILD_ROOT}%{_unitdir}
feb7b8
%endif
609b69
01f6cc
pushd lfc-mysql/%{name}-%{version}
01f6cc
64c033
make SOAPFLG="`pkg-config --cflags gsoap`" \
64c033
     prefix=${RPM_BUILD_ROOT}%{_prefix} install install.man
01f6cc
feb7b8
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/lfc-mysql
01f6cc
feb7b8
# lfcdaemon unit file / startup script
feb7b8
%if %systemd
Ricardo Rocha 507a45
rm ${RPM_BUILD_ROOT}/%{_sysconfdir}/lfc-mysql/lfcdaemon.conf
Ricardo Rocha 507a45
rm ${RPM_BUILD_ROOT}/%{_sysconfdir}/lfc-mysql/lfcdaemon.init
feb7b8
install -m 644 -p ../../lcgdm-unitfiles/mysql/lfcdaemon.service \
feb7b8
    ${RPM_BUILD_ROOT}%{_datadir}/lfc-mysql
feb7b8
touch ${RPM_BUILD_ROOT}%{_unitdir}/lfcdaemon.service
feb7b8
%else
609b69
touch ${RPM_BUILD_ROOT}%{_initrddir}/lfcdaemon
609b69
chmod 755 ${RPM_BUILD_ROOT}%{_initrddir}/lfcdaemon
01f6cc
touch ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/lfcdaemon
feb7b8
%endif
01f6cc
01f6cc
touch ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/lfcdaemon
01f6cc
touch ${RPM_BUILD_ROOT}%{_sbindir}/lfcdaemon
01f6cc
chmod 755 ${RPM_BUILD_ROOT}%{_sbindir}/lfcdaemon
01f6cc
touch ${RPM_BUILD_ROOT}%{_mandir}/man8/lfcdaemon.8
Ricardo Rocha 82ab91
touch ${RPM_BUILD_ROOT}%{_datadir}/lcgdm/NSCONFIG.templ
01f6cc
touch ${RPM_BUILD_ROOT}%{_sbindir}/lfc-shutdown
01f6cc
chmod 755 ${RPM_BUILD_ROOT}%{_sbindir}/lfc-shutdown
01f6cc
touch ${RPM_BUILD_ROOT}%{_mandir}/man8/lfc-shutdown.8
01f6cc
feb7b8
# lfc-dli unit file / startup script
feb7b8
%if %systemd
Ricardo Rocha 507a45
rm ${RPM_BUILD_ROOT}/%{_sysconfdir}/sysconfig/lfc-dli
Ricardo Rocha 507a45
rm ${RPM_BUILD_ROOT}/%{_initrddir}/lfc-dli
feb7b8
install -m 644 -p ../../lcgdm-unitfiles/lfc-dli.service \
feb7b8
    ${RPM_BUILD_ROOT}%{_unitdir}
Ricardo Rocha 82ab91
%endif
01f6cc
01f6cc
# Remove static libraries
01f6cc
rm ${RPM_BUILD_ROOT}%{_libdir}/liblfc.a
01f6cc
rm ${RPM_BUILD_ROOT}%{_libdir}/liblcgdm.a
01f6cc
01f6cc
popd
01f6cc
01f6cc
pushd dpm-mysql/%{name}-%{version}
01f6cc
64c033
make SOAPFLG="`pkg-config --cflags gsoap`" \
64c033
     prefix=${RPM_BUILD_ROOT}%{_prefix} install install.man
01f6cc
feb7b8
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/dpm-mysql
01f6cc
feb7b8
# dpm unit file / startup script
feb7b8
%if %systemd
Ricardo Rocha 507a45
rm ${RPM_BUILD_ROOT}/%{_sysconfdir}/dpm-mysql/dpm.conf
Ricardo Rocha 507a45
rm ${RPM_BUILD_ROOT}/%{_sysconfdir}/dpm-mysql/dpm.init
feb7b8
install -m 644 -p ../../lcgdm-unitfiles/mysql/dpm.service \
feb7b8
    ${RPM_BUILD_ROOT}%{_datadir}/dpm-mysql
feb7b8
touch ${RPM_BUILD_ROOT}%{_unitdir}/dpm.service
feb7b8
%else
609b69
touch ${RPM_BUILD_ROOT}%{_initrddir}/dpm
609b69
chmod 755 ${RPM_BUILD_ROOT}%{_initrddir}/dpm
01f6cc
touch ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/dpm
feb7b8
%endif
01f6cc
01f6cc
touch ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/dpm
01f6cc
touch ${RPM_BUILD_ROOT}%{_sbindir}/dpm
01f6cc
chmod 755 ${RPM_BUILD_ROOT}%{_sbindir}/dpm
01f6cc
touch ${RPM_BUILD_ROOT}%{_mandir}/man8/dpm.8
Ricardo Rocha 82ab91
touch ${RPM_BUILD_ROOT}%{_datadir}/lcgdm/DPMCONFIG.templ
01f6cc
touch ${RPM_BUILD_ROOT}%{_sbindir}/dpm-shutdown
01f6cc
chmod 755 ${RPM_BUILD_ROOT}%{_sbindir}/dpm-shutdown
01f6cc
touch ${RPM_BUILD_ROOT}%{_mandir}/man8/dpm-shutdown.8
95206e
touch ${RPM_BUILD_ROOT}%{_sbindir}/dpm-buildfsv
95206e
chmod 755 ${RPM_BUILD_ROOT}%{_sbindir}/dpm-buildfsv
95206e
touch ${RPM_BUILD_ROOT}%{_mandir}/man8/dpm-buildfsv.8
95206e
feb7b8
# dpnsdaemon unit file / startup script
feb7b8
%if %systemd
Ricardo Rocha 507a45
rm ${RPM_BUILD_ROOT}/%{_sysconfdir}/dpm-mysql/dpnsdaemon.conf
Ricardo Rocha 507a45
rm ${RPM_BUILD_ROOT}/%{_sysconfdir}/dpm-mysql/dpnsdaemon.init
feb7b8
install -m 644 -p ../../lcgdm-unitfiles/mysql/dpnsdaemon.service \
feb7b8
    ${RPM_BUILD_ROOT}%{_datadir}/dpm-mysql
feb7b8
touch ${RPM_BUILD_ROOT}%{_unitdir}/dpnsdaemon.service
feb7b8
%else
609b69
touch ${RPM_BUILD_ROOT}%{_initrddir}/dpnsdaemon
609b69
chmod 755 ${RPM_BUILD_ROOT}%{_initrddir}/dpnsdaemon
01f6cc
touch ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/dpnsdaemon
feb7b8
%endif
01f6cc
touch ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/dpnsdaemon
01f6cc
touch ${RPM_BUILD_ROOT}%{_sbindir}/dpnsdaemon
01f6cc
chmod 755 ${RPM_BUILD_ROOT}%{_sbindir}/dpnsdaemon
01f6cc
touch ${RPM_BUILD_ROOT}%{_mandir}/man8/dpnsdaemon.8
Ricardo Rocha 82ab91
touch ${RPM_BUILD_ROOT}%{_datadir}/lcgdm/NSCONFIG.templ
01f6cc
touch ${RPM_BUILD_ROOT}%{_sbindir}/dpns-shutdown
01f6cc
chmod 755 ${RPM_BUILD_ROOT}%{_sbindir}/dpns-shutdown
01f6cc
touch ${RPM_BUILD_ROOT}%{_mandir}/man8/dpns-shutdown.8
01f6cc
feb7b8
# dpmcopyd unit file / startup script
feb7b8
%if %systemd
Ricardo Rocha 507a45
rm ${RPM_BUILD_ROOT}/%{_sysconfdir}/dpm-mysql/dpmcopyd.conf
Ricardo Rocha 507a45
rm ${RPM_BUILD_ROOT}/%{_sysconfdir}/dpm-mysql/dpmcopyd.init
feb7b8
install -m 644 -p ../../lcgdm-unitfiles/mysql/dpmcopyd.service \
feb7b8
    ${RPM_BUILD_ROOT}%{_datadir}/dpm-mysql
feb7b8
touch ${RPM_BUILD_ROOT}%{_unitdir}/dpmcopyd.service
feb7b8
%else
609b69
touch ${RPM_BUILD_ROOT}%{_initrddir}/dpmcopyd
609b69
chmod 755 ${RPM_BUILD_ROOT}%{_initrddir}/dpmcopyd
01f6cc
touch ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/dpmcopyd
feb7b8
%endif
01f6cc
01f6cc
touch ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/dpmcopyd
01f6cc
touch ${RPM_BUILD_ROOT}%{_sbindir}/dpmcopyd
01f6cc
chmod 755 ${RPM_BUILD_ROOT}%{_sbindir}/dpmcopyd
01f6cc
touch ${RPM_BUILD_ROOT}%{_mandir}/man8/dpmcopyd.8
01f6cc
01f6cc
for svc in srmv1 srmv2 srmv2.2 ; do
feb7b8
    # unit file / startup script
feb7b8
%if %systemd
Ricardo Rocha 507a45
    rm ${RPM_BUILD_ROOT}/%{_sysconfdir}/dpm-mysql/${svc}.conf
Ricardo Rocha 507a45
    rm ${RPM_BUILD_ROOT}/%{_sysconfdir}/dpm-mysql/${svc}.init
Ricardo Rocha 82ab91
    install -m 644 -p ../../lcgdm-unitfiles/mysql/${svc}.service \
feb7b8
	${RPM_BUILD_ROOT}%{_datadir}/dpm-mysql
Ricardo Rocha 82ab91
    touch ${RPM_BUILD_ROOT}%{_unitdir}/${svc}.service
feb7b8
%else
797dc1
    touch ${RPM_BUILD_ROOT}%{_initrddir}/${svc}
797dc1
    chmod 755 ${RPM_BUILD_ROOT}%{_initrddir}/${svc}
797dc1
    touch ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/${svc}
Ricardo Rocha 82ab91
%endif
Ricardo Rocha 82ab91
797dc1
    touch ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/${svc}
797dc1
    touch ${RPM_BUILD_ROOT}%{_sbindir}/${svc}
797dc1
    chmod 755 ${RPM_BUILD_ROOT}%{_sbindir}/${svc}
797dc1
    touch ${RPM_BUILD_ROOT}%{_mandir}/man8/${svc}.8
01f6cc
done
01f6cc
feb7b8
# dpm-rfiod unit file / startup script
feb7b8
%if %systemd
Ricardo Rocha 507a45
rm ${RPM_BUILD_ROOT}/%{_sysconfdir}/sysconfig/rfiod
Ricardo Rocha 507a45
rm ${RPM_BUILD_ROOT}/%{_initrddir}/rfiod
Ricardo Rocha 82ab91
install -m 644 -p ../../lcgdm-unitfiles/rfiod.service \
feb7b8
    ${RPM_BUILD_ROOT}%{_unitdir}
feb7b8
%endif
01f6cc
Ricardo Rocha 82ab91
# remove static library
Ricardo Rocha 82ab91
rm ${RPM_BUILD_ROOT}%{_libdir}/libdpm.a
Ricardo Rocha 82ab91
rm ${RPM_BUILD_ROOT}%{_libdir}/liblcgdm.a
01f6cc
Ricardo Rocha 82ab91
popd
01f6cc
Ricardo Rocha 82ab91
# remove the log man page (already exists in the system and not needed anyway)
Ricardo Rocha 82ab91
rm ${RPM_BUILD_ROOT}%{_mandir}/man3/log.3*
01f6cc
797dc1
%if %{?fedora}%{!?fedora:0} >= 13 || %{?rhel}%{!?rhel:0} >= 7
797dc1
mkdir -p ${RPM_BUILD_ROOT}%{python3_sitearch}
Ricardo Rocha 82ab91
install -m 644 lfc-mysql/%{name}-%{version}/ns/*.py \
Ricardo Rocha 82ab91
	       dpm-mysql/%{name}-%{version}/dpm/*.py \
797dc1
	       ${RPM_BUILD_ROOT}%{python3_sitearch}
797dc1
install python3/*.so ${RPM_BUILD_ROOT}%{python3_sitearch}
Ricardo Rocha 82ab91
%endif
01f6cc
4edb22
# Add the upgrade scripts 
4edb22
mkdir ${RPM_BUILD_ROOT}%{_datadir}/lcgdm/upgrades
4edb22
install -m 755 lfc-mysql/%{name}-%{version}/scripts/upgrades/*.pm ${RPM_BUILD_ROOT}%{_datadir}/lcgdm/upgrades
4edb22
install -m 755 lfc-mysql/%{name}-%{version}/scripts/upgrades/cns-db* ${RPM_BUILD_ROOT}%{_datadir}/lcgdm/upgrades
4edb22
install -m 755 lfc-mysql/%{name}-%{version}/scripts/upgrades/dpm-db* ${RPM_BUILD_ROOT}%{_datadir}/lcgdm/upgrades
4edb22
de2022
# Add the star accounting script
1f10d2
mkdir ${RPM_BUILD_ROOT}%{_datadir}/lcgdm/scripts
1f10d2
install -m 755 lfc-mysql/%{name}-%{version}/scripts/StAR-accounting/star-accounting.py ${RPM_BUILD_ROOT}%{_datadir}/lcgdm/scripts
1f10d2
Ricardo Rocha 82ab91
# Add the LFC info provider script
Ricardo Rocha 82ab91
mkdir ${RPM_BUILD_ROOT}%{_libexecdir}
Ricardo Rocha 82ab91
install -m 755 lfc-mysql/%{name}-%{version}/scripts/lcg-info-provider-lfc ${RPM_BUILD_ROOT}%{_libexecdir}
01f6cc
797dc1
# Fix shebang in dpm-listspaces script
797dc1
%if %{?fedora}%{!?fedora:0} >= 26 || %{?rhel}%{!?rhel:0} >= 8
797dc1
sed 's!/usr/bin/env python!%{__python3}!' \
797dc1
    -i ${RPM_BUILD_ROOT}%{_bindir}/dpm-listspaces
797dc1
%else
797dc1
sed 's!/usr/bin/env python!%{__python2}!' \
797dc1
    -i ${RPM_BUILD_ROOT}%{_bindir}/dpm-listspaces
797dc1
%endif
01f6cc
797dc1
%ldconfig_scriptlets libs
797dc1
%ldconfig_scriptlets -n lfc-libs
797dc1
%ldconfig_scriptlets -n dpm-libs
609b69
609b69
%pre -n lfc-server-mysql
609b69
getent group lfcmgr > /dev/null || groupadd -r lfcmgr
609b69
getent passwd lfcmgr > /dev/null || useradd -r -g lfcmgr \
609b69
    -d %{_localstatedir}/lib/lfc -s /bin/bash -c "LFC Manager" lfcmgr
609b69
exit 0
01f6cc
609b69
%post -n lfc-server-mysql
Ricardo Rocha 82ab91
if [ -e /etc/init.d/lfcdaemon -a ! -h /etc/init.d/lfcdaemon ]; then
Ricardo Rocha 82ab91
	rm /etc/init.d/lfcdaemon
Ricardo Rocha 82ab91
fi
01f6cc
%{_sbindir}/update-alternatives --install %{_sbindir}/lfcdaemon lfcdaemon \
01f6cc
	  %{_libdir}/lfc-mysql/lfcdaemon 20 \
01f6cc
  --slave %{_mandir}/man8/lfcdaemon.8.gz lfcdaemon.8.gz \
01f6cc
	  %{_libdir}/lfc-mysql/lfcdaemon.8.gz \
Ricardo Rocha 82ab91
  --slave %{_datadir}/lcgdm/NSCONFIG.templ NSCONFIG.templ \
Ricardo Rocha 82ab91
	  %{_libdir}/lfc-mysql/NSCONFIG.templ \
feb7b8
%if %systemd
feb7b8
  --slave %{_unitdir}/lfcdaemon.service lfcdaemon.service \
feb7b8
	  %{_datadir}/lfc-mysql/lfcdaemon.service \
feb7b8
%else
609b69
  --slave %{_initrddir}/lfcdaemon lfcdaemon.init \
609b69
	  %{_sysconfdir}/lfc-mysql/lfcdaemon.init \
01f6cc
  --slave %{_sysconfdir}/sysconfig/lfcdaemon lfcdaemon.conf \
01f6cc
	  %{_sysconfdir}/lfc-mysql/lfcdaemon.conf \
feb7b8
%endif
01f6cc
  --slave %{_sysconfdir}/logrotate.d/lfcdaemon lfcdaemon.logrotate \
01f6cc
	  %{_sysconfdir}/lfc-mysql/lfcdaemon.logrotate \
01f6cc
  --slave %{_sbindir}/lfc-shutdown lfc-shutdown \
01f6cc
	  %{_libdir}/lfc-mysql/lfc-shutdown \
01f6cc
  --slave %{_mandir}/man8/lfc-shutdown.8.gz lfc-shutdown.8.gz \
609b69
	  %{_libdir}/lfc-mysql/lfc-shutdown.8.gz
e8c5ef
feb7b8
%if %systemd
cecbe2
%systemd_post lfcdaemon.service
feb7b8
%else
cecbe2
if [ $1 -eq 1 ]; then
feb7b8
    /sbin/chkconfig --add lfcdaemon
01f6cc
fi
cecbe2
%endif
01f6cc
609b69
%preun -n lfc-server-mysql
01f6cc
export LANG=C
01f6cc
feb7b8
if [ $1 -eq 0 ]; then
feb7b8
    if ( %{_sbindir}/update-alternatives --display lfcdaemon | \
feb7b8
	grep currently | grep -q lfc-mysql ) ; then
feb7b8
%if %systemd
cecbe2
	%systemd_preun lfcdaemon.service
feb7b8
%else
609b69
	/sbin/service lfcdaemon stop > /dev/null 2>&1 || :
feb7b8
%endif
feb7b8
    fi
01f6cc
    %{_sbindir}/update-alternatives --remove lfcdaemon \
609b69
	%{_libdir}/lfc-mysql/lfcdaemon
feb7b8
%if %systemd == 0
609b69
    %{_sbindir}/update-alternatives --display lfcdaemon > /dev/null || \
609b69
	/sbin/chkconfig --del lfcdaemon > /dev/null 2>&1 || :
feb7b8
%endif
01f6cc
fi
01f6cc
609b69
%postun -n lfc-server-mysql
01f6cc
export LANG=C
01f6cc
609b69
if [ $1 -ge 1 ]; then
feb7b8
    if ( %{_sbindir}/update-alternatives --display lfcdaemon | \
feb7b8
	grep currently | grep -q lfc-mysql ) ; then
feb7b8
%if %systemd
cecbe2
	%systemd_postun_with_restart lfcdaemon.service
feb7b8
%else
609b69
	/sbin/service lfcdaemon condrestart > /dev/null 2>&1 || :
feb7b8
%endif
feb7b8
    fi
01f6cc
fi
01f6cc
609b69
%post -n lfc-dli
feb7b8
%if %systemd
feb7b8
# Clean up pre-systemd config
feb7b8
if [ -r %{_initrddir}/lfc-dli ] ; then
feb7b8
    /sbin/service lfc-dli stop > /dev/null 2>&1 || :
feb7b8
    /sbin/chkconfig --del lfc-dli > /dev/null 2>&1 || :
feb7b8
fi
feb7b8
%endif
feb7b8
feb7b8
%if %systemd
cecbe2
%systemd_post lfc-dli.service
feb7b8
%else
cecbe2
if [ $1 -eq 1 ]; then
609b69
    /sbin/chkconfig --add lfc-dli
01f6cc
fi
cecbe2
%endif
01f6cc
609b69
%preun -n lfc-dli
feb7b8
%if %systemd
cecbe2
%systemd_preun lfc-dli.service
feb7b8
%else
cecbe2
if [ $1 -eq 0 ]; then
609b69
    /sbin/service lfc-dli stop > /dev/null 2>&1 || :
609b69
    /sbin/chkconfig --del lfc-dli
01f6cc
fi
cecbe2
%endif
01f6cc
609b69
%postun -n lfc-dli
feb7b8
%if %systemd
cecbe2
    %systemd_postun_with_restart lfc-dli.service
feb7b8
%else
cecbe2
if [ $1 -ge 1 ]; then
609b69
    /sbin/service lfc-dli condrestart > /dev/null 2>&1 || :
01f6cc
fi
cecbe2
%endif
01f6cc
609b69
%post -n dpm-server-mysql
feb7b8
%if %systemd
feb7b8
# Clean up pre-systemd config
feb7b8
if [ -r %{_initrddir}/dpm ] ; then
feb7b8
    /sbin/service dpm stop > /dev/null 2>&1 || :
feb7b8
    /sbin/chkconfig --del dpm > /dev/null 2>&1 || :
feb7b8
fi
feb7b8
%endif
feb7b8
609b69
%{_sbindir}/update-alternatives --install %{_sbindir}/dpm dpm \
609b69
	  %{_libdir}/dpm-mysql/dpm 20 \
609b69
  --slave %{_mandir}/man8/dpm.8.gz dpm.8.gz \
609b69
	  %{_libdir}/dpm-mysql/dpm.8.gz \
Ricardo Rocha 82ab91
  --slave %{_datadir}/lcgdm/DPMCONFIG.templ DPMCONFIG.templ \
Ricardo Rocha 82ab91
	  %{_libdir}/dpm-mysql/DPMCONFIG.templ \
feb7b8
%if %systemd
feb7b8
  --slave %{_unitdir}/dpm.service dpm.service \
feb7b8
	  %{_datadir}/dpm-mysql/dpm.service \
feb7b8
%else
609b69
  --slave %{_initrddir}/dpm dpm.init \
609b69
	  %{_sysconfdir}/dpm-mysql/dpm.init \
609b69
  --slave %{_sysconfdir}/sysconfig/dpm dpm.conf \
609b69
	  %{_sysconfdir}/dpm-mysql/dpm.conf \
feb7b8
%endif
609b69
  --slave %{_sysconfdir}/logrotate.d/dpm dpm.logrotate \
609b69
	  %{_sysconfdir}/dpm-mysql/dpm.logrotate \
609b69
  --slave %{_sbindir}/dpm-shutdown dpm-shutdown \
609b69
	  %{_libdir}/dpm-mysql/dpm-shutdown \
609b69
  --slave %{_mandir}/man8/dpm-shutdown.8.gz dpm-shutdown.8.gz \
95206e
	  %{_libdir}/dpm-mysql/dpm-shutdown.8.gz \
95206e
  --slave %{_sbindir}/dpm-buildfsv dpm-buildfsv \
95206e
	  %{_libdir}/dpm-mysql/dpm-buildfsv \
95206e
  --slave %{_mandir}/man8/dpm-buildfsv.8.gz dpm-buildfsv.8.gz \
95206e
	  %{_libdir}/dpm-mysql/dpm-buildfsv.8.gz
01f6cc
feb7b8
%if %systemd
cecbe2
    %systemd_post dpm.service
feb7b8
%else
cecbe2
if [ $1 -eq 1 ]; then
feb7b8
    /sbin/chkconfig --add dpm
01f6cc
fi
cecbe2
%endif
01f6cc
609b69
%preun -n dpm-server-mysql
e8c5ef
export LANG=C
e8c5ef
feb7b8
if [ $1 -eq 0 ]; then
feb7b8
    if ( %{_sbindir}/update-alternatives --display dpm | \
feb7b8
	grep currently | grep -q dpm-mysql ) ; then
feb7b8
%if %systemd
cecbe2
	%systemd_preun dpm.service
feb7b8
%else
609b69
	/sbin/service dpm stop > /dev/null 2>&1 || :
feb7b8
%endif
feb7b8
    fi
609b69
    %{_sbindir}/update-alternatives --remove dpm \
609b69
	%{_libdir}/dpm-mysql/dpm
feb7b8
%if %systemd == 0
609b69
    %{_sbindir}/update-alternatives --display dpm > /dev/null || \
609b69
	/sbin/chkconfig --del dpm > /dev/null 2>&1 || :
feb7b8
%endif
01f6cc
fi
01f6cc
609b69
%postun -n dpm-server-mysql
e8c5ef
export LANG=C
e8c5ef
01f6cc
if [ $1 -ge 1 ]; then
feb7b8
    if ( %{_sbindir}/update-alternatives --display dpm | \
feb7b8
	grep currently | grep -q dpm-mysql ) ; then
feb7b8
%if %systemd
cecbe2
	%systemd_postun_with_restart dpm.service
feb7b8
%else
609b69
	/sbin/service dpm condrestart > /dev/null 2>&1 || :
feb7b8
%endif
feb7b8
    fi
01f6cc
fi
01f6cc
609b69
%post -n dpm-name-server-mysql
feb7b8
%if %systemd
feb7b8
# Clean up pre-systemd config
feb7b8
if [ -r %{_initrddir}/dpnsdaemon ] ; then
feb7b8
    /sbin/service dpnsdaemon stop > /dev/null 2>&1 || :
feb7b8
    /sbin/chkconfig --del dpnsdaemon > /dev/null 2>&1 || :
feb7b8
fi
feb7b8
%endif
feb7b8
609b69
%{_sbindir}/update-alternatives --install %{_sbindir}/dpnsdaemon dpnsdaemon \
609b69
	  %{_libdir}/dpm-mysql/dpnsdaemon 20 \
609b69
  --slave %{_mandir}/man8/dpnsdaemon.8.gz dpnsdaemon.8.gz \
609b69
	  %{_libdir}/dpm-mysql/dpnsdaemon.8.gz \
Ricardo Rocha 82ab91
  --slave %{_datadir}/lcgdm/NSCONFIG.templ NSCONFIG.templ \
Ricardo Rocha 82ab91
	  %{_libdir}/dpm-mysql/NSCONFIG.templ \
feb7b8
%if %systemd
feb7b8
  --slave %{_unitdir}/dpnsdaemon.service dpnsdaemon.service \
feb7b8
	  %{_datadir}/dpm-mysql/dpnsdaemon.service \
feb7b8
%else
609b69
  --slave %{_initrddir}/dpnsdaemon dpnsdaemon.init \
609b69
	  %{_sysconfdir}/dpm-mysql/dpnsdaemon.init \
609b69
  --slave %{_sysconfdir}/sysconfig/dpnsdaemon dpnsdaemon.conf \
609b69
	  %{_sysconfdir}/dpm-mysql/dpnsdaemon.conf \
feb7b8
%endif
609b69
  --slave %{_sysconfdir}/logrotate.d/dpnsdaemon dpnsdaemon.logrotate \
609b69
	  %{_sysconfdir}/dpm-mysql/dpnsdaemon.logrotate \
609b69
  --slave %{_sbindir}/dpns-shutdown dpns-shutdown \
609b69
	  %{_libdir}/dpm-mysql/dpns-shutdown \
609b69
  --slave %{_mandir}/man8/dpns-shutdown.8.gz dpns-shutdown.8.gz \
609b69
	  %{_libdir}/dpm-mysql/dpns-shutdown.8.gz
609b69
feb7b8
%if %systemd
cecbe2
    %systemd_post dpnsdaemon.service
feb7b8
%else
cecbe2
if [ $1 -eq 1 ]; then
feb7b8
    /sbin/chkconfig --add dpnsdaemon
01f6cc
fi
cecbe2
%endif
01f6cc
609b69
%preun -n dpm-name-server-mysql
609b69
export LANG=C
609b69
feb7b8
if [ $1 -eq 0 ]; then
feb7b8
    if ( %{_sbindir}/update-alternatives --display dpnsdaemon | \
feb7b8
	grep currently | grep -q dpm-mysql ) ; then
feb7b8
%if %systemd
cecbe2
	%systemd_preun dpnsdaemon.service
feb7b8
%else
Ricardo Rocha 82ab91
	/sbin/service dpnsdaemon stop > /dev/null 2>&1 || :
feb7b8
%endif
feb7b8
    fi
Ricardo Rocha 82ab91
    %{_sbindir}/update-alternatives --remove dpnsdaemon \
Ricardo Rocha 82ab91
	%{_libdir}/dpm-mysql/dpnsdaemon
Ricardo Rocha 82ab91
%if %systemd == 0
Ricardo Rocha 82ab91
    %{_sbindir}/update-alternatives --display dpnsdaemon > /dev/null || \
Ricardo Rocha 82ab91
	/sbin/chkconfig --del dpnsdaemon > /dev/null 2>&1 || :
Ricardo Rocha 82ab91
%endif
01f6cc
fi
01f6cc
Ricardo Rocha 82ab91
%postun -n dpm-name-server-mysql
e8c5ef
export LANG=C
e8c5ef
01f6cc
if [ $1 -ge 1 ]; then
feb7b8
    if ( %{_sbindir}/update-alternatives --display dpnsdaemon | \
Ricardo Rocha 82ab91
	grep currently | grep -q dpm-mysql ) ; then
feb7b8
%if %systemd
cecbe2
	%systemd_postun_with_restart dpnsdaemon.service
feb7b8
%else
609b69
	/sbin/service dpnsdaemon condrestart > /dev/null 2>&1 || :
feb7b8
%endif
feb7b8
    fi
609b69
fi
609b69
609b69
%post -n dpm-copy-server-mysql
feb7b8
%if %systemd
feb7b8
# Clean up pre-systemd config
feb7b8
if [ -r %{_initrddir}/dpmcopyd ] ; then
feb7b8
    /sbin/service dpmcopyd stop > /dev/null 2>&1 || :
feb7b8
    /sbin/chkconfig --del dpmcopyd > /dev/null 2>&1 || :
feb7b8
fi
feb7b8
%endif
feb7b8
609b69
%{_sbindir}/update-alternatives --install %{_sbindir}/dpmcopyd dpmcopyd \
609b69
	  %{_libdir}/dpm-mysql/dpmcopyd 20 \
609b69
  --slave %{_mandir}/man8/dpmcopyd.8.gz dpmcopyd.8.gz \
609b69
	  %{_libdir}/dpm-mysql/dpmcopyd.8.gz \
feb7b8
%if %systemd
feb7b8
  --slave %{_unitdir}/dpmcopyd.service dpmcopyd.service \
feb7b8
	  %{_datadir}/dpm-mysql/dpmcopyd.service \
feb7b8
%else
609b69
  --slave %{_initrddir}/dpmcopyd dpmcopyd.init \
609b69
	  %{_sysconfdir}/dpm-mysql/dpmcopyd.init \
609b69
  --slave %{_sysconfdir}/sysconfig/dpmcopyd dpmcopyd.conf \
609b69
	  %{_sysconfdir}/dpm-mysql/dpmcopyd.conf \
feb7b8
%endif
609b69
  --slave %{_sysconfdir}/logrotate.d/dpmcopyd dpmcopyd.logrotate \
609b69
	  %{_sysconfdir}/dpm-mysql/dpmcopyd.logrotate
609b69
feb7b8
%if %systemd
cecbe2
    %systemd_post dpmcopyd.service
feb7b8
%else
cecbe2
if [ $1 -eq 1 ]; then
feb7b8
    /sbin/chkconfig --add dpmcopyd
01f6cc
fi
cecbe2
%endif
01f6cc
609b69
%preun -n dpm-copy-server-mysql
609b69
export LANG=C
01f6cc
feb7b8
if [ $1 -eq 0 ]; then
feb7b8
    if ( %{_sbindir}/update-alternatives --display dpmcopyd | \
feb7b8
	grep currently | grep -q dpm-mysql ) ; then
feb7b8
%if %systemd
cecbe2
	%systemd_preun dpmcopyd.service
feb7b8
%else
609b69
	/sbin/service dpmcopyd stop > /dev/null 2>&1 || :
feb7b8
%endif
feb7b8
    fi
609b69
    %{_sbindir}/update-alternatives --remove dpmcopyd \
609b69
	%{_libdir}/dpm-mysql/dpmcopyd
feb7b8
%if %systemd == 0
609b69
    %{_sbindir}/update-alternatives --display dpmcopyd > /dev/null || \
609b69
	/sbin/chkconfig --del dpmcopyd > /dev/null 2>&1 || :
feb7b8
%endif
609b69
fi
609b69
609b69
%postun -n dpm-copy-server-mysql
609b69
export LANG=C
609b69
609b69
if [ $1 -ge 1 ]; then
feb7b8
    if ( %{_sbindir}/update-alternatives --display dpmcopyd | \
feb7b8
	grep currently | grep -q dpm-mysql ) ; then
feb7b8
%if %systemd
cecbe2
	%systemd_postun_with_restart dpmcopyd.service
feb7b8
%else
609b69
	/sbin/service dpmcopyd condrestart > /dev/null 2>&1 || :
feb7b8
%endif
feb7b8
    fi
01f6cc
fi
01f6cc
609b69
%post -n dpm-srm-server-mysql
feb7b8
%if %systemd
feb7b8
# Clean up pre-systemd config
Ricardo Rocha 82ab91
if [ -r %{_initrddir}/srmv1 ] ; then
Ricardo Rocha 82ab91
    /sbin/service srmv1 stop > /dev/null 2>&1 || :
Ricardo Rocha 82ab91
    /sbin/chkconfig --del srmv1 > /dev/null 2>&1 || :
feb7b8
fi
Ricardo Rocha 82ab91
if [ -r %{_initrddir}/srmv2 ] ; then
Ricardo Rocha 82ab91
    /sbin/service srmv2 stop > /dev/null 2>&1 || :
Ricardo Rocha 82ab91
    /sbin/chkconfig --del srmv2 > /dev/null 2>&1 || :
feb7b8
fi
Ricardo Rocha 82ab91
if [ -r %{_initrddir}/srmv2.2 ] ; then
Ricardo Rocha 82ab91
    /sbin/service srmv2.2 stop > /dev/null 2>&1 || :
Ricardo Rocha 82ab91
    /sbin/chkconfig --del srmv2.2 > /dev/null 2>&1 || :
feb7b8
fi
feb7b8
%endif
feb7b8
Ricardo Rocha 82ab91
%{_sbindir}/update-alternatives --install %{_sbindir}/srmv1 srmv1 \
Ricardo Rocha 82ab91
	  %{_libdir}/dpm-mysql/srmv1 20 \
Ricardo Rocha 82ab91
  --slave %{_mandir}/man8/srmv1.8.gz srmv1.8.gz \
Ricardo Rocha 82ab91
	  %{_libdir}/dpm-mysql/srmv1.8.gz \
feb7b8
%if %systemd
Ricardo Rocha 82ab91
  --slave %{_unitdir}/srmv1.service srmv1.service \
Ricardo Rocha 82ab91
	  %{_libdir}/dpm-mysql/srmv1.service \
feb7b8
%else
Ricardo Rocha 82ab91
  --slave %{_initrddir}/srmv1 srmv1.init \
Ricardo Rocha 82ab91
	  %{_sysconfdir}/dpm-mysql/srmv1.init \
Ricardo Rocha 82ab91
  --slave %{_sysconfdir}/sysconfig/srmv1 srmv1.conf \
Ricardo Rocha 82ab91
	  %{_sysconfdir}/dpm-mysql/srmv1.conf \
feb7b8
%endif
Ricardo Rocha 82ab91
  --slave %{_sysconfdir}/logrotate.d/srmv1 srmv1.logrotate \
Ricardo Rocha 82ab91
	  %{_sysconfdir}/dpm-mysql/srmv1.logrotate
609b69
Ricardo Rocha 82ab91
%{_sbindir}/update-alternatives --install %{_sbindir}/srmv2 srmv2 \
Ricardo Rocha 82ab91
	  %{_libdir}/dpm-mysql/srmv2 20 \
Ricardo Rocha 82ab91
  --slave %{_mandir}/man8/srmv2.8.gz srmv2.8.gz \
Ricardo Rocha 82ab91
	  %{_libdir}/dpm-mysql/srmv2.8.gz \
feb7b8
%if %systemd
Ricardo Rocha 82ab91
  --slave %{_unitdir}/srmv2.service srmv2.service \
Ricardo Rocha 82ab91
	  %{_datadir}/dpm-mysql/dpm-srmv2.service \
feb7b8
%else
Ricardo Rocha 82ab91
  --slave %{_initrddir}/srmv2 srmv2.init \
Ricardo Rocha 82ab91
	  %{_sysconfdir}/dpm-mysql/srmv2.init \
Ricardo Rocha 82ab91
  --slave %{_sysconfdir}/sysconfig/srmv2 srmv2.conf \
Ricardo Rocha 82ab91
	  %{_sysconfdir}/dpm-mysql/srmv2.conf \
feb7b8
%endif
Ricardo Rocha 82ab91
  --slave %{_sysconfdir}/logrotate.d/srmv2 srmv2.logrotate \
Ricardo Rocha 82ab91
	  %{_sysconfdir}/dpm-mysql/srmv2.logrotate
feb7b8
Ricardo Rocha 82ab91
%{_sbindir}/update-alternatives --install %{_sbindir}/srmv2.2 srmv2.2 \
Ricardo Rocha 82ab91
	  %{_libdir}/dpm-mysql/srmv2.2 20 \
Ricardo Rocha 82ab91
  --slave %{_mandir}/man8/srmv2.2.8.gz srmv2.2.8.gz \
Ricardo Rocha 82ab91
	  %{_libdir}/dpm-mysql/srmv2.2.8.gz \
feb7b8
%if %systemd
Ricardo Rocha 82ab91
  --slave %{_unitdir}/srmv2.2.service srmv2.2.service \
Ricardo Rocha 82ab91
	  %{_datadir}/dpm-mysql/srmv2.2.service \
feb7b8
%else
Ricardo Rocha 82ab91
  --slave %{_initrddir}/srmv2.2 srmv2.2.init \
Ricardo Rocha 82ab91
	  %{_sysconfdir}/dpm-mysql/srmv2.2.init \
Ricardo Rocha 82ab91
  --slave %{_sysconfdir}/sysconfig/srmv2.2 srmv2.2.conf \
Ricardo Rocha 82ab91
	  %{_sysconfdir}/dpm-mysql/srmv2.2.conf \
feb7b8
%endif
Ricardo Rocha 82ab91
  --slave %{_sysconfdir}/logrotate.d/srmv2.2 srmv2.2.logrotate \
Ricardo Rocha 82ab91
	  %{_sysconfdir}/dpm-mysql/srmv2.2.logrotate
609b69
cecbe2
feb7b8
%if %systemd
cecbe2
    %systemd_post srmv1.service
cecbe2
    %systemd_post srmv2.service
cecbe2
    %systemd_post srmv2.2.service
feb7b8
%else
cecbe2
if [ $1 -eq 1 ]; then
Ricardo Rocha 82ab91
    /sbin/chkconfig --add srmv1
Ricardo Rocha 82ab91
    /sbin/chkconfig --add srmv2
Ricardo Rocha 82ab91
    /sbin/chkconfig --add srmv2.2
01f6cc
fi
cecbe2
%endif
609b69
609b69
%preun -n dpm-srm-server-mysql
01f6cc
export LANG=C
01f6cc
feb7b8
if [ $1 -eq 0 ]; then
Ricardo Rocha 82ab91
    if ( %{_sbindir}/update-alternatives --display srmv1 | \
feb7b8
	grep currently | grep -q dpm-mysql ) ; then
feb7b8
%if %systemd
cecbe2
	%systemd_preun srmv1.service
feb7b8
%else
Ricardo Rocha 82ab91
	/sbin/service srmv1 stop > /dev/null 2>&1 || :
feb7b8
%endif
feb7b8
    fi
Ricardo Rocha 82ab91
    %{_sbindir}/update-alternatives --remove srmv1 \
Ricardo Rocha 82ab91
	%{_libdir}/dpm-mysql/srmv1
feb7b8
%if %systemd == 0
Ricardo Rocha 82ab91
    %{_sbindir}/update-alternatives --display srmv1 > /dev/null || \
Ricardo Rocha 82ab91
	/sbin/chkconfig --del srmv1 > /dev/null 2>&1 || :
feb7b8
%endif
609b69
Ricardo Rocha 82ab91
    if ( %{_sbindir}/update-alternatives --display srmv2 | \
feb7b8
	grep currently | grep -q dpm-mysql ) ; then
feb7b8
%if %systemd
cecbe2
	%systemd_preun srmv2.service
feb7b8
%else
Ricardo Rocha 82ab91
	/sbin/service srmv2 stop > /dev/null 2>&1 || :
feb7b8
%endif
feb7b8
    fi
Ricardo Rocha 82ab91
    %{_sbindir}/update-alternatives --remove srmv2 \
Ricardo Rocha 82ab91
	%{_libdir}/dpm-mysql/srmv2
feb7b8
%if %systemd == 0
Ricardo Rocha 82ab91
    %{_sbindir}/update-alternatives --display srmv2 > /dev/null || \
Ricardo Rocha 82ab91
	/sbin/chkconfig --del srmv2 > /dev/null 2>&1 || :
feb7b8
%endif
609b69
Ricardo Rocha 82ab91
    if ( %{_sbindir}/update-alternatives --display srmv2.2 | \
feb7b8
	grep currently | grep -q dpm-mysql ) ; then
feb7b8
%if %systemd
cecbe2
	%systemd_preun srmv2.2.service
feb7b8
%else
Ricardo Rocha 82ab91
	/sbin/service srmv2.2 stop > /dev/null 2>&1 || :
feb7b8
%endif
feb7b8
    fi
Ricardo Rocha 82ab91
    %{_sbindir}/update-alternatives --remove srmv2.2 \
Ricardo Rocha 82ab91
	%{_libdir}/dpm-mysql/srmv2.2
feb7b8
%if %systemd == 0
Ricardo Rocha 82ab91
    %{_sbindir}/update-alternatives --display srmv2.2 > /dev/null || \
Ricardo Rocha 82ab91
	/sbin/chkconfig --del srmv2.2 > /dev/null 2>&1 || :
feb7b8
%endif
01f6cc
fi
01f6cc
609b69
%postun -n dpm-srm-server-mysql
01f6cc
export LANG=C
01f6cc
609b69
if [ $1 -ge 1 ]; then
Ricardo Rocha 82ab91
    if ( %{_sbindir}/update-alternatives --display srmv1 | \
feb7b8
	grep currently | grep -q dpm-mysql ) ; then
feb7b8
%if %systemd
cecbe2
	%systemd_postun_with_restart srmv1.service
feb7b8
%else
Ricardo Rocha 82ab91
	/sbin/service srmv1 condrestart > /dev/null 2>&1 || :
feb7b8
%endif
feb7b8
    fi
609b69
Ricardo Rocha 82ab91
    if ( %{_sbindir}/update-alternatives --display srmv2 | \
feb7b8
	grep currently | grep -q dpm-mysql ) ; then
feb7b8
%if %systemd
cecbe2
	%systemd_postun_with_restart srmv2.service
feb7b8
%else
Ricardo Rocha 82ab91
	/sbin/service srmv2 condrestart > /dev/null 2>&1 || :
feb7b8
%endif
feb7b8
    fi
609b69
Ricardo Rocha 82ab91
    if ( %{_sbindir}/update-alternatives --display srmv2.2 | \
feb7b8
	grep currently | grep -q dpm-mysql ) ; then
feb7b8
%if %systemd
cecbe2
	%systemd_postun_with_restart srmv2.2.service
feb7b8
%else
Ricardo Rocha 82ab91
	/sbin/service srmv2.2 condrestart > /dev/null 2>&1 || :
feb7b8
%endif
feb7b8
    fi
01f6cc
fi
01f6cc
609b69
%post -n dpm-rfio-server
feb7b8
%if %systemd
feb7b8
# Clean up pre-systemd config
Ricardo Rocha 82ab91
if [ -r %{_initrddir}/rfiod ] ; then
Ricardo Rocha 82ab91
    /sbin/service rfiod stop > /dev/null 2>&1 || :
Ricardo Rocha 82ab91
    /sbin/chkconfig --del rfiod > /dev/null 2>&1 || :
feb7b8
fi
feb7b8
%endif
feb7b8
feb7b8
%if %systemd
cecbe2
%systemd_post rfiod.service
feb7b8
%else
cecbe2
if [ $1 -eq 1 ]; then
Ricardo Rocha 82ab91
    /sbin/chkconfig --add rfiod
01f6cc
fi
cecbe2
%endif
01f6cc
609b69
%preun -n dpm-rfio-server
feb7b8
if [ $1 -eq 0 ]; then
feb7b8
%if %systemd
cecbe2
    %systemd_preun rfiod.service
feb7b8
%else
Ricardo Rocha 82ab91
    /sbin/service rfiod stop > /dev/null 2>&1 || :
Ricardo Rocha 82ab91
    /sbin/chkconfig --del rfiod
feb7b8
%endif
01f6cc
fi
01f6cc
609b69
%postun -n dpm-rfio-server
01f6cc
if [ $1 -ge 1 ]; then
feb7b8
%if %systemd
cecbe2
    %systemd_postun_with_restart rfiod.service
feb7b8
%else
Ricardo Rocha 82ab91
    /sbin/service rfiod condrestart > /dev/null 2>&1 || :
feb7b8
%endif
01f6cc
fi
01f6cc
609b69
%files libs
01f6cc
%{_libdir}/liblcgdm.so.*
Ricardo Rocha 82ab91
%{_libdir}/libCsec_plugin_GSI.so
Ricardo Rocha 82ab91
%{_libdir}/libCsec_plugin_ID.so
4edb22
%dir %{_datadir}/lcgdm/upgrades
4edb22
%{_datadir}/lcgdm/upgrades/Common.pm
797dc1
%license lfc-mysql/%{name}-%{version}/README lfc-mysql/%{name}-%{version}/LICENSE
01f6cc
01f6cc
%files devel
01f6cc
%{_libdir}/liblcgdm.so
01f6cc
%doc %{_mandir}/man3/C*.3*
01f6cc
%doc %{_mandir}/man3/getconfent.3*
01f6cc
%doc %{_mandir}/man3/netclose.3*
01f6cc
%doc %{_mandir}/man3/netread.3*
01f6cc
%doc %{_mandir}/man3/netwrite.3*
01f6cc
%doc %{_mandir}/man3/serrno.3*
01f6cc
%doc %{_mandir}/man4/Castor_limits.4*
01f6cc
609b69
%files -n lfc-libs
01f6cc
%{_libdir}/liblfc.so.*
01f6cc
01f6cc
%files -n lfc-devel
01f6cc
%{_includedir}/lfc
01f6cc
%{_libdir}/liblfc.so
01f6cc
%doc %{_mandir}/man3/lfc_[a-o]*.3*
01f6cc
%doc %{_mandir}/man3/lfc_ping.3*
01f6cc
%doc %{_mandir}/man3/lfc_[q-z]*.3*
01f6cc
609b69
%files -n lfc
01f6cc
%{_bindir}/lfc-*
01f6cc
%doc %{_mandir}/man1/lfc-*
4be6cf
%{_libexecdir}/lcg-info-provider-lfc
01f6cc
01f6cc
%files -n lfc-perl
01f6cc
%{perl_vendorarch}/lfc.so
01f6cc
%{perl_vendorarch}/lfc.pm
01f6cc
%doc %{_mandir}/man3/lfc_perl.3*
01f6cc
410ccc
%files -n python2-lfc
4916e1
%{python2_sitearch}/_lfc.so
4916e1
%{python2_sitearch}/lfc.py*
4916e1
%{python2_sitearch}/_lfcthr.so
4916e1
%{python2_sitearch}/lfcthr.py*
4916e1
%{python2_sitearch}/_lfc2.so
4916e1
%{python2_sitearch}/lfc2.py*
4916e1
%{python2_sitearch}/_lfc2thr.so
4916e1
%{python2_sitearch}/lfc2thr.py*
797dc1
%if ! ( %{?fedora}%{!?fedora:0} >= 26 || %{?rhel}%{!?rhel:0} >= 8 )
01f6cc
%doc %{_mandir}/man3/lfc_python.3*
01f6cc
%doc %{_mandir}/man3/lfc2_python.3*
797dc1
%endif
01f6cc
797dc1
%if  %{?fedora}%{!?fedora:0} >= 13 || %{?rhel}%{!?rhel:0} >= 7
797dc1
%files -n python%{python3_pkgversion}-lfc
797dc1
%{python3_sitearch}/_lfc.*so
797dc1
%{python3_sitearch}/lfc.py*
797dc1
%{python3_sitearch}/_lfcthr.*so
797dc1
%{python3_sitearch}/lfcthr.py
797dc1
%{python3_sitearch}/_lfc2.*so
797dc1
%{python3_sitearch}/lfc2.py*
797dc1
%{python3_sitearch}/_lfc2thr.*so
797dc1
%{python3_sitearch}/lfc2thr.py
797dc1
%{python3_sitearch}/__pycache__/lfc*
797dc1
%if %{?fedora}%{!?fedora:0} >= 26 || %{?rhel}%{!?rhel:0} >= 8
797dc1
%doc %{_mandir}/man3/lfc_python.3*
797dc1
%doc %{_mandir}/man3/lfc2_python.3*
7430aa
%endif
13b176
%endif
13b176
609b69
%files -n lfc-server-mysql
01f6cc
%dir %{_libdir}/lfc-mysql
01f6cc
%{_libdir}/lfc-mysql/lfcdaemon
01f6cc
%ghost %{_sbindir}/lfcdaemon
01f6cc
%{_libdir}/lfc-mysql/lfc-shutdown
01f6cc
%ghost %{_sbindir}/lfc-shutdown
Ricardo Rocha 82ab91
%{_libdir}/lfc-mysql/NSCONFIG.templ
Ricardo Rocha 82ab91
%ghost %{_datadir}/lcgdm/NSCONFIG.templ
01f6cc
%doc %{_libdir}/lfc-mysql/lfcdaemon.8*
01f6cc
%ghost %{_mandir}/man8/lfcdaemon.8*
01f6cc
%doc %{_libdir}/lfc-mysql/lfc-shutdown.8*
01f6cc
%ghost %{_mandir}/man8/lfc-shutdown.8*
01f6cc
%dir %{_sysconfdir}/lfc-mysql
feb7b8
%if %systemd
Ricardo Rocha 82ab91
%dir %{_datadir}/lfc-mysql
feb7b8
%{_datadir}/lfc-mysql/lfcdaemon.service
feb7b8
%ghost %{_unitdir}/lfcdaemon.service
feb7b8
%else
609b69
%{_sysconfdir}/lfc-mysql/lfcdaemon.init
609b69
%ghost %{_initrddir}/lfcdaemon
01f6cc
%config(noreplace) %{_sysconfdir}/lfc-mysql/lfcdaemon.conf
01f6cc
%ghost %{_sysconfdir}/sysconfig/lfcdaemon
feb7b8
%endif
01f6cc
%config(noreplace) %{_sysconfdir}/lfc-mysql/lfcdaemon.logrotate
01f6cc
%ghost %{_sysconfdir}/logrotate.d/lfcdaemon
Ricardo Rocha 82ab91
%doc %{_datadir}/lcgdm/create_lfc_tables_mysql.sql
de2022
%{_datadir}/lcgdm/upgrades/cns-db-*
01f6cc
609b69
%files -n lfc-dli
609b69
%{_sbindir}/lfc-dli
609b69
%doc %{_mandir}/man8/lfc-dli.8*
feb7b8
%if %systemd
feb7b8
%{_unitdir}/lfc-dli.service
feb7b8
%else
609b69
%{_initrddir}/lfc-dli
609b69
%config(noreplace) %{_sysconfdir}/sysconfig/lfc-dli
feb7b8
%endif
609b69
%config(noreplace) %{_sysconfdir}/logrotate.d/lfc-dli
609b69
609b69
%files -n dpm-libs
01f6cc
%{_libdir}/libdpm.so.*
01f6cc
01f6cc
%files -n dpm-devel
01f6cc
%{_includedir}/dpm
01f6cc
%{_libdir}/libdpm.so
01f6cc
%doc %{_mandir}/man3/dpm_[a-o]*.3*
01f6cc
%doc %{_mandir}/man3/dpm_ping.3*
01f6cc
%doc %{_mandir}/man3/dpm_put.3*
de2022
%doc %{_mandir}/man3/dpm_putx.3*
01f6cc
%doc %{_mandir}/man3/dpm_putdone.3*
01f6cc
%doc %{_mandir}/man3/dpm_[q-z]*.3*
01f6cc
%doc %{_mandir}/man3/dpns_*.3*
01f6cc
%doc %{_mandir}/man3/rfio*.3*
01f6cc
609b69
%files -n dpm
01f6cc
%{_bindir}/dpm-[a-k]*
01f6cc
%{_bindir}/dpm-[m-z]*
01f6cc
%{_bindir}/dpns-*
01f6cc
%{_bindir}/rf*
01f6cc
%doc %{_mandir}/man1/dpm-[a-k]*
01f6cc
%doc %{_mandir}/man1/dpm-[m-z]*
01f6cc
%doc %{_mandir}/man1/dpns-*
01f6cc
%doc %{_mandir}/man1/rf*
01f6cc
01f6cc
%files -n dpm-perl
01f6cc
%{perl_vendorarch}/dpm.so
01f6cc
%{perl_vendorarch}/dpm.pm
01f6cc
797dc1
%files -n python2-dpm
797dc1
%if ! ( %{?fedora}%{!?fedora:0} >= 26 || %{?rhel}%{!?rhel:0} >= 8 )
01f6cc
%{_bindir}/dpm-listspaces
932023
%doc %{_mandir}/man1/dpm-listspaces.1*
01f6cc
%doc %{_mandir}/man3/dpm_python.3*
01f6cc
%doc %{_mandir}/man3/dpm2_python.3*
932023
%endif
4916e1
%{python2_sitearch}/_dpm.so
4916e1
%{python2_sitearch}/dpm.py*
4916e1
%{python2_sitearch}/_dpm2.so
4916e1
%{python2_sitearch}/dpm2.py*
01f6cc
797dc1
%if %{?fedora}%{!?fedora:0} >= 13 || %{?rhel}%{!?rhel:0} >= 7
797dc1
%files -n python%{python3_pkgversion}-dpm
797dc1
%if %{?fedora}%{!?fedora:0} >= 26 || %{?rhel}%{!?rhel:0} >= 8
932023
%{_bindir}/dpm-listspaces
932023
%doc %{_mandir}/man1/dpm-listspaces.1*
797dc1
%doc %{_mandir}/man3/dpm_python.3*
797dc1
%doc %{_mandir}/man3/dpm2_python.3*
932023
%endif
797dc1
%{python3_sitearch}/_dpm.*so
797dc1
%{python3_sitearch}/dpm.py*
797dc1
%{python3_sitearch}/_dpm2.*so
797dc1
%{python3_sitearch}/dpm2.py
797dc1
%{python3_sitearch}/__pycache__/dpm*
13b176
%endif
13b176
609b69
%files -n dpm-server-mysql
01f6cc
%dir %{_libdir}/dpm-mysql
01f6cc
%{_libdir}/dpm-mysql/dpm
01f6cc
%ghost %{_sbindir}/dpm
01f6cc
%{_libdir}/dpm-mysql/dpm-shutdown
01f6cc
%ghost %{_sbindir}/dpm-shutdown
95206e
%{_libdir}/dpm-mysql/dpm-buildfsv
95206e
%ghost %{_sbindir}/dpm-buildfsv
01f6cc
%doc %{_libdir}/dpm-mysql/dpm.8*
01f6cc
%ghost %{_mandir}/man8/dpm.8*
01f6cc
%doc %{_libdir}/dpm-mysql/dpm-shutdown.8*
01f6cc
%ghost %{_mandir}/man8/dpm-shutdown.8*
95206e
%doc %{_libdir}/dpm-mysql/dpm-buildfsv.8*
95206e
%ghost %{_mandir}/man8/dpm-buildfsv.8*
Ricardo Rocha 82ab91
%{_libdir}/dpm-mysql/DPMCONFIG.templ
Ricardo Rocha 82ab91
%ghost %{_datadir}/lcgdm/DPMCONFIG.templ
01f6cc
%dir %{_sysconfdir}/dpm-mysql
feb7b8
%if %systemd
Ricardo Rocha 82ab91
%dir %{_datadir}/dpm-mysql
feb7b8
%{_datadir}/dpm-mysql/dpm.service
feb7b8
%ghost %{_unitdir}/dpm.service
feb7b8
%else
609b69
%{_sysconfdir}/dpm-mysql/dpm.init
609b69
%ghost %{_initrddir}/dpm
01f6cc
%config(noreplace) %{_sysconfdir}/dpm-mysql/dpm.conf
01f6cc
%ghost %{_sysconfdir}/sysconfig/dpm
feb7b8
%endif
01f6cc
%config(noreplace) %{_sysconfdir}/dpm-mysql/dpm.logrotate
01f6cc
%ghost %{_sysconfdir}/logrotate.d/dpm
Ricardo Rocha 82ab91
%{_datadir}/lcgdm/create_dpm_tables_mysql.sql
4edb22
%{_datadir}/lcgdm/upgrades/dpm-db-*
1f10d2
%{_datadir}/lcgdm/scripts/*
01f6cc
609b69
%files -n dpm-name-server-mysql
609b69
%{_libdir}/dpm-mysql/dpnsdaemon
609b69
%ghost %{_sbindir}/dpnsdaemon
609b69
%{_libdir}/dpm-mysql/dpns-shutdown
609b69
%ghost %{_sbindir}/dpns-shutdown
609b69
%doc %{_libdir}/dpm-mysql/dpnsdaemon.8*
609b69
%ghost %{_mandir}/man8/dpnsdaemon.8*
609b69
%doc %{_libdir}/dpm-mysql/dpns-shutdown.8*
609b69
%ghost %{_mandir}/man8/dpns-shutdown.8*
Ricardo Rocha 82ab91
%{_libdir}/dpm-mysql/NSCONFIG.templ
Ricardo Rocha 82ab91
%ghost %{_datadir}/lcgdm/NSCONFIG.templ
feb7b8
%if %systemd
Ricardo Rocha 82ab91
%dir %{_datadir}/dpm-mysql
feb7b8
%{_datadir}/dpm-mysql/dpnsdaemon.service
feb7b8
%ghost %{_unitdir}/dpnsdaemon.service
feb7b8
%else
609b69
%{_sysconfdir}/dpm-mysql/dpnsdaemon.init
609b69
%ghost %{_initrddir}/dpnsdaemon
609b69
%config(noreplace) %{_sysconfdir}/dpm-mysql/dpnsdaemon.conf
609b69
%ghost %{_sysconfdir}/sysconfig/dpnsdaemon
feb7b8
%endif
609b69
%config(noreplace) %{_sysconfdir}/dpm-mysql/dpnsdaemon.logrotate
609b69
%ghost %{_sysconfdir}/logrotate.d/dpnsdaemon
Ricardo Rocha 82ab91
%{_datadir}/lcgdm/create_dpns_tables_mysql.sql
4edb22
%{_datadir}/lcgdm/upgrades/cns-db-*
01f6cc
609b69
%files -n dpm-copy-server-mysql
609b69
%{_libdir}/dpm-mysql/dpmcopyd
609b69
%ghost %{_sbindir}/dpmcopyd
609b69
%doc %{_libdir}/dpm-mysql/dpmcopyd.8*
609b69
%ghost %{_mandir}/man8/dpmcopyd.8*
feb7b8
%if %systemd
feb7b8
%dir %{_datadir}/dpm-mysql
feb7b8
%{_datadir}/dpm-mysql/dpmcopyd.service
feb7b8
%ghost %{_unitdir}/dpmcopyd.service
feb7b8
%else
609b69
%{_sysconfdir}/dpm-mysql/dpmcopyd.init
609b69
%ghost %{_initrddir}/dpmcopyd
609b69
%config(noreplace) %{_sysconfdir}/dpm-mysql/dpmcopyd.conf
609b69
%ghost %{_sysconfdir}/sysconfig/dpmcopyd
feb7b8
%endif
609b69
%config(noreplace) %{_sysconfdir}/dpm-mysql/dpmcopyd.logrotate
609b69
%ghost %{_sysconfdir}/logrotate.d/dpmcopyd
01f6cc
609b69
%files -n dpm-srm-server-mysql
Ricardo Rocha 82ab91
%{_libdir}/dpm-mysql/srmv1
Ricardo Rocha 82ab91
%{_libdir}/dpm-mysql/srmv2
Ricardo Rocha 82ab91
%{_libdir}/dpm-mysql/srmv2.2
Ricardo Rocha 82ab91
%ghost %{_sbindir}/srmv1
Ricardo Rocha 82ab91
%ghost %{_sbindir}/srmv2
Ricardo Rocha 82ab91
%ghost %{_sbindir}/srmv2.2
Ricardo Rocha 82ab91
%doc %{_libdir}/dpm-mysql/srmv1.8*
Ricardo Rocha 82ab91
%doc %{_libdir}/dpm-mysql/srmv2.8*
Ricardo Rocha 82ab91
%doc %{_libdir}/dpm-mysql/srmv2.2.8*
Ricardo Rocha 82ab91
%ghost %{_mandir}/man8/srmv1.8*
Ricardo Rocha 82ab91
%ghost %{_mandir}/man8/srmv2.8*
Ricardo Rocha 82ab91
%ghost %{_mandir}/man8/srmv2.2.8*
feb7b8
%if %systemd
feb7b8
%dir %{_datadir}/dpm-mysql
Ricardo Rocha 82ab91
%{_datadir}/dpm-mysql/srmv1.service
Ricardo Rocha 82ab91
%{_datadir}/dpm-mysql/srmv2.service
Ricardo Rocha 82ab91
%{_datadir}/dpm-mysql/srmv2.2.service
Ricardo Rocha 82ab91
%ghost %{_unitdir}/srmv1.service
Ricardo Rocha 82ab91
%ghost %{_unitdir}/srmv2.service
Ricardo Rocha 82ab91
%ghost %{_unitdir}/srmv2.2.service
Ricardo Rocha 82ab91
%else
Ricardo Rocha 82ab91
%{_sysconfdir}/dpm-mysql/srmv1.init
Ricardo Rocha 82ab91
%{_sysconfdir}/dpm-mysql/srmv2.init
Ricardo Rocha 82ab91
%{_sysconfdir}/dpm-mysql/srmv2.2.init
Ricardo Rocha 82ab91
%ghost %{_initrddir}/srmv1
Ricardo Rocha 82ab91
%ghost %{_initrddir}/srmv2
Ricardo Rocha 82ab91
%ghost %{_initrddir}/srmv2.2
Ricardo Rocha 82ab91
%config(noreplace) %{_sysconfdir}/dpm-mysql/srmv1.conf
Ricardo Rocha 82ab91
%config(noreplace) %{_sysconfdir}/dpm-mysql/srmv2.conf
Ricardo Rocha 82ab91
%config(noreplace) %{_sysconfdir}/dpm-mysql/srmv2.2.conf
Ricardo Rocha 82ab91
%ghost %{_sysconfdir}/sysconfig/srmv1
Ricardo Rocha 82ab91
%ghost %{_sysconfdir}/sysconfig/srmv2
Ricardo Rocha 82ab91
%ghost %{_sysconfdir}/sysconfig/srmv2.2
Ricardo Rocha 82ab91
%endif
Ricardo Rocha 82ab91
%config(noreplace) %{_sysconfdir}/dpm-mysql/srmv1.logrotate
Ricardo Rocha 82ab91
%config(noreplace) %{_sysconfdir}/dpm-mysql/srmv2.logrotate
Ricardo Rocha 82ab91
%config(noreplace) %{_sysconfdir}/dpm-mysql/srmv2.2.logrotate
Ricardo Rocha 82ab91
%ghost %{_sysconfdir}/logrotate.d/srmv1
Ricardo Rocha 82ab91
%ghost %{_sysconfdir}/logrotate.d/srmv2
Ricardo Rocha 82ab91
%ghost %{_sysconfdir}/logrotate.d/srmv2.2
01f6cc
609b69
%files -n dpm-rfio-server
Ricardo Rocha 82ab91
%{_sbindir}/rfiod
feb7b8
%if %systemd
Ricardo Rocha 82ab91
%{_unitdir}/rfiod.service
feb7b8
%else
Ricardo Rocha 82ab91
%{_initrddir}/rfiod
Ricardo Rocha 82ab91
%config(noreplace) %{_sysconfdir}/sysconfig/rfiod
feb7b8
%endif
Ricardo Rocha 82ab91
%config(noreplace) %{_sysconfdir}/logrotate.d/rfiod
Ricardo Rocha 82ab91
%doc %{_mandir}/man8/rfiod.8*
01f6cc
4be6cf
%if %{?_with_argus:1}%{!?_with_argus:0}
4be6cf
%files -n dpm-argus
4be6cf
%{_bindir}/dpns-arguspoll
4be6cf
%endif
4be6cf
01f6cc
%changelog
fea891
* Mon Jul 15 2019 Andrea Manzi <andrea.manzi@cern.ch> - 1.13.0-1
fea891
- New upstream release 1.13.0
fea891
1ca835
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.12.0-3
1ca835
- Perl 5.30 rebuild
1ca835
73ec27
* Wed Mar 13 2019 Oliver Keeble <oliver.keeble@cern.ch> - 1.12.0-2
73ec27
- Add isa provides for python2 packages
73ec27
a2b08c
* Fri Mar 08 2019 Oliver Keeble <oliver.keeble@cern.ch> - 1.12.0-1
a2b08c
- New upstream release 1.12.0
a2b08c
- Drop patch lcgdm-1.10.0-explicit-python2
a2b08c
3db112
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-16
3db112
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
3db112
48ceaf
* Mon Jan 14 2019 Björn Esser <besser82@fedoraproject.org> - 1.10.0-15
48ceaf
- Rebuilt for libcrypt.so.2 (#1666033)
48ceaf
684e30
* Fri Jan 04 2019 Björn Esser <besser82@fedoraproject.org> - 1.10.0-14
684e30
- Add patch to use explicit python2 shebangs, fixes FTBFS for Fedora 30
cb8ae3
- Link the c compiled python modules with proper LDFLAGS
684e30
797dc1
* Thu Aug 09 2018 Mattias Ellert <mattias.ellert@physics.uu.se> - 1.10.0-13
797dc1
- Use explicit --with-python=/usr/bin/python2 in configure (fixes rawhide)
797dc1
- Remove redundant macro definitions for old Fedora and EPEL releases
797dc1
- Only filter provides on EPEL 6 - the others filter correctly by default
797dc1
- Add python34-lfc and python34-dnf packages for EPEL 7
797dc1
- Remove obsolete Group tags
797dc1
- Fix more python subpackage names
797dc1
- Fix shebang in dpm-listspaces script
797dc1
- Use %%license, %%ldconfig_scriptlets and %%systemd_requires
797dc1
410ccc
* Mon Jul 16 2018 Miro Hrončok <mhroncok@redhat.com> - 1.10.0-12
410ccc
- Fix python subpackage names
410ccc
d7a6e2
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-11
d7a6e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
d7a6e2
6a1f3a
* Tue Jul 03 2018 Petr Pisar <ppisar@redhat.com> - 1.10.0-10
6a1f3a
- Perl 5.28 rebuild
6a1f3a
fa5640
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.10.0-9
fa5640
- Perl 5.28 rebuild
fa5640
27284b
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.10.0-8
27284b
- Rebuilt for Python 3.7
27284b
932023
* Fri Mar 16 2018 Oliver Keeble <oliver.keeble@cern.ch> - 1.10.0-7
932023
- Python fix Bug 1436812
932023
3b040f
* Thu Mar 15 2018 Oliver Keeble <oliver.keeble@cern.ch> - 1.10.0-6
3b040f
- New upstream 1.10.0e
3b040f
466359
* Wed Mar 07 2018 Adam Williamson <awilliam@redhat.com> - 1.10.0-5
466359
- Rebuild to fix GCC 8 mis-compilation
466359
  See https://da.gd/YJVwk ("GCC 8 ABI change on x86_64")
466359
02bf2b
* Thu Feb 22 2018 Andrea Manzi <amanzi@cern.ch> - 1.10.0-5
02bf2b
- New Upstream Release
02bf2b
3dcbc3
* Fri Feb 16 2018 Andrea Manzi <amanzi@cern.ch> - 1.10.0-4
80cc3c
- New Upstream Release
80cc3c
87715f
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-3
87715f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
87715f
6eac13
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 1.10.0-2
6eac13
- Rebuilt for switch to libxcrypt
6eac13
f7f5f7
* Tue Dec 12 2017 Andrea Manzi <amanzi@cern.ch> - 1.9.2-1
f7f5f7
- New Upstream Release
f7f5f7
3dbe4c
* Fri Dec 8 2017 Andrea Manzi <amanzi@cern.ch> - 1.9.1-1
59a763
- New Upstream Release
59a763
f4a7a0
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-8
f4a7a0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
f4a7a0
7125bc
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-7
7125bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
7125bc
Igor Gnatenko 1b86e9
* Fri Jul 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.9.0-6
Igor Gnatenko 1b86e9
- Rebuild due to bug in RPM (RHBZ #1468476)
Igor Gnatenko 1b86e9
7b61dd
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.9.0-5
7b61dd
- Perl 5.26 rebuild
7b61dd
7bf07f
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-4
7bf07f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
7bf07f
4dcb38
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.9.0-3
4dcb38
- Rebuild for Python 3.6
4dcb38
5d66ab
* Mon Sep 26 2016 Andrea Manzi <amanzi@cern.ch> - 1.9.0-2
5d66ab
- remove obsoleted dep on python-uuid
5d66ab
051001
* Thu Sep 22 2016 Andrea Manzi <amanzi@cern.ch> - 1.9.0-1
051001
- New Upstream Release
051001
Alejandro Alvarez Ayllon 076f0a
* Fri Aug 26 2016 Alejandro Alvarez Ayllon <aalvarez@cern.ch> - 1.8.11-4
Alejandro Alvarez Ayllon 076f0a
- Rebuilt for new voms
Alejandro Alvarez Ayllon 076f0a
96a7cb
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.11-3
96a7cb
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
96a7cb
d1e4a1
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.8.11-2
d1e4a1
- Perl 5.24 rebuild
d1e4a1
5b3a87
* Tue May 03 2016 Andrea Manzi <amanzi@cern.ch> - 1.8.11-1
5b3a87
- New Upstream Release
5b3a87
606d32
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.10-4
606d32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
606d32
f02fa7
* Tue Feb 02 2016 Andrea Manzi <amanzi@cern.ch> - 1.8.10-3
f02fa7
- Rebuilt for new gsoap version
f02fa7
02e1d2
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.10-2
02e1d2
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
02e1d2
Laurence Field 3e68cd
* Fri Aug 07 2015 Laurence Field <laurence.field@cern.ch> - 1.8.10-1
Laurence Field 3e68cd
- New Upstream Release
Laurence Field 3e68cd
c2fe42
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.9-8
c2fe42
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c2fe42
fb342b
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.8.9-7
fb342b
- Perl 5.22 rebuild
fb342b
980ce1
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.8.9-6
980ce1
- Rebuilt for GCC 5 C++11 ABI change
980ce1
Alejandro Alvarez Ayllon 0eff6b
* Tue Feb 24 2015 Alejandro Alvarez Ayllon <aalvarez@cern.ch> - 1.8.9-5
Alejandro Alvarez Ayllon 0eff6b
- Removed _isam macros from BuildRequires
Alejandro Alvarez Ayllon 0eff6b
Alejandro Alvarez Ayllon e9dc75
* Mon Feb 23 2015 Alejandro Alvarez Ayllon <aalvarez@cern.ch> - 1.8.9-4
Alejandro Alvarez Ayllon e9dc75
- Fixed sed expression
Alejandro Alvarez Ayllon e9dc75
Alejandro Alvarez Ayllon d6f429
* Mon Jan 26 2015 Alejandro Alvarez Ayllon <aalvarez@cern.ch> - 1.8.9-3
Alejandro Alvarez Ayllon d6f429
- Rebuilt for gsoap 2.8.21
Alejandro Alvarez Ayllon d6f429
dcbc29
* Thu Oct 16 2014 Alejandro Alvarez Ayllon <aalvarez@cern.ch> - 1.8.9-2
dcbc29
- Patch for dpm-listspaces and dav publishing
dcbc29
Alejandro Alvarez Ayllon bd375d
* Tue Sep 23 2014 Alejandro Alvarez Ayllon <aalvarez@cern.ch> - 1.8.9-1
Alejandro Alvarez Ayllon bd375d
- Update for new upstream release
Alejandro Alvarez Ayllon bd375d
cecbe2
* Fri Aug 30 2013 Alejandro Alvarez <aalvarez@cern.ch> 1.8.7-4
cecbe2
- Introduce systemd-rpm macros
cecbe2
fc6498
* Wed Jul 10 2013 Alejandro Alvarez <aalvarez@cern.ch> 1.8.7-3
fc6498
- Update for new upstream release
fc6498
- Fixed bogus dates
fc6498
c1e991
* Fri Jan 25 2013 Kevin Fenzi <kevin@scrye.com> 1.8.6-2
c1e991
- Rebuilt for new libgsoap
c1e991
fc6498
* Fri Dec 14 2012 Ricardo Rocha <ricardo.rocha@cern.ch> - 1.8.6-1
rocha fd0b3a
- Update for new upstream release
rocha fd0b3a
Ricardo Rocha 5b4344
* Mon Nov 12 2012 Ricardo Rocha <ricardo.rocha@cern.ch> - 1.8.5-1
Ricardo Rocha 5b4344
- Update for new upstream release
Ricardo Rocha 5b4344
4edb22
* Mon Sep 03 2012 Ricardo Rocha <ricardo.rocha@cern.ch> - 1.8.4-1
4edb22
- Update for new upstream release
4edb22
f51228
* Fri Aug 03 2012 David Malcolm <dmalcolm@redhat.com> - 1.8.3.1-5
f51228
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
f51228
7326b8
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.3.1-4
7326b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7326b8
021ff5
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 1.8.3.1-3
021ff5
- Perl 5.16 rebuild
021ff5
Ricardo Rocha 507a45
* Tue Jun 05 2012 Ricardo Rocha <ricardo.rocha@cern.ch> - 1.8.3.1-2
Ricardo Rocha 507a45
- Cleanup sysv scripts from upstream when using systemd
Ricardo Rocha 507a45
Ricardo Rocha 82ab91
* Mon Jun 04 2012 Ricardo Rocha <ricardo.rocha@cern.ch> - 1.8.3.1-1
Ricardo Rocha 82ab91
- Update for new upstream release
Ricardo Rocha 82ab91
- Dropped postgresql packages (unsupported by upstream)
Ricardo Rocha 82ab91
- Removed configuration bits from the spec file (incomplete)
Ricardo Rocha 82ab91
- Renamed dpm-srm* to srm*, dpm-rfiod to rfiod (using alternatives)
Ricardo Rocha 82ab91
feb7b8
* Tue Feb 28 2012 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.8.2-3
feb7b8
- Convert to systemd (Fedora 17+)
feb7b8
- Rebuild for new gsoap (Fedora 17+)
feb7b8
- Update obsolete sql scripts
feb7b8
45fb17
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.2-2
45fb17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
45fb17
95206e
* Tue Dec 06 2011 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.8.2-1
95206e
- Update to version 1.8.2
95206e
609b69
* Thu Nov 10 2011 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.8.1.2-2
609b69
- Implement new package names agreed with upstream
609b69
64c033
* Fri Sep 02 2011 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.8.1.2-1
64c033
- Update to version 1.8.1.2
64c033
- Drop patches lcgdm-withsoname.patch and lcgdm-gsoap.patch (upstream)
64c033
7a704d
* Mon Jun 20 2011 Petr Sabata <contyk@redhat.com> - 1.8.0.1-8
7a704d
- Perl mass rebuild
Petr Sabata 5d69ee
40910d
* Wed Mar 23 2011 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.8.0.1-7
40910d
- Rebuild for mysql 5.5.10
40910d
40910d
* Sat Feb 12 2011 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.8.0.1-6
aa82ae
- Fix duplicate files introduced by the PEP 3149 update
aa82ae
66709d
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0.1-5
66709d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
66709d
1ced0c
* Thu Dec 30 2010 David Malcolm <dmalcolm@redhat.com> - 1.8.0.1-4
1ced0c
- update build of python bindings to reflect PEP 3149 in the latest python 3.2,
aa82ae
  which changes the extension of python modules, and the library SONAME
1ced0c
e8c5ef
* Mon Dec 27 2010 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.8.0.1-3
e8c5ef
- Add database schema migration to scriptlets
e8c5ef
- Fix broken condrestart action in start-up scripts
e8c5ef
464b12
* Mon Dec 20 2010 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.8.0.1-2
476293
- Filter private provides from python
476293
464b12
* Mon Dec 20 2010 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.8.0.1-1
7430aa
- Update to version 1.8.0.1
7430aa
- Drop patch lcgdm-bashisms.patch (fixed upstream)
7430aa
793654
* Wed Aug 25 2010 Thomas Spura <tomspur@fedoraproject.org> - 1.7.4.7-4
793654
- rebuild with python3.2
793654
  http://lists.fedoraproject.org/pipermail/devel/2010-August/141368.html
793654
162df5
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.7.4.7-3
162df5
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
162df5
13b176
* Sun Jun 27 2010 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.7.4.7-2
13b176
- Fix race conditions during make install
13b176
- Build python modules for alternative python versions
13b176
1ff37b
* Sun Jun 06 2010 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.7.4.7-1
1ff37b
- Update to version 1.7.4.7
1ff37b
- This version works with gsoap versions > 2.7.15
1ff37b
- Dropped patches lcgdm-typo.patch and lcgdm-man.patch (fixed upstream)
1ff37b
76536c
* Tue Jun 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.7.4.4-3
76536c
- Mass rebuild with perl-5.12.0
76536c
01f6cc
* Thu Apr 08 2010 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.7.4.4-2
01f6cc
- Fix priorities for alternatives
01f6cc
- Add -p flag to install commands
01f6cc
01f6cc
* Mon Mar 29 2010 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.7.4.4-1
01f6cc
- Update to version 1.7.4.4
01f6cc
- Dropped patches lcgdm-installpermissions.patch, lcgdm-rules.patch,
01f6cc
  lcgdm-initscripts.patch and lcgdm-posinc.patch (fixed upstream)
01f6cc
01f6cc
* Mon Jan 04 2010 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.7.4.1-1
01f6cc
- Update to version 1.7.4.1
01f6cc
- Dropped patch lcgdm-missing-swig-includes.patch (fixed upstream)
01f6cc
01f6cc
* Thu Dec 10 2009 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.7.3.1-5
01f6cc
- Merge LFC and DPM to one specfile
01f6cc
01f6cc
* Mon Dec 07 2009 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.7.3.1-4
01f6cc
- Add missing swig includes
01f6cc
01f6cc
* Tue Nov 24 2009 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.7.3.1-3
01f6cc
- Don't use /sbin/nologin as shell - doesn't work with su
01f6cc
01f6cc
* Mon Nov 23 2009 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.7.3.1-2
01f6cc
- Make dlopening work for standalone
01f6cc
01f6cc
* Tue Sep 22 2009 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.7.3.1-1
01f6cc
- Update to version 1.7.3.1
01f6cc
01f6cc
* Wed Aug 19 2009 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.7.2.5-2
01f6cc
- Patch refactoring
01f6cc
- Add alternatives support
01f6cc
01f6cc
* Fri Aug 14 2009 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.7.2.5-1
01f6cc
- Update to version 1.7.2.5
01f6cc
- Dropped patch LFC-nofunctions.patch (fixed upstream)
01f6cc
01f6cc
* Wed Jan 14 2009 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.7.0.6-1
01f6cc
- Update to version 1.7.0.6
01f6cc
- Dropped patch LFC-glibc28.patch (fixed upstream)
01f6cc
- Dropped patch LFC-perlbug.patch (no longer needed)
01f6cc
01f6cc
* Sun Oct 26 2008 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.7.0.2-1ng
01f6cc
- Update to version 1.7.0.2
01f6cc
- Dropped patch LFC-spelling.patch (fixed upstream)
01f6cc
01f6cc
* Fri May 16 2008 Anders Wäänänen <waananen@nbi.dk> - 1.6.9.1-5ng
01f6cc
- Support Alpha architecture
01f6cc
- Added patch LFC-glibc28.patch for glibc-2.8 support
01f6cc
- Added patch LFC-perlbug.patch for work-around on Fedora 9 x86_64
01f6cc
fc6498
* Wed Apr 02 2008 Anders Wäänänen <waananen@nbi.dk> - 1.6.9.1-4ng
01f6cc
- Added patch from Mattias Ellert <mattias.ellert@fysast.uu.se>:
64c033
    LFC-shliblink.patch - Make clients link dynamically against library
01f6cc
01f6cc
* Tue Mar 18 2008 Anders Wäänänen <waananen@nbi.dk> - 1.6.9.1-3ng
01f6cc
- Added ng to release tag
01f6cc
- Added patches:
01f6cc
    LFC-withsoname.patch - Add sonames libraries (helps package dependencies)
01f6cc
    LFC-nofunctions.patch - Support systems without /etc/init.d/functions
01f6cc
    LFC-spelling.patch - Spelling corrections
01f6cc
01f6cc
* Sat Jan 12 2008 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.6.9.1-2
01f6cc
- Fixing some file permissions in the server package
01f6cc
01f6cc
* Sat Jan 12 2008 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.6.9.1-1
01f6cc
- Update.
01f6cc
01f6cc
* Wed Jul 25 2007 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.6.6.1-1
01f6cc
- Update.
01f6cc
01f6cc
* Thu May 10 2007 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.6.4.3-1
01f6cc
- Initial build.