d593b56
%define aprversion 1
479fbef
%define underversion 2_2_0
ce2ef84
%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn || echo missing-httpd-devel)}}
d593b56
ad006a1
Name:           gridsite
479fbef
Version:        2.2.0
ad006a1
479fbef
Release:        1%{?dist}
ad006a1
Summary:        Grid Security for the Web, Web platforms for Grids
ad006a1
ad006a1
Group:          System Environment/Daemons
ad006a1
ad006a1
#  - src/gsexec.c ASL 2.0
ad006a1
#  - src/gsexec.h ASL 2.0
ad006a1
#  - src/mod_gridsite.c BSD but includes ASL 2.0 based code.
ad006a1
#  - src/mod_ssl-private.h BSD but includes ASL 2.0 based code.
ad006a1
# All other files are BSD
ad006a1
License:        ASL 2.0 and BSD
ad006a1
URL:            http://www.gridsite.org
479fbef
Source0:        https://github.com/CESNET/gridsite/archive/gridsite-core_R_%{underversion}.tar.gz
ad006a1
Source1:        gridsite-httpd.conf
ad006a1
Source2:        gridsitehead.txt
ad006a1
Source3:        gridsitefoot.txt
ad006a1
Source4:        root-level.gacl
ad006a1
Source5:        gridsitelogo.png
5a238c9
ba22ea0
#Change location of cgi-scripts.
55b26df
Patch1:         cgi-bin-location-2.0.4.patch
2f3de4a
ad006a1
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ad006a1
ad006a1
%if %{?fedora}%{!?fedora:0} >= 10 || %{?rhel}%{!?rhel:0} >= 6
ad006a1
BuildRequires:  libcurl-devel
ad006a1
%else
ad006a1
BuildRequires:  curl-devel
ad006a1
%endif
ad006a1
ad006a1
BuildRequires:  libxml2-devel 
ad006a1
BuildRequires:  httpd-devel
ad006a1
BuildRequires:  doxygen
ad006a1
BuildRequires:  openssl-devel
f823654
BuildRequires:  gsoap-devel
55b26df
BuildRequires:  canl-c-devel
55b26df
BuildRequires:  libtool
ad006a1
ce2ef84
Requires:       httpd-mmn = %{_httpd_mmn}
ad006a1
Requires:       mod_ssl
ad006a1
Requires:       gridsite-libs = %{version}-%{release}
ad006a1
f823654
Provides:       gridsite-apache = %{version}-%{release}
f823654
Obsoletes:      gridsite-apache <= 1.7.20
f823654
Provides:       gridsite-services = %{version}-%{release}
f823654
Obsoletes:      gridsite-services <= 1.7.20
55b26df
# gsexec stuff now gone.
55b26df
Obsoletes:      gridsite-gsexec < 2.0.4
55b26df
Obsoletes:      gridsite-gsexec = %{version}-%{release}
f823654
ad006a1
%description
ad006a1
GridSite was originally a web application developed for managing and formatting 
ad006a1
the content of the http://www.gridpp.ac.uk/ website. Over the past years it 
ad006a1
has grown into a set of extensions to the Apache web server and a toolkit for 
ad006a1
Grid credentials, GACL access control lists and HTTP(S) protocol operations. 
ad006a1
ad006a1
This package gridsite contains apache httpd modules for enabling 
ad006a1
mod_gridsite.
ad006a1
ad006a1
%package  libs
ad006a1
Group:    System Environment/Daemons
ad006a1
Summary:  Run time libraries for mod_gridsite and gridsite-clients
ad006a1
ad006a1
%description libs
ad006a1
GridSite was originally a web application developed for managing and formatting 
ad006a1
the content of the http://www.gridpp.ac.uk/ website. Over the past years it 
ad006a1
has grown into a set of extensions to the Apache web server and a toolkit for 
ad006a1
Grid credentials, GACL access control lists and HTTP(S) protocol operations. 
ad006a1
ad006a1
This package contains the runtime libraries.
ad006a1
ad006a1
%package  clients
ad006a1
Group:    System Environment/Daemons
3c443d8
Summary:  Clients to gridsite including htcp, htrm, htmv
ad006a1
Requires: gridsite-libs = %{version}-%{release}
f823654
Provides: gridsite-commands = %{version}-%{release}
f823654
Obsoletes:gridsite-commands <= 1.7.20
ad006a1
ad006a1
%description  clients
ad006a1
GridSite was originally a web application developed for managing and formatting 
ad006a1
the content of the http://www.gridpp.ac.uk/ website. Over the past years it 
ad006a1
has grown into a set of extensions to the Apache web server and a toolkit for 
ad006a1
Grid credentials, GACL access control lists and HTTP(S) protocol operations. 
ad006a1
ad006a1
This package gridsite-clients, contains clients for using against gridsite, 
ad006a1
htcp, htrm, ...
ad006a1
ad006a1
%package  devel
ad006a1
Group:    System Environment/Daemons
ad006a1
Summary:  Developers tools for gridsite
ad006a1
Requires: gridsite-libs = %{version}-%{release}
e1d9709
Requires: openssl-devel
ad006a1
ad006a1
%description  devel
ad006a1
GridSite was originally a web application developed for managing and formatting 
ad006a1
the content of the http://www.gridpp.ac.uk/ website. Over the past years it 
ad006a1
has grown into a set of extensions to the Apache web server and a toolkit for 
ad006a1
ad006a1
This package gridsite-devel, contains developer tools for using gridsite.
ad006a1
ad006a1
%package   doc
ad006a1
Group:     System Environment/Daemons
ddb8692
Summary:   Developers Documentation for gridsite
ad006a1
ad006a1
%description  doc
ad006a1
GridSite was originally a web application developed for managing and formatting 
ad006a1
the content of the http://www.gridpp.ac.uk/ website. Over the past years it 
ad006a1
has grown into a set of extensions to the Apache web server and a toolkit for 
ad006a1
ad006a1
This package gridsite-doc, contains developer documentation for gridsite.
ad006a1
ad006a1
%prep
479fbef
%setup -q -n gridsite-gridsite-core_R_%{underversion}
ad006a1
# Copy in apache configuration.
ad006a1
cp -p %{SOURCE1} .
ad006a1
cp -p %{SOURCE2} .
ad006a1
cp -p %{SOURCE3} .
ad006a1
cp -p %{SOURCE4} .
ad006a1
cp -p %{SOURCE5} .
ad006a1
ad006a1
## Change installed path of cgi-bins.
ad006a1
%patch1 -p1
ad006a1
ad006a1
%build
d593b56
(cd src && MYCFLAGS="%{optflags} -DLINUX=2 -D_REENTRANT -D_LARGEFILE64_SOURCE -I../interface -I%{_includedir}/httpd -I%{_includedir}/apr-%{aprversion} -fPIC " make )
ad006a1
ad006a1
%install
ad006a1
rm -rf $RPM_BUILD_ROOT
ad006a1
(cd src && make install prefix=$RPM_BUILD_ROOT%{_usr} libdir=%{_lib} )
f823654
(cd src && make install-ws prefix=$RPM_BUILD_ROOT%{_usr} libdir=%{_lib} )
ad006a1
ad006a1
# Remove static libs 
ad006a1
rm  $RPM_BUILD_ROOT/%{_libdir}/libgridsite.a
ad006a1
# Remove docs we don't want now but will move it in %doc later.
ad006a1
rm -rf $RPM_BUILD_ROOT/%{_defaultdocdir} 
ad006a1
# Remove the built against globus-openssl libs since
ad006a1
# we don't actually do that.
ad006a1
rm  $RPM_BUILD_ROOT/%{_libdir}/libgridsite_globus.*
ad006a1
ad006a1
# Set up a root area to serve files from.
ad006a1
mkdir -p $RPM_BUILD_ROOT%{_var}/lib/gridsite
ad006a1
install -p -m 0644 gridsitehead.txt $RPM_BUILD_ROOT%{_var}/lib/gridsite/gridsitehead.txt
ad006a1
install -p -m 0644 gridsitefoot.txt $RPM_BUILD_ROOT%{_var}/lib/gridsite/gridsitefoot.txt
ad006a1
install -p -m 0644 root-level.gacl  $RPM_BUILD_ROOT%{_var}/lib/gridsite/.gacl
ad006a1
ad006a1
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/grid-security/dn-lists
ad006a1
ad006a1
mkdir -p $RPM_BUILD_ROOT%{_var}/cache/mod_gridsite
ad006a1
# Copy in apache configuration, we must name it zgridsite.conf
ad006a1
# so it is loaded after mod_ssl in ssl.conf.
ad006a1
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d
ad006a1
install -p -m 0644 gridsite-httpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/zgridsite.conf
ad006a1
ad006a1
# 
ad006a1
mkdir -p $RPM_BUILD_ROOT%{_var}/www/icons
ad006a1
install -p -m 0644 gridsitelogo.png $RPM_BUILD_ROOT%{_var}/www/icons
ad006a1
c766781
# These were work arounds for an old bug in some other
c766781
# software never ever in Fedora anyway.
c766781
rm -f %{buildroot}%{_libdir}/libgridsite_nossl*
ad006a1
47be318
# Add an empty /etc/grid-security/vomsdir since this gridsite version
47be318
# supports .lsc files.
47be318
mkdir -p %{buildroot}%{_sysconfdir}/grid-security/vomsdir
47be318
ad006a1
%clean
ad006a1
rm -rf $RPM_BUILD_ROOT
ad006a1
ad006a1
%post libs -p /sbin/ldconfig
ad006a1
ad006a1
%postun libs -p /sbin/ldconfig
ad006a1
ad006a1
%files 
ad006a1
%defattr(-,root,root,-)
ad006a1
%{_libdir}/httpd/modules/mod_gridsite.so
ad006a1
%dir %{_libexecdir}/gridsite
ad006a1
%dir %{_libexecdir}/gridsite/cgi-bin
55b26df
%{_libexecdir}/gridsite/cgi-bin/gridsite-delegation.cgi
ad006a1
%{_libexecdir}/gridsite/cgi-bin/real-gridsite-admin.cgi 
ad006a1
%{_var}/www/icons/gridsitelogo.png
ad006a1
%dir %attr(0755,apache,apache) %{_var}/lib/gridsite
ad006a1
%dir %attr(0755,root,root) %{_sysconfdir}/grid-security
ad006a1
%dir %attr(0755,apache,apache) %{_sysconfdir}/grid-security/dn-lists
ad006a1
%dir %attr(0755,apache,apache) %{_var}/cache/mod_gridsite
47be318
%dir %{_sysconfdir}/grid-security/vomsdir
ad006a1
ad006a1
%{_mandir}/man8/mod_gridsite.8.*
f823654
%{_mandir}/man8/gridsite-*.8.*
ad006a1
ad006a1
%config(noreplace) %{_sysconfdir}/httpd/conf.d/zgridsite.conf
ad006a1
%config(noreplace) %attr(-,apache,apache) %{_var}/lib/gridsite/.gacl
ad006a1
%config(noreplace) %attr(-,apache,apache) %{_var}/lib/gridsite/gridsitehead.txt
ad006a1
%config(noreplace) %attr(-,apache,apache) %{_var}/lib/gridsite/gridsitefoot.txt
ad006a1
ad006a1
%doc doc/httpd-fileserver.conf doc/httpd-webserver.conf 
ad006a1
%doc doc/httpd-storage.conf
47be318
ad006a1
%doc CHANGES LICENSE
ad006a1
ad006a1
%files libs
ad006a1
%defattr(-,root,root,-)
55b26df
%{_libdir}/libgridsite.so.2
479fbef
%{_libdir}/libgridsite.so.2.2*
ad006a1
%doc LICENSE 
ad006a1
ad006a1
%files  clients
ad006a1
%defattr(-,root,root,-)
55b26df
%{_bindir}/findproxyfile
55b26df
%{_bindir}/htcp
55b26df
%{_bindir}/htfind
55b26df
%{_bindir}/htll
55b26df
%{_bindir}/htls
55b26df
%{_bindir}/htmkdir
55b26df
%{_bindir}/htmv
55b26df
%{_bindir}/htping
55b26df
%{_bindir}/htproxydestroy
55b26df
%{_bindir}/htproxyinfo
55b26df
%{_bindir}/htproxyput
55b26df
%{_bindir}/htproxyrenew
55b26df
%{_bindir}/htproxytime
55b26df
%{_bindir}/htproxyunixtime
55b26df
%{_bindir}/htrm
55b26df
%{_bindir}/urlencode
ad006a1
ad006a1
%{_mandir}/man1/findproxyfile.1.gz
ad006a1
%{_mandir}/man1/htcp.1.gz
ad006a1
%{_mandir}/man1/htfind.1.gz
ad006a1
%{_mandir}/man1/htll.1.gz
ad006a1
%{_mandir}/man1/htls.1.gz
ad006a1
%{_mandir}/man1/htmkdir.1.gz
ad006a1
%{_mandir}/man1/htmv.1.gz
ad006a1
%{_mandir}/man1/htping.1.gz
f823654
%{_mandir}/man1/htproxydestroy.1.gz
f823654
%{_mandir}/man1/htproxyinfo.1.gz
f823654
%{_mandir}/man1/htproxyput.1.gz
f823654
%{_mandir}/man1/htproxyrenew.1.gz
f823654
%{_mandir}/man1/htproxytime.1.gz
f823654
%{_mandir}/man1/htproxyunixtime.1.gz
ad006a1
%{_mandir}/man1/htrm.1.gz
ad006a1
%{_mandir}/man1/urlencode.1.gz
ad006a1
ad006a1
%files devel
ad006a1
%defattr(-,root,root,-)
ad006a1
%{_includedir}/gridsite-gacl.h
ad006a1
%{_includedir}/gridsite.h
ad006a1
%{_libdir}/libgridsite.so
Adrien Devresse 036c9b5
%{_libdir}/pkgconfig/*
ad006a1
ad006a1
%files doc
ad006a1
%defattr(-,root,root,-)
1fbb2c5
%doc src/doxygen LICENSE
ad006a1
ad006a1
%changelog
479fbef
* Wed Dec 18 2013 Steve Traylen <steve.traylen@cern.ch> - 2.2.0-1
479fbef
- New upstream 2.2.0 
479fbef
- Source URL now changed to github project.
479fbef
- Drop gridsite-httpd24_v3.patch since fixed upstream.
479fbef
22a5aeb
* Wed Oct 23 2013 Steve Traylen <steve.traylen@cern.ch> - 2.0.4-2
22a5aeb
- Rebuild for new gsoap
22a5aeb
55b26df
* Thu Sep 19 2013 steve.traylen@cern.ch - 2.0.4-1
55b26df
- Upstream to 2.0.4
15691da
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.25-3
15691da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
15691da
Adrien Devresse 5f23540
* Tue Jun 04 2013 Adrien Devresse <adevress at cern.ch> - 1.7.25-2
Adrien Devresse 036c9b5
 - Upstream to 1.7.25
Adrien Devresse 5f23540
 - Fix httpd 24 patch, remove a risk of segfault on >=EL6
Adrien Devresse 036c9b5
a16ea45
* Sat Jan 26 2013 Kevin Fenzi <kevin@scrye.com> 1.7.21-4
a16ea45
- Rebuild for new gsoap
a16ea45
959dffa
* Thu Sep 13 2012 Ricardo Rocha <ricardo.rocha@cern.ch> - 1.7.21-3
959dffa
- Added patch for segfault under high load 
959dffa
5cf2ee7
* Mon Jul 16 2012 Ricardo Rocha <ricardo.rocha@cern.ch> - 1.7.21-2
5cf2ee7
- Rebuild with proper tarballs
5cf2ee7
f823654
* Mon Jul 16 2012 Ricardo Rocha <ricardo.rocha@cern.ch> - 1.7.21-1
f823654
- Upstream to 1.7.21, compliance with EMI project gridsite packaging
e712087
- Removed unused patches
f823654
2f3de4a
* Mon Apr 16 2012 steve.traylen@cern.ch - 1.7.20-1
2f3de4a
- Upstream to 1.7.20, Add gridsite-httpd24.patch
2f3de4a
e05b0cf
* Sun Mar 18 2012 Steve Traylen <steve.traylen@cern.ch>  - 1.7.19-1
e05b0cf
- Upstream 1.7.19
808a22e
- Drop EPEL4 support since EOL.
ce2ef84
- Requires httpd-mmn, rhbz#803062
e05b0cf
eb80d12
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.16-2
eb80d12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
eb80d12
a804c3b
* Sat Dec 3 2011 Steve Traylen <steve.traylen@cern.ch>  - 1.7.16-1
a804c3b
- Upstream 1.7.16, drop compat package from .spec only.
a804c3b
e1d9709
* Wed Jul 6 2011 Steve Traylen <steve.traylen@cern.ch>  - 1.7.15-4
e1d9709
- devel package require openssl devel rhbz#719174
e1d9709
bdaf7ba
* Sun Jul 3 2011 Steve Traylen <steve.traylen@cern.ch>  - 1.7.15-3
bdaf7ba
- Correct dependency mistake.
bdaf7ba
ba22ea0
* Thu Jun 30 2011 Steve Traylen <steve.traylen@cern.ch>  - 1.7.15-2
ba22ea0
- Add a gridsite-compat-1.5 package on EPEL4 & EPEL5.
1fbb2c5
- Remove doc package requiring devel package.
ba22ea0
fdd2339
* Thu Jun 30 2011 Steve Traylen <steve.traylen@cern.ch>  - 1.7.15-1
fdd2339
- Upstream 1.7.15, drop gridsite-include-1.7.9.patch since upstream,
fdd2339
  redo cgi-location patch.
fdd2339
66b8bc5
* Mon Jun 27 2011 Steve Traylen <steve.traylen@cern.ch>  - 1.7.13-1
66b8bc5
- Upstream 1.7.13
66b8bc5
0f2f018
* Wed Apr 6 2011 Steve Traylen <steve.traylen@cern.ch>  - 1.7.12-1
0f2f018
- Upstream 1.7.12
0f2f018
1f8049f
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.9-2
1f8049f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
1f8049f
c766781
* Thu Dec 16 2010 Steve Traylen <steve.traylen@cern.ch>  - 1.7.9-1
47be318
- Add empty /etc/grid-security/vomsdir since this gridsite
47be318
  support .lsc files.
c766781
- Upstream to 1.7.9
c766781
- Update gridsite-include.patch for 1.7.9
c766781
  https://savannah.cern.ch/bugs/index.php?69632
c766781
Jesse Keating 7d43621
* Wed Sep 29 2010 jkeating - 1.5.19-2
Jesse Keating 7d43621
- Rebuilt for gcc bug 634757
Jesse Keating 7d43621
5a238c9
* Tue Sep 21 2010 Steve Traylen <steve.traylen@cern.ch> - 1.5.19-1
5a238c9
- Upstream to 1.5.19.
5a238c9
- Add gridsite-include.patch 
5a238c9
  https://savannah.cern.ch/bugs/index.php?69632 
5a238c9
  https://bugzilla.redhat.com/show_bug.cgi?id=612109
8d3271b
- Alter default .gacl
8d3271b
  https://bugzilla.redhat.com/show_bug.cgi?id=612187
8d3271b
- Change setuid binary from 4510 to 4754
5a238c9
d593b56
* Thu May 20 2010 Steve Traylen <steve.traylen@cern.ch> - 1.5.18-4
d593b56
- For .el4 use /usr/include/apr-0 rather than apr-1
d593b56
ad006a1
* Wed May 19 2010 Steve Traylen <steve.traylen@cern.ch> - 1.5.18-3
ad006a1
- Don't use _sharedstatedir macro for .el4,5 support.
ad006a1
ad006a1
* Wed May 19 2010 Steve Traylen <steve.traylen@cern.ch> - 1.5.18-2
ad006a1
- Split docs of to a seperate package.
ad006a1
- License corrected to ASL 2.0 and BSD
ad006a1
ad006a1
* Mon May 17 2010 Steve Traylen <steve.traylen@cern.ch> - 1.5.18-1
ad006a1
- Initial package.
ad006a1
ad006a1