%ifarch aarch64 alpha ia64 ppc64 s390x sparc64 x86_64 %global flavor gcc64 %else %global flavor gcc32 %endif %{!?_initddir: %global _initddir %{_initrddir}} %{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}} Name: globus-gridftp-server %global _name %(tr - _ <<< %{name}) Version: 6.38 Release: 1%{?dist} Summary: Globus Toolkit - Globus GridFTP Server Group: System Environment/Libraries License: ASL 2.0 URL: http://www.globus.org/ Source: http://www.globus.org/ftppub/gt5/5.2/5.2.5/packages/src/%{_name}-%{version}.tar.gz Source1: %{name} Source2: globus-gridftp-sshftp Source3: globus-gridftp-password.8 Source4: globus-gridftp-server-setup-chroot.8 # README file Source8: GLOBUS-GRIDFTP BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: globus-gsi-credential%{?_isa} >= 6 Requires: globus-gss-assist%{?_isa} >= 9 Requires: globus-xio%{?_isa} >= 3 Requires: globus-authz%{?_isa} >= 2 Requires: globus-gfork%{?_isa} >= 3 Requires: globus-ftp-control%{?_isa} >= 4 Requires: globus-gridftp-server-control%{?_isa} >= 2 Requires: globus-common%{?_isa} >= 14 Requires: globus-usage%{?_isa} >= 3 Requires: globus-xio-gsi-driver%{?_isa} >= 2 BuildRequires: grid-packaging-tools >= 3.4 BuildRequires: globus-core >= 8 BuildRequires: globus-gsi-credential-devel >= 6 BuildRequires: globus-gss-assist-devel >= 9 BuildRequires: globus-xio-devel >= 3 BuildRequires: globus-authz-devel >= 2 BuildRequires: globus-gfork-devel >= 3 BuildRequires: globus-ftp-control-devel >= 4 BuildRequires: globus-gridftp-server-control-devel >= 2 BuildRequires: globus-common-devel >= 14 BuildRequires: globus-usage-devel >= 3 BuildRequires: globus-xio-gsi-driver-devel >= 2 BuildRequires: openssl-devel %package progs Summary: Globus Toolkit - Globus GridFTP Server Programs Group: Applications/Internet Requires: %{name}%{?_isa} = %{version}-%{release} Requires: globus-xio-gsi-driver%{?_isa} >= 2 Requires(post): chkconfig Requires(preun): chkconfig Requires(preun): initscripts Requires(postun): initscripts %package devel Summary: Globus Toolkit - Globus GridFTP Server Development Files Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} Requires: globus-gsi-credential-devel%{?_isa} >= 6 Requires: globus-gss-assist-devel%{?_isa} >= 9 Requires: globus-xio-devel%{?_isa} >= 3 Requires: globus-authz-devel%{?_isa} >= 2 Requires: globus-gfork-devel%{?_isa} >= 3 Requires: globus-ftp-control-devel%{?_isa} >= 4 Requires: globus-gridftp-server-control-devel%{?_isa} >= 2 Requires: globus-common-devel%{?_isa} >= 14 Requires: globus-usage-devel%{?_isa} >= 3 Requires: globus-xio-gsi-driver-devel%{?_isa} >= 2 Requires: openssl-devel%{?_isa} %description The Globus Toolkit is an open source software toolkit used for building Grid systems and applications. It is being developed by the Globus Alliance and many others all over the world. A growing number of projects and companies are using the Globus Toolkit to unlock the potential of grids for their cause. The %{name} package contains: Globus GridFTP Server %description progs The Globus Toolkit is an open source software toolkit used for building Grid systems and applications. It is being developed by the Globus Alliance and many others all over the world. A growing number of projects and companies are using the Globus Toolkit to unlock the potential of grids for their cause. The %{name}-progs package contains: Globus GridFTP Server Programs %description devel The Globus Toolkit is an open source software toolkit used for building Grid systems and applications. It is being developed by the Globus Alliance and many others all over the world. A growing number of projects and companies are using the Globus Toolkit to unlock the potential of grids for their cause. The %{name}-devel package contains: Globus GridFTP Server Development Files %prep %setup -q -n %{_name}-%{version} %build # Remove files that should be replaced during bootstrap rm -f doxygen/Doxyfile* rm -f doxygen/Makefile.am rm -f pkgdata/Makefile.am rm -f globus_automake* rm -rf autom4te.cache unset GLOBUS_LOCATION unset GPT_LOCATION %{_datadir}/globus/globus-bootstrap.sh export GRIDMAP=/etc/grid-security/grid-mapfile %configure --disable-static --with-flavor=%{flavor} \ --with-docdir=%{_pkgdocdir} # Reduce overlinking sed 's!CC -shared !CC \${wl}--as-needed -shared !g' -i libtool make %{?_smp_mflags} %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} GLOBUSPACKAGEDIR=%{buildroot}%{_datadir}/globus/packages # Remove libtool archives (.la files) find %{buildroot}%{_libdir} -name 'lib*.la' -exec rm -v '{}' \; sed '/lib.*\.la$/d' -i $GLOBUSPACKAGEDIR/%{_name}/%{flavor}_dev.filelist mv %{buildroot}%{_sysconfdir}/gridftp.conf.default \ %{buildroot}%{_sysconfdir}/gridftp.conf mkdir -p %{buildroot}%{_sysconfdir}/xinetd.d mv %{buildroot}%{_sysconfdir}/gridftp.xinetd.default \ %{buildroot}%{_sysconfdir}/xinetd.d/gridftp mv %{buildroot}%{_sysconfdir}/gridftp.gfork.default \ %{buildroot}%{_sysconfdir}/gridftp.gfork rm $GLOBUSPACKAGEDIR/%{_name}/pkg_data_noflavor_data.gpt rm $GLOBUSPACKAGEDIR/%{_name}/noflavor_data.filelist # No need for environment in conf files sed '/ env /d' -i %{buildroot}%{_sysconfdir}/gridftp.gfork sed '/^env /d' -i %{buildroot}%{_sysconfdir}/xinetd.d/gridftp # Remove start-up scripts rm -rf %{buildroot}%{_sysconfdir}/init.d sed '/init\.d/d' -i $GLOBUSPACKAGEDIR/%{_name}/%{flavor}_pgm.filelist # Install start-up scripts mkdir -p %{buildroot}%{_initddir} install -p %{SOURCE1} %{SOURCE2} %{buildroot}%{_initddir} # Move server man pages to progs package grep '.[18]$' $GLOBUSPACKAGEDIR/%{_name}/noflavor_doc.filelist \ >> $GLOBUSPACKAGEDIR/%{_name}/%{flavor}_pgm.filelist sed '/.[18]$/d' -i $GLOBUSPACKAGEDIR/%{_name}/noflavor_doc.filelist # Install additional man pages install -m 644 -p %{SOURCE3} %{SOURCE4} %{buildroot}%{_mandir}/man8 # Install README file install -m 644 -p %{SOURCE8} %{buildroot}%{_pkgdocdir}/README # Generate package filelists cat $GLOBUSPACKAGEDIR/%{_name}/%{flavor}_rtl.filelist \ | sed s!^!%{_prefix}! > package.filelist cat $GLOBUSPACKAGEDIR/%{_name}/noflavor_doc.filelist \ | sed -e 's!/man/.*!&*!' -e 's!^!%doc %{_prefix}!' >> package.filelist cat $GLOBUSPACKAGEDIR/%{_name}/%{flavor}_pgm.filelist \ | sed -e s!^!%{_prefix}! -e 's!.*/man/.*!%doc &*!' > package-progs.filelist cat $GLOBUSPACKAGEDIR/%{_name}/%{flavor}_dev.filelist \ | sed s!^!%{_prefix}! > package-devel.filelist %clean rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %post progs if [ $1 -eq 1 ]; then /sbin/chkconfig --add %{name} /sbin/chkconfig --add globus-gridftp-sshftp fi %preun progs if [ $1 -eq 0 ]; then /sbin/chkconfig --del %{name} /sbin/chkconfig --del globus-gridftp-sshftp fi %postun progs if [ $1 -ge 1 ]; then /sbin/service %{name} condrestart > /dev/null 2>&1 || : /sbin/service globus-gridftp-sshftp condrestart > /dev/null 2>&1 || : fi %files -f package.filelist %dir %{_datadir}/globus/packages/%{_name} %dir %{_pkgdocdir} %doc %{_pkgdocdir}/README %files -f package-progs.filelist progs %config(noreplace) %{_sysconfdir}/gridftp.conf %config(noreplace) %{_sysconfdir}/gridftp.gfork %config(noreplace) %{_sysconfdir}/xinetd.d/gridftp %{_initddir}/%{name} %{_initddir}/globus-gridftp-sshftp %doc %{_mandir}/man8/globus-gridftp-password.8* %doc %{_mandir}/man8/globus-gridftp-server-setup-chroot.8* %files -f package-devel.filelist devel %changelog * Thu Nov 07 2013 Mattias Ellert <mattias.ellert@fysast.uu.se> - 6.38-1 - Update to Globus Toolkit 5.2.5 - Drop patch globus-gridftp-server-ac.patch (fixed upstream) * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.19-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Sun Jul 28 2013 Mattias Ellert <mattias.ellert@fysast.uu.se> - 6.19-4 - Implement updated packaging guidelines * Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 6.19-3 - Perl 5.18 rebuild * Tue May 21 2013 Mattias Ellert <mattias.ellert@fysast.uu.se> - 6.19-2 - Add aarch64 to the list of 64 bit platforms - Don't use AM_CONFIG_HEADER (automake 1.13) * Wed Feb 20 2013 Mattias Ellert <mattias.ellert@fysast.uu.se> - 6.19-1 - Update to Globus Toolkit 5.2.4 * Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.16-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Dec 06 2012 Mattias Ellert <mattias.ellert@fysast.uu.se> - 6.16-1 - Update to Globus Toolkit 5.2.3 * Sun Jul 22 2012 Mattias Ellert <mattias.ellert@fysast.uu.se> - 6.14-1 - Update to Globus Toolkit 5.2.2 - Drop patch globus-gridftp-server-pw195.patch (was backport) - Drop patch globus-gridftp-server-format.patch (fixed upstream) * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.10-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri May 25 2012 Mattias Ellert <mattias.ellert@fysast.uu.se> - 6.10-2 - Backport security fix for JIRA ticket GT-195 * Fri Apr 27 2012 Mattias Ellert <mattias.ellert@fysast.uu.se> - 6.10-1 - Update to Globus Toolkit 5.2.1 - Drop patches globus-gridftp-server-deps.patch, globus-gridftp-server-funcgrp.patch, globus-gridftp-server-pathmax.patch and globus-gridftp-server-compat.patch (fixed upstream) - Drop globus-gridftp-server man page from packaging since it is now included in upstream sources - Add additional contributed man pages * Sat Mar 10 2012 Mattias Ellert <mattias.ellert@fysast.uu.se> - 6.5-4 - Restore enum and struct member order for improved backward compatibility * Mon Mar 05 2012 Mattias Ellert <mattias.ellert@fysast.uu.se> - 6.5-3 - The last update broke backward compatibility and should have bumped the soname - so bump it now - Add patch from upstream to reduce the chance of backward incompatible changes in the future * Wed Jan 18 2012 Mattias Ellert <mattias.ellert@fysast.uu.se> - 6.5-2 - Portability fixes - Fix broken links in README file * Wed Dec 14 2011 Mattias Ellert <mattias.ellert@fysast.uu.se> - 6.5-1 - Update to Globus Toolkit 5.2.0 - Drop patches globus-gridftp-server-etc.patch, globus-gridftp-server-pathmax.patch and globus-gridftp-server-usr.patch (fixed upstream) * Sun Oct 02 2011 Mattias Ellert <mattias.ellert@fysast.uu.se> - 3.33-2 - Update contributed manpage * Sun Jun 05 2011 Mattias Ellert <mattias.ellert@fysast.uu.se> - 3.33-1 - Update to Globus Toolkit 5.0.4 * Mon Apr 25 2011 Mattias Ellert <mattias.ellert@fysast.uu.se> - 3.28-3 - Add README file - Add missing dependencies * Tue Apr 19 2011 Mattias Ellert <mattias.ellert@fysast.uu.se> - 3.28-2 - Add start-up script and man page for globus-gridftp-server * Fri Feb 25 2011 Mattias Ellert <mattias.ellert@fysast.uu.se> - 3.28-1 - Update to Globus Toolkit 5.0.3 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.23-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sat Jul 17 2010 Mattias Ellert <mattias.ellert@fysast.uu.se> - 3.23-1 - Update to Globus Toolkit 5.0.2 * Wed Apr 14 2010 Mattias Ellert <mattias.ellert@fysast.uu.se> - 3.21-1 - Update to Globus Toolkit 5.0.1 * Sat Jan 23 2010 Mattias Ellert <mattias.ellert@fysast.uu.se> - 3.19-1 - Update to Globus Toolkit 5.0.0 * Mon Oct 19 2009 Mattias Ellert <mattias.ellert@fysast.uu.se> - 3.17-2 - Fix location of default config file * Thu Jul 30 2009 Mattias Ellert <mattias.ellert@fysast.uu.se> - 3.17-1 - Autogenerated