Dependency packaging files.
authorcantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Mon, 11 Jun 2007 15:41:07 +0000 (15:41 +0000)
committercantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Mon, 11 Jun 2007 15:41:07 +0000 (15:41 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/trunk@343 de75baf8-a10c-0410-a50a-987c0e22f00f

15 files changed:
dependencies/curl/checkinstall [new file with mode: 0644]
dependencies/curl/pkginfo [new file with mode: 0644]
dependencies/curl/postinstall [new file with mode: 0644]
dependencies/log4cpp/checkinstall [new file with mode: 0644]
dependencies/log4cpp/log4cpp.spec [new file with mode: 0644]
dependencies/log4cpp/pkginfo [new file with mode: 0644]
dependencies/log4cpp/postinstall [new file with mode: 0644]
dependencies/openssl/checkinstall [new file with mode: 0644]
dependencies/openssl/pkginfo [new file with mode: 0644]
dependencies/xerces/checkinstall [new file with mode: 0644]
dependencies/xerces/pkginfo [new file with mode: 0644]
dependencies/xerces/xerces-c.spec [new file with mode: 0644]
dependencies/xml-security/checkinstall [new file with mode: 0644]
dependencies/xml-security/pkginfo [new file with mode: 0644]
dependencies/xml-security/xml-security-c.spec [new file with mode: 0644]

diff --git a/dependencies/curl/checkinstall b/dependencies/curl/checkinstall
new file mode 100644 (file)
index 0000000..6c618f9
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+expected_platform="sparc"
+platform=`uname -p`
+if [ ${platform} != ${expected_platform} ]; then
+       echo "This package must be installed on ${expected_platform}"
+       exit 1
+fi
+exit 0
diff --git a/dependencies/curl/pkginfo b/dependencies/curl/pkginfo
new file mode 100644 (file)
index 0000000..ac811b5
--- /dev/null
@@ -0,0 +1,10 @@
+ARCH=sparc
+PKG=SHIBcurl
+NAME=curl - Library and tool for common Internet protocols
+VERSION=7.16.2
+CATEGORY=system
+VENDOR=http://curl.haxx.se/ packaged for Shibboleth by Scott Cantor
+HOTLINE=http://bugs.internet2.edu/
+EMAIL=cantor.2@osu.edu
+PSTAMP=11Jun2007
+CLASSES=none
diff --git a/dependencies/curl/postinstall b/dependencies/curl/postinstall
new file mode 100644 (file)
index 0000000..89c0e2d
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+cd ${CLIENT_BASEDIR}/bin
+sed "s|^prefix=.*|prefix=${CLIENT_BASEDIR}|1" curl-config > curl-config.tmp
+mv curl-config.tmp curl-config
+chmod 755 curl-config
+
+exit 0
diff --git a/dependencies/log4cpp/checkinstall b/dependencies/log4cpp/checkinstall
new file mode 100644 (file)
index 0000000..6c618f9
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+expected_platform="sparc"
+platform=`uname -p`
+if [ ${platform} != ${expected_platform} ]; then
+       echo "This package must be installed on ${expected_platform}"
+       exit 1
+fi
+exit 0
diff --git a/dependencies/log4cpp/log4cpp.spec b/dependencies/log4cpp/log4cpp.spec
new file mode 100644 (file)
index 0000000..6ca7a78
--- /dev/null
@@ -0,0 +1,87 @@
+Name:           log4cpp
+Version:        0.3.5rc1
+Release:        1
+Summary:        C++ logging library
+
+Group:          System Environment/Libraries
+License:        LGPL
+URL:            http://log4cpp.sourceforge.net/
+Source0:        http://wayf.internet2.edu/shibboleth/%{name}-%{version}.tar.gz
+Source1:       http://wayf.internet2.edu/shibboleth/%{name}-%{version}.tar.gz.asc
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires:  doxygen
+
+%description
+Log4cpp is library of C++ classes for flexible logging to files,
+syslog, IDSA and other destinations. It is modeled after the Log4j
+Java library, staying as close to their API as is reasonable.
+
+%package        devel
+Summary:        Development files for %{name}
+Group:          Development/Libraries
+Requires:       %{name} = %{version}-%{release}
+
+%description    devel
+Log4cpp is library of C++ classes for flexible logging to files,
+syslog, IDSA and other destinations. It is modeled after the Log4j
+Java library, staying as close to their API as is reasonable.
+
+This package contains the development files for log4cpp.
+
+%package        docs
+Summary:        Developer documentation for %{name}
+Group:          Documentation
+
+%description    docs
+Log4cpp is library of C++ classes for flexible logging to files,
+syslog, IDSA and other destinations. It is modeled after the Log4j
+Java library, staying as close to their API as is reasonable.
+
+This package contains the documentation files for log4cpp.
+
+%prep
+%setup0 -q
+
+%build
+# TODO: --with-idsa
+%configure
+make %{?_smp_mflags}
+
+%install
+rm -rf $RPM_BUILD_ROOT _docs
+make install DESTDIR=$RPM_BUILD_ROOT docdir=/_docs
+mv $RPM_BUILD_ROOT/_docs .
+
+%check || :
+make check
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING NEWS README THANKS TODO
+%{_libdir}/*.so.*
+
+%files devel
+%defattr(-,root,root,-)
+%{_bindir}/log4cpp-config
+%{_datadir}/aclocal/log4cpp.m4
+%{_includedir}/log4cpp
+%{_mandir}/man3/*
+%{_libdir}/*.so
+%{_libdir}/*.a
+%{_libdir}/pkgconfig/log4cpp.pc
+%exclude %{_libdir}/*.la
+
+%files docs
+%defattr(-,root,root,-)
+%doc _docs/*
+
+%changelog
+* Tue Oct 19 2004   Derek Atkins <derek@ihtfp.com> - 0.3.5-1
+- First build for Shib.
diff --git a/dependencies/log4cpp/pkginfo b/dependencies/log4cpp/pkginfo
new file mode 100644 (file)
index 0000000..65cf545
--- /dev/null
@@ -0,0 +1,10 @@
+ARCH=sparc
+PKG=SHIBlog4cpp
+NAME=Logging Library for C++ plus Shib Project patches
+VERSION=0.3.5rc1
+CATEGORY=system
+VENDOR=http://log4cpp.sourceforge.net/ packaged for Shibboleth by Scott Cantor
+HOTLINE=http://bugs.internet2.edu/
+EMAIL=cantor.2@osu.edu
+PSTAMP=11Jun2007
+CLASSES=none
diff --git a/dependencies/log4cpp/postinstall b/dependencies/log4cpp/postinstall
new file mode 100644 (file)
index 0000000..8ee5cb7
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+cd ${CLIENT_BASEDIR}/bin
+sed "s|^  prefix=.*|  prefix=${CLIENT_BASEDIR}|1" log4cpp-config > log4cpp-config.tmp
+mv log4cpp-config.tmp log4cpp-config
+chmod 755 log4cpp-config
+
+exit 0
diff --git a/dependencies/openssl/checkinstall b/dependencies/openssl/checkinstall
new file mode 100644 (file)
index 0000000..6c618f9
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+expected_platform="sparc"
+platform=`uname -p`
+if [ ${platform} != ${expected_platform} ]; then
+       echo "This package must be installed on ${expected_platform}"
+       exit 1
+fi
+exit 0
diff --git a/dependencies/openssl/pkginfo b/dependencies/openssl/pkginfo
new file mode 100644 (file)
index 0000000..3f3e178
--- /dev/null
@@ -0,0 +1,10 @@
+ARCH=sparc
+PKG=SHIBossl
+NAME=openssl - OpenSSL Secure Sockets Layer lib and utilities
+VERSION=0.9.8e
+CATEGORY=system
+VENDOR=http://www.openssl.org/source/ packaged for Shibboleth by Scott Cantor
+HOTLINE=http://bugs.internet2.edu/
+EMAIL=cantor.2@osu.edu
+PSTAMP=11Jun2007
+CLASSES=none
diff --git a/dependencies/xerces/checkinstall b/dependencies/xerces/checkinstall
new file mode 100644 (file)
index 0000000..6c618f9
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+expected_platform="sparc"
+platform=`uname -p`
+if [ ${platform} != ${expected_platform} ]; then
+       echo "This package must be installed on ${expected_platform}"
+       exit 1
+fi
+exit 0
diff --git a/dependencies/xerces/pkginfo b/dependencies/xerces/pkginfo
new file mode 100644 (file)
index 0000000..fcf6890
--- /dev/null
@@ -0,0 +1,10 @@
+ARCH=sparc
+PKG=SHIBxerces
+NAME=Apache Xerces XML parser for C++ plus Shib Project patches
+VERSION=2.7.1
+CATEGORY=system
+VENDOR=http://xml.apache.org packaged for Shibboleth by Scott Cantor
+HOTLINE=http://bugs.internet2.edu/
+EMAIL=cantor.2@osu.edu
+PSTAMP=11Jun2007
+CLASSES=none
diff --git a/dependencies/xerces/xerces-c.spec b/dependencies/xerces/xerces-c.spec
new file mode 100644 (file)
index 0000000..a6dff01
--- /dev/null
@@ -0,0 +1,147 @@
+%define tarversion 2_7_1
+%define barename xerces-c
+
+# threads
+# values: pthreads, none
+%define threads pthreads
+
+Summary:       Xerces-C++ validating XML parser
+Name:          xerces271-c
+Version:       2.7.1
+Release:       1
+URL:           http://shibboleth.internet2.edu/downloads/
+Source0:       %{barename}-src_%{tarversion}.tar.gz
+License:       Apache
+Group:                 Libraries
+BuildRoot:     %{_tmppath}/%{name}-root
+Prefix:                /usr
+Obsoletes:     %{barename} <= %{version}
+
+%description
+Xerces-C++ is a validating XML parser written in a portable subset of C++.
+Xerces-C++ makes it easy to give your application the ability to read and
+write XML data. A shared library is provided for parsing, generating,
+manipulating, and validating XML documents.
+
+The parser provides high performance, modularity, and scalability. Source
+code, samples and API documentation are provided with the parser. For
+portability, care has been taken to make minimal use of templates, no RTTI,
+and minimal use of #ifdefs.
+
+%package        samples
+Summary:        Sample applications using Xerces-C++
+Group:          Applications/Text
+Requires:       %{name} = %{version}-%{release}
+Obsoletes:     %{barename}-samples <= %{version}
+
+%description    samples
+Sample applications using Xerces-C++.
+
+%package devel
+Requires:      %{name} = %{version}-%{release}
+Obsoletes:     %{barename}-devel <= %{version}
+Group:         Development/Libraries
+Summary:       Header files for Xerces-C++ validating XML parser
+
+%description devel
+Header files you can use to develop XML applications with Xerces-C++.
+
+Xerces-C++ is a validating XML parser written in a portable subset of C++.
+Xerces-C++ makes it easy to give your application the ability to read and
+write XML data. A shared library is provided for parsing, generating,
+manipulating, and validating XML documents.
+
+%package doc
+Obsoletes:     %{barename}-doc <= %{version}
+Group:         Documentation
+Summary:       Documentation for Xerces-C++ validating XML parser
+
+%description doc
+Documentation for Xerces-C++.
+
+Xerces-C++ is a validating XML parser written in a portable subset of C++.
+Xerces-C++ makes it easy to give your application the ability to read and
+write XML data. A shared library is provided for parsing, generating,
+manipulating, and validating XML documents.
+
+%prep
+%setup -q -n %{barename}-src_%{tarversion}
+
+%build
+export CC=%{__cc}
+export CXX=%{__cxx}
+
+%ifarch alpha ppc64 s390x sparc64 x86_64 ia64
+  %define rcopts -b 64 -p %{_target_os}
+%else
+  %define rcopts -b 32 -p %{_target_os}
+%endif
+
+export XERCESCROOT=`pwd`
+cd $XERCESCROOT/src/xercesc
+./runConfigure %{rcopts} -C --libdir="%{_libdir}" -minmem -nsocket -tnative -r%{threads} -P%{prefix}
+make
+cd $XERCESCROOT/samples
+./runConfigure %{rcopts}
+make
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make -C src/xercesc install XERCESCROOT=`pwd` DESTDIR=$RPM_BUILD_ROOT
+if [ ! -e $RPM_BUILD_ROOT%{_prefix}/%{_lib} ]; then
+       mv $RPM_BUILD_ROOT%{_prefix}/lib $RPM_BUILD_ROOT%{_prefix}/%{_lib} 
+fi
+# Samples
+mv bin/obj __obj
+install -dm 755 $RPM_BUILD_ROOT%{_bindir}
+install -pm 755 bin/* $RPM_BUILD_ROOT%{_bindir}
+mv __obj bin/obj
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE* NOTICE STATUS credits.txt
+%{_libdir}/libxerces-*.so.*
+
+%files samples
+%defattr(-,root,root,-)
+%{_bindir}/*
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/xercesc
+%{_libdir}/libxerces-*.so
+
+%files doc
+%defattr(644,root,root,755)
+%doc doc/html/*
+
+%changelog
+* Wed Jun  6 2007 Scott Cantor <cantor.2@osu.edu>
+- reapply improvements from our spec file for 2.6.0
+
+* Fri Jun  6 2003 Tuan Hoang <tqhoang@bigfoot.com>
+- updated for new Xerces-C filename and directory format
+- fixed date format in changelog section
+
+* Fri Mar 14 2003 Tinny Ng <tng@ca.ibm.com>
+- changed to 2.3
+
+* Wed Dec 18 2002 Albert Strasheim <albert@stonethree.com>
+- added symlink to libxerces-c.so in lib directory
+
+* Fri Dec 13 2002 Albert Strasheim <albert@stonethree.com>
+- added seperate doc package
+- major cleanups
+
+* Tue Sep 03 2002  <thomas@linux.de>
+- fixed missing DESTDIR in Makefile.util.submodule
+
+* Mon Sep 02 2002  <thomas@linux.de>
+- Initial build.
diff --git a/dependencies/xml-security/checkinstall b/dependencies/xml-security/checkinstall
new file mode 100644 (file)
index 0000000..6c618f9
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+expected_platform="sparc"
+platform=`uname -p`
+if [ ${platform} != ${expected_platform} ]; then
+       echo "This package must be installed on ${expected_platform}"
+       exit 1
+fi
+exit 0
diff --git a/dependencies/xml-security/pkginfo b/dependencies/xml-security/pkginfo
new file mode 100644 (file)
index 0000000..6b61587
--- /dev/null
@@ -0,0 +1,10 @@
+ARCH=sparc
+PKG=SHIBxmlsec
+NAME=Apache XML-Security library for C++
+VERSION=1.3.1
+CATEGORY=system
+VENDOR=http://xml.apache.org packaged for Shibboleth by Scott Cantor
+HOTLINE=http://bugs.internet2.edu/
+EMAIL=cantor.2@osu.edu
+PSTAMP=11Jun2007
+CLASSES=none
diff --git a/dependencies/xml-security/xml-security-c.spec b/dependencies/xml-security/xml-security-c.spec
new file mode 100644 (file)
index 0000000..5f2d136
--- /dev/null
@@ -0,0 +1,85 @@
+Name:           xml-security-c
+Version:        1.3.1
+Release:        1
+Summary:        C++ XML security library
+
+Group:          System Environment/Libraries
+License:        Apache Software License
+URL:            http://xml.apache.org/security/c/
+Source0:        http://xml.apache.org/security/dist/c-library/%{name}-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires:  xerces%{?xercesver}-c-devel >= 2.3, openssl-devel
+%{?_with_xalan:BuildRequires: xalan-c-devel >= 1.6}
+
+%description
+The Apache %{summary}.
+
+Non-default rpmbuild options:
+"--with xalan":   use the Xalan XSLT processor.
+
+%package        devel
+Summary:        Development files for the Apache C++ XML security library
+Group:          Development/Libraries
+Requires:       %{name} = %{version}-%{release}
+
+%description    devel
+%{summary}.
+
+%package        docs
+Summary:        Developer documentation for the Apache C++ XML security library
+Group:          Documentation
+
+%description    docs
+%{summary}.
+
+
+%prep
+%setup0 -q
+
+%build
+%configure %{!?_with_xalan: --without-xalan}
+make # %{?_smp_mflags} # fails as of 1.[01].0.
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+mkdir -pm 755 $RPM_BUILD_ROOT%{_libdir} # FIXME in Makefiles
+make install DESTDIR=$RPM_BUILD_ROOT
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE NOTICE
+%{_libdir}/*.so.*
+%{_libdir}/*.a
+%exclude %{_libdir}/*.la
+%{_bindir}/*
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/xsec
+%{_libdir}/*.so
+
+%files docs
+%defattr(644,root,root,755)
+%doc doc/c/*
+
+
+%changelog
+* Mon Jun 11 2007   Scott Cantor  <cantor.2@osu.edu> 1.3.1-1
+- update to 1.3.1
+* Thu Mar 23 2006   Ian Young     <ian@iay.org.uk> - 1.2.0-2
+- patch to remove extra qualifications for compat with g++ 4.1
+* Sun Jul 03 2005   Scott Cantor  <cantor.2@osu.edu> - 1.2.0-1
+- Updated version.
+* Mon Oct 19 2004   Derek Atkins  <derek@ihtfp.com> - 1.1.1-1
+- First Package.