public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/gridsite] epel10: Packaging cleanups and patch to build with the newest curl.
@ 2026-11-19  9:01 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-11-19  9:01 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/gridsite
Branch : epel10
Commit : 04a5b9949545219a9ea646af2db242d507346f0d
Author : František Dvořák <valtri@civ.zcu.cz>
Date   : 2014-07-21T11:38:57+02:00
Stats  : +125/-121 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/gridsite/c/04a5b9949545219a9ea646af2db242d507346f0d?branch=epel10

Log:
Packaging cleanups and patch to build with the newest curl.

---
diff --git a/cgi-bin-location-2.0.4.patch b/cgi-bin-location-2.0.4.patch
deleted file mode 100644
index b9f9798..0000000
--- a/cgi-bin-location-2.0.4.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-diff -uNr org.gridsite.core.ORIG/src/Makefile org.gridsite.core/src/Makefile
---- org.gridsite.core.ORIG/src/Makefile	2013-09-19 14:03:41.646000000 +0000
-+++ org.gridsite.core/src/Makefile	2013-09-19 14:05:53.741000000 +0000
-@@ -41,7 +41,7 @@
- endif
- 
- ifndef prefix
--export prefix=/usr/local
-+export prefix=/usr
- endif
- 
- ifndef libdir
-@@ -436,13 +436,14 @@
-                  $(DESTDIR)$(prefix)/sbin \
-                  $(DESTDIR)$(prefix)/share/man/man1 \
-                  $(DESTDIR)$(prefix)/share/man/man8 \
--                 $(DESTDIR)$(prefix)/share/doc/gridsite-$(MINOR_VERSION)
-+                 $(DESTDIR)$(prefix)/share/doc/gridsite-$(MINOR_VERSION) \
-+	         $(prefix)/libexec/gridsite/cgi-bin
- 	sed 's/^\(#define GRST_VERSION\).*$$/\1 $(DEFVERSION)/' \
- 	      ../interface/gridsite.h > $(DESTDIR)$(prefix)/include/gridsite.h
- 	cp -f ../interface/gridsite-gacl.h $(DESTDIR)$(prefix)/include
- 	$(INSTALL) urlencode $(DESTDIR)$(prefix)/bin
- 	$(INSTALL) findproxyfile $(DESTDIR)$(prefix)/bin
--	$(INSTALL) real-gridsite-admin.cgi $(DESTDIR)$(prefix)/sbin
-+	$(INSTALL) real-gridsite-admin.cgi $(DESTDIR)$(prefix)/libexec/gridsite/cgi-bin
- 	cp -f ../CHANGES ../README ../INSTALL ../LICENSE ../VERSION \
-                $(DESTDIR)$(prefix)/share/doc/gridsite-$(MINOR_VERSION)
- 	cp -f ../doc/index.html ../doc/*.conf ../doc/*.sh ../doc/*.spec \
-@@ -514,7 +515,7 @@
- 	ln -sf htproxyput $(DESTDIR)$(prefix)/bin/htproxyunixtime
- 	ln -sf htproxyput $(DESTDIR)$(prefix)/bin/htproxyrenew
- 	ln -sf htproxyput $(DESTDIR)$(prefix)/bin/htproxyinfo
--	cp -f gridsite-delegation.cgi $(DESTDIR)$(prefix)/sbin
-+	cp -f gridsite-delegation.cgi $(DESTDIR)$(prefix)/libexec/gridsite/cgi-bin
- 
- post-install-debian:
- 	sed -i \

diff --git a/curl-opts.patch b/curl-opts.patch
new file mode 100644
index 0000000..6c0eef6
--- /dev/null
+++ b/curl-opts.patch
@@ -0,0 +1,31 @@
+commit 2124d471f9fc1eed4bf5893ed2701350357c01af
+Author: František Dvořák <valtri@civ.zcu.cz>
+Date:   Mon Jul 21 11:10:42 2014 +0200
+
+    Remove ancient curl compatibility stuff. This fixes build with curl 7.37.1 on Fedora 22/rawhide.
+
+diff --git a/src/htcp.c b/src/htcp.c
+index 6d60720..3e1f5a4 100644
+--- a/src/htcp.c
++++ b/src/htcp.c
+@@ -59,20 +59,6 @@
+ 
+ #include "gridsite.h"
+ 
+-/* deal with older versions of libcurl and curl.h */
+-
+-#ifndef CURLOPT_WRITEDATA
+-#define CURLOPT_WRITEDATA CURLOPT_FILE
+-#endif
+- 
+-#ifndef CURLOPT_READDATA
+-#define CURLOPT_READDATA CURLOPT_FILE
+-#endif
+-
+-#ifndef CURLE_HTTP_RETURNED_ERROR
+-#define CURLE_HTTP_RETURNED_ERROR CURLE_HTTP_NOT_FOUND
+-#endif
+- 
+ #define HTCP_GET	1
+ #define HTCP_PUT	2
+ #define HTCP_DELETE	3

diff --git a/gridsite.spec b/gridsite.spec
index 871066c..b938da6 100644
--- a/gridsite.spec
+++ b/gridsite.spec
@@ -4,12 +4,10 @@
 
 Name:           gridsite
 Version:        2.2.1
-
 Release:        2%{?dist}
 Summary:        Grid Security for the Web, Web platforms for Grids
 
 Group:          System Environment/Daemons
-
 #  - src/gsexec.c ASL 2.0
 #  - src/gsexec.h ASL 2.0
 #  - src/mod_gridsite.c BSD but includes ASL 2.0 based code.
@@ -23,11 +21,8 @@ Source2:        gridsitehead.txt
 Source3:        gridsitefoot.txt
 Source4:        root-level.gacl
 Source5:        gridsitelogo.png
-
-#Change location of cgi-scripts.
-Patch1:         cgi-bin-location-2.0.4.patch
-
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+# https://github.com/CESNET/gridsite/commit/2124d471f9fc1eed4bf5893ed2701350357c01af
+Patch0:         curl-opts.patch
 
 %if %{?fedora}%{!?fedora:0} >= 10 || %{?rhel}%{!?rhel:0} >= 6
 BuildRequires:  libcurl-devel
@@ -35,7 +30,7 @@ BuildRequires:  libcurl-devel
 BuildRequires:  curl-devel
 %endif
 
-BuildRequires:  libxml2-devel 
+BuildRequires:  libxml2-devel
 BuildRequires:  httpd-devel
 BuildRequires:  doxygen
 BuildRequires:  openssl-devel
@@ -56,26 +51,28 @@ Obsoletes:      gridsite-gsexec < 2.0.4
 Obsoletes:      gridsite-gsexec = %{version}-%{release}
 
 %description
-GridSite was originally a web application developed for managing and formatting 
-the content of the http://www.gridpp.ac.uk/ website. Over the past years it 
-has grown into a set of extensions to the Apache web server and a toolkit for 
-Grid credentials, GACL access control lists and HTTP(S) protocol operations. 
+GridSite was originally a web application developed for managing and formatting
+the content of the http://www.gridpp.ac.uk/ website. Over the past years it
+has grown into a set of extensions to the Apache web server and a toolkit for
+Grid credentials, GACL access control lists and HTTP(S) protocol operations.
 
-This package gridsite contains apache httpd modules for enabling 
+This package gridsite contains apache httpd modules for enabling
 mod_gridsite.
 
+
 %package  libs
 Group:    System Environment/Daemons
 Summary:  Run time libraries for mod_gridsite and gridsite-clients
 
 %description libs
-GridSite was originally a web application developed for managing and formatting 
-the content of the http://www.gridpp.ac.uk/ website. Over the past years it 
-has grown into a set of extensions to the Apache web server and a toolkit for 
-Grid credentials, GACL access control lists and HTTP(S) protocol operations. 
+GridSite was originally a web application developed for managing and formatting
+the content of the http://www.gridpp.ac.uk/ website. Over the past years it
+has grown into a set of extensions to the Apache web server and a toolkit for
+Grid credentials, GACL access control lists and HTTP(S) protocol operations.
 
 This package contains the runtime libraries.
 
+
 %package  clients
 Group:    System Environment/Daemons
 Summary:  Clients to gridsite including htcp, htrm, htmv
@@ -84,14 +81,15 @@ Provides: gridsite-commands = %{version}-%{release}
 Obsoletes:gridsite-commands <= 1.7.20
 
 %description  clients
-GridSite was originally a web application developed for managing and formatting 
-the content of the http://www.gridpp.ac.uk/ website. Over the past years it 
-has grown into a set of extensions to the Apache web server and a toolkit for 
-Grid credentials, GACL access control lists and HTTP(S) protocol operations. 
+GridSite was originally a web application developed for managing and formatting
+the content of the http://www.gridpp.ac.uk/ website. Over the past years it
+has grown into a set of extensions to the Apache web server and a toolkit for
+Grid credentials, GACL access control lists and HTTP(S) protocol operations.
 
-This package gridsite-clients, contains clients for using against gridsite, 
+This package gridsite-clients, contains clients for using against gridsite,
 htcp, htrm, ...
 
+
 %package  devel
 Group:    System Environment/Daemons
 Summary:  Developers tools for gridsite
@@ -99,23 +97,26 @@ Requires: gridsite-libs = %{version}-%{release}
 Requires: openssl-devel
 
 %description  devel
-GridSite was originally a web application developed for managing and formatting 
-the content of the http://www.gridpp.ac.uk/ website. Over the past years it 
-has grown into a set of extensions to the Apache web server and a toolkit for 
+GridSite was originally a web application developed for managing and formatting
+the content of the http://www.gridpp.ac.uk/ website. Over the past years it
+has grown into a set of extensions to the Apache web server and a toolkit for
 
 This package gridsite-devel, contains developer tools for using gridsite.
 
+
 %package   doc
 Group:     System Environment/Daemons
 Summary:   Developers Documentation for gridsite
+BuildArch: noarch
 
 %description  doc
-GridSite was originally a web application developed for managing and formatting 
-the content of the http://www.gridpp.ac.uk/ website. Over the past years it 
-has grown into a set of extensions to the Apache web server and a toolkit for 
+GridSite was originally a web application developed for managing and formatting
+the content of the http://www.gridpp.ac.uk/ website. Over the past years it
+has grown into a set of extensions to the Apache web server and a toolkit for
 
 This package gridsite-doc, contains developer documentation for gridsite.
 
+
 %prep
 %setup -q -n gridsite-gridsite-core_R_%{underversion}
 # Copy in apache configuration.
@@ -125,42 +126,47 @@ cp -p %{SOURCE3} .
 cp -p %{SOURCE4} .
 cp -p %{SOURCE5} .
 
-## Change installed path of cgi-bins.
-%patch1 -p1
+%patch0 -p1
+
 
 %build
-(cd src && MYCFLAGS="%{optflags} -DLINUX=2 -D_REENTRANT -D_LARGEFILE64_SOURCE -I../interface -I%{_includedir}/httpd -I%{_includedir}/apr-%{aprversion} -fPIC " make )
+(cd src && make prefix=%{_usr} CFLAGS="%{optflags}" LDFLAGS="%{?__global_ldflags}" HTTPD_FLAGS="-I%{_includedir}/httpd -I%{_includedir}/apr-%{aprversion}")
+
 
 %install
-rm -rf $RPM_BUILD_ROOT
-(cd src && make install prefix=$RPM_BUILD_ROOT%{_usr} libdir=%{_lib} )
-(cd src && make install-ws prefix=$RPM_BUILD_ROOT%{_usr} libdir=%{_lib} )
-
-# Remove static libs 
-rm  $RPM_BUILD_ROOT/%{_libdir}/libgridsite.a
-# Remove docs we don't want now but will move it in %doc later.
-rm -rf $RPM_BUILD_ROOT/%{_defaultdocdir} 
+(cd src && make install prefix=%{_usr} libdir=%{_lib} DESTDIR=%{buildroot})
+(cd src && make install-ws prefix=%{_usr} libdir=%{_lib} DESTDIR=%{buildroot})
+
+# change cgi scripts location
+mkdir -p %{buildroot}%{_libexecdir}/gridsite/cgi-bin
+mv %{buildroot}%{_sbindir}/*.cgi %{buildroot}%{_libexecdir}/gridsite/cgi-bin
+rmdir %{buildroot}%{_sbindir}
+
+# Remove static libs
+rm  %{buildroot}/%{_libdir}/libgridsite.a
+# Remove docs we don't want now but will move it in %%doc later.
+rm -rf %{buildroot}/%{_defaultdocdir}
 # Remove the built against globus-openssl libs since
 # we don't actually do that.
-rm  $RPM_BUILD_ROOT/%{_libdir}/libgridsite_globus.*
+rm  %{buildroot}/%{_libdir}/libgridsite_globus.*
 
 # Set up a root area to serve files from.
-mkdir -p $RPM_BUILD_ROOT%{_var}/lib/gridsite
-install -p -m 0644 gridsitehead.txt $RPM_BUILD_ROOT%{_var}/lib/gridsite/gridsitehead.txt
-install -p -m 0644 gridsitefoot.txt $RPM_BUILD_ROOT%{_var}/lib/gridsite/gridsitefoot.txt
-install -p -m 0644 root-level.gacl  $RPM_BUILD_ROOT%{_var}/lib/gridsite/.gacl
+mkdir -p %{buildroot}%{_var}/lib/gridsite
+install -p -m 0644 gridsitehead.txt %{buildroot}%{_var}/lib/gridsite/gridsitehead.txt
+install -p -m 0644 gridsitefoot.txt %{buildroot}%{_var}/lib/gridsite/gridsitefoot.txt
+install -p -m 0644 root-level.gacl  %{buildroot}%{_var}/lib/gridsite/.gacl
 
-mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/grid-security/dn-lists
+mkdir -p %{buildroot}%{_sysconfdir}/grid-security/dn-lists
 
-mkdir -p $RPM_BUILD_ROOT%{_var}/cache/mod_gridsite
+mkdir -p %{buildroot}%{_var}/cache/mod_gridsite
 # Copy in apache configuration, we must name it zgridsite.conf
 # so it is loaded after mod_ssl in ssl.conf.
-mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d
-install -p -m 0644 gridsite-httpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/zgridsite.conf
+mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d
+install -p -m 0644 gridsite-httpd.conf %{buildroot}%{_sysconfdir}/httpd/conf.d/zgridsite.conf
 
 # 
-mkdir -p $RPM_BUILD_ROOT%{_var}/www/icons
-install -p -m 0644 gridsitelogo.png $RPM_BUILD_ROOT%{_var}/www/icons
+mkdir -p %{buildroot}%{_var}/www/icons
+install -p -m 0644 gridsitelogo.png %{buildroot}%{_var}/www/icons
 
 # These were work arounds for an old bug in some other
 # software never ever in Fedora anyway.
@@ -170,20 +176,20 @@ rm -f %{buildroot}%{_libdir}/libgridsite_nossl*
 # supports .lsc files.
 mkdir -p %{buildroot}%{_sysconfdir}/grid-security/vomsdir
 
-%clean
-rm -rf $RPM_BUILD_ROOT
 
 %post libs -p /sbin/ldconfig
 
+
 %postun libs -p /sbin/ldconfig
 
-%files 
-%defattr(-,root,root,-)
+
+%files
 %{_libdir}/httpd/modules/mod_gridsite.so
 %dir %{_libexecdir}/gridsite
 %dir %{_libexecdir}/gridsite/cgi-bin
 %{_libexecdir}/gridsite/cgi-bin/gridsite-delegation.cgi
-%{_libexecdir}/gridsite/cgi-bin/real-gridsite-admin.cgi 
+%{_libexecdir}/gridsite/cgi-bin/real-gridsite-admin.cgi
+%dir %{_var}/www/icons
 %{_var}/www/icons/gridsitelogo.png
 %dir %attr(0755,apache,apache) %{_var}/lib/gridsite
 %dir %attr(0755,root,root) %{_sysconfdir}/grid-security
@@ -199,19 +205,17 @@ rm -rf $RPM_BUILD_ROOT
 %config(noreplace) %attr(-,apache,apache) %{_var}/lib/gridsite/gridsitehead.txt
 %config(noreplace) %attr(-,apache,apache) %{_var}/lib/gridsite/gridsitefoot.txt
 
-%doc doc/httpd-fileserver.conf doc/httpd-webserver.conf 
+%doc doc/httpd-fileserver.conf doc/httpd-webserver.conf
 %doc doc/httpd-storage.conf
 
 %doc CHANGES LICENSE
 
 %files libs
-%defattr(-,root,root,-)
 %{_libdir}/libgridsite.so.2
-%{_libdir}/libgridsite.so.2.2*
-%doc LICENSE 
+%{_libdir}/libgridsite.so.2.*
+%doc LICENSE
 
 %files  clients
-%defattr(-,root,root,-)
 %{_bindir}/findproxyfile
 %{_bindir}/htcp
 %{_bindir}/htfind
@@ -229,46 +233,53 @@ rm -rf $RPM_BUILD_ROOT
 %{_bindir}/htrm
 %{_bindir}/urlencode
 
-%{_mandir}/man1/findproxyfile.1.gz
-%{_mandir}/man1/htcp.1.gz
-%{_mandir}/man1/htfind.1.gz
-%{_mandir}/man1/htll.1.gz
-%{_mandir}/man1/htls.1.gz
-%{_mandir}/man1/htmkdir.1.gz
-%{_mandir}/man1/htmv.1.gz
-%{_mandir}/man1/htping.1.gz
-%{_mandir}/man1/htproxydestroy.1.gz
-%{_mandir}/man1/htproxyinfo.1.gz
-%{_mandir}/man1/htproxyput.1.gz
-%{_mandir}/man1/htproxyrenew.1.gz
-%{_mandir}/man1/htproxytime.1.gz
-%{_mandir}/man1/htproxyunixtime.1.gz
-%{_mandir}/man1/htrm.1.gz
-%{_mandir}/man1/urlencode.1.gz
+%{_mandir}/man1/findproxyfile.1*
+%{_mandir}/man1/htcp.1*
+%{_mandir}/man1/htfind.1*
+%{_mandir}/man1/htll.1*
+%{_mandir}/man1/htls.1*
+%{_mandir}/man1/htmkdir.1*
+%{_mandir}/man1/htmv.1*
+%{_mandir}/man1/htping.1*
+%{_mandir}/man1/htproxydestroy.1*
+%{_mandir}/man1/htproxyinfo.1*
+%{_mandir}/man1/htproxyput.1*
+%{_mandir}/man1/htproxyrenew.1*
+%{_mandir}/man1/htproxytime.1*
+%{_mandir}/man1/htproxyunixtime.1*
+%{_mandir}/man1/htrm.1*
+%{_mandir}/man1/urlencode.1*
 
 %files devel
-%defattr(-,root,root,-)
 %{_includedir}/gridsite-gacl.h
 %{_includedir}/gridsite.h
 %{_libdir}/libgridsite.so
 %{_libdir}/pkgconfig/*
 
 %files doc
-%defattr(-,root,root,-)
 %doc src/doxygen LICENSE
 
+
 %changelog
+* Mon Jul 21 2014 František Dvořák <valtri@civ.zcu.cz> - 2.2.1-2
+- Removed cgi-bin-location.patch, move files in %%install instead
+- Replace MYFLAGS by CFLAGS, removed gridsite internal build flags
+- Owning icons dir
+- Only major version needed in library wildcard now (libgridsite.so.2.*)
+- Cleanups (EL5, noarch doc subpackage, buildroot macro, formatting)
+- Patch to build with newer curl 7.37.1
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
-* Tue Jan 28 2014 Adrien Devresse <adevress@cern.ch> 
+* Tue Jan 28 2014 Adrien Devresse <adevress@cern.ch>
 - Gridsite 2.2.1 Release, fix issue related to TLS support in mod_gridsite
 
 * Thu Jan 23 2014 Joe Orton <jorton@redhat.com> - 2.2.0-2
 - fix _httpd_mmn expansion in absence of httpd-devel
 
 * Wed Dec 18 2013 Steve Traylen <steve.traylen@cern.ch> - 2.2.0-1
-- New upstream 2.2.0 
+- New upstream 2.2.0
 - Source URL now changed to github project.
 - Drop gridsite-httpd24_v3.patch since fixed upstream.
 
@@ -288,7 +299,7 @@ rm -rf $RPM_BUILD_ROOT
 - Rebuild for new gsoap
 
 * Thu Sep 13 2012 Ricardo Rocha <ricardo.rocha@cern.ch> - 1.7.21-3
-- Added patch for segfault under high load 
+- Added patch for segfault under high load
 
 * Mon Jul 16 2012 Ricardo Rocha <ricardo.rocha@cern.ch> - 1.7.21-2
 - Rebuild with proper tarballs
@@ -346,8 +357,8 @@ rm -rf $RPM_BUILD_ROOT
 
 * Tue Sep 21 2010 Steve Traylen <steve.traylen@cern.ch> - 1.5.19-1
 - Upstream to 1.5.19.
-- Add gridsite-include.patch 
-  https://savannah.cern.ch/bugs/index.php?69632 
+- Add gridsite-include.patch
+  https://savannah.cern.ch/bugs/index.php?69632
   https://bugzilla.redhat.com/show_bug.cgi?id=612109
 - Alter default .gacl
   https://bugzilla.redhat.com/show_bug.cgi?id=612187

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-19  9:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-19  9:01 [rpms/gridsite] epel10: Packaging cleanups and patch to build with the newest curl 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox