From: Scott Cantor Date: Thu, 13 Apr 2006 03:19:26 +0000 (+0000) Subject: Adding some machinery. X-Git-Tag: 1.0-alpha1~269 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-xmltooling.git;a=commitdiff_plain;h=5a5c211dc3ac24fc94b2ec63b529d9b9bf55aeec Adding some machinery. --- diff --git a/Makefile.am b/Makefile.am index 09993b3..de7dbe5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -8,6 +8,7 @@ EXTRA_DIST = libtool.m4 \ acx_pthread.m4 \ depcomp \ + doxygen.cfg \ config_win32.h dist-hook: @@ -18,18 +19,18 @@ dist-hook: SUBDIRS = schemas xmltooling xmltoolingtest -#all-local: opensaml.spec pkginfo -# -#opensaml.spec: opensaml.spec.in Makefile -# rm -f $@.tmp -# sed < $< > $@.tmp \ -# -e 's:@-VERSION-@:${VERSION}:' -# mv $@.tmp $@ -# -#pkginfo: pkginfo.in Makefile -# rm -f $@.tmp -# sed < $< > $@.tmp \ -# -e 's:@-VERSION-@:${VERSION}:' -# mv $@.tmp $@ -# -#DISTCLEANFILES = opensaml.spec pkginfo +all-local: xmltooling.spec pkginfo + +xmltooling.spec: xmltooling.spec.in Makefile + rm -f $@.tmp + sed < $< > $@.tmp \ + -e 's:@-VERSION-@:${VERSION}:' + mv $@.tmp $@ + +pkginfo: pkginfo.in Makefile + rm -f $@.tmp + sed < $< > $@.tmp \ + -e 's:@-VERSION-@:${VERSION}:' + mv $@.tmp $@ + +DISTCLEANFILES = xmltooling.spec pkginfo diff --git a/doxyfile b/doxygen.cfg similarity index 97% rename from doxyfile rename to doxygen.cfg index f40463b..bf09336 100644 --- a/doxyfile +++ b/doxygen.cfg @@ -5,7 +5,7 @@ #--------------------------------------------------------------------------- PROJECT_NAME = XMLTooling-C PROJECT_NUMBER = 1.0 -OUTPUT_DIRECTORY = C:/cvs/cpp-xmltooling/doc +OUTPUT_DIRECTORY = doc CREATE_SUBDIRS = NO OUTPUT_LANGUAGE = English USE_WINDOWS_ENCODING = YES @@ -26,7 +26,7 @@ ALWAYS_DETAILED_SEC = NO INLINE_INHERITED_MEMB = NO FULL_PATH_NAMES = YES STRIP_FROM_PATH = -STRIP_FROM_INC_PATH = C:/cvs/cpp-xmltooling +STRIP_FROM_INC_PATH = . SHORT_NAMES = NO JAVADOC_AUTOBRIEF = YES MULTILINE_CPP_IS_BRIEF = NO @@ -82,7 +82,7 @@ WARN_LOGFILE = #--------------------------------------------------------------------------- # configuration options related to the input files #--------------------------------------------------------------------------- -INPUT = C:/cvs/cpp-xmltooling/xmltooling +INPUT = xmltooling FILE_PATTERNS = *.d \ *.java \ *.ii \ @@ -106,7 +106,7 @@ FILE_PATTERNS = *.d \ *.dox \ *.py RECURSIVE = YES -EXCLUDE = C:/cvs/cpp-xmltooling/xmltooling/signature/impl +EXCLUDE = EXCLUDE_SYMLINKS = NO EXCLUDE_PATTERNS = EXAMPLE_PATH = @@ -209,7 +209,7 @@ ENABLE_PREPROCESSING = YES MACRO_EXPANSION = YES EXPAND_ONLY_PREDEF = NO SEARCH_INCLUDES = YES -INCLUDE_PATH = C:\cvs\cpp-xmltooling +INCLUDE_PATH = . INCLUDE_FILE_PATTERNS = PREDEFINED = _MSC_VER \ DOXYGEN_SKIP diff --git a/pkginfo.in b/pkginfo.in new file mode 100644 index 0000000..653cc91 --- /dev/null +++ b/pkginfo.in @@ -0,0 +1,10 @@ +ARCH=sparc +PKG=SHIBxmltool +NAME=XML Tooling Library for C++ +VERSION=@-VERSION-@ +CATEGORY=system +VENDOR=http://www.opensaml.org/ packaged for Shibboleth by Scott Cantor +HOTLINE=http://bugzilla.internet2.edu/ +EMAIL=cantor.2@osu.edu +PSTAMP=1May2006 +CLASSES=none diff --git a/xmltooling.spec.in b/xmltooling.spec.in new file mode 100644 index 0000000..4d17609 --- /dev/null +++ b/xmltooling.spec.in @@ -0,0 +1,82 @@ +Name: xmltooling +Summary: Open source XMLTooling library +Version: @-VERSION-@ +Release: 1 +Group: System Environment/Libraries +Vendor: Internet2 +License: Apache 2.0 +URL: http://www.opensaml.org/ +Source0: http://shibboleth.internet2.edu/downloads/%{name}-%{version}.tar.gz +Source1: http://shibboleth.internet2.edu/downloads/%{name}-%{version}.tar.gz.asc +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +BuildRequires: xerces-c-devel >= 2.6.1 +BuildRequires: xml-security-c-devel >= 1.3.0 +BuildRequires: log4cpp-devel >= 0.3.5, cxxtest + +%description +The XMLTooling library contains generic XML parsing and processing +classes based on the Xerces-C DOM. It adds more powerful facilities +for declaring element- and type-specific API and implementation +classes to add value around the DOM, as well as signing and encryption +support. + +This package contains the xmltooling runtime library. + +%package devel +Summary: XMLTooling development Headers +Group: Development/Libraries +Requires: %{name} = %{version} + +%description devel +The XMLTooling library contains generic XML parsing and processing +classes based on the Xerces-C DOM. It adds more powerful facilities +for declaring element- and type-specific API and implementation +classes to add value around the DOM, as well as signing and encryption +support. + +This package contains the headers and other necessary files to build +applications or libraries that use or extend the xmltooling library. + +%prep +%setup -q + +%build +%configure %{?xmltooling_options} +make + +%install +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT +rm -rf _docs + +make install DESTDIR=$RPM_BUILD_ROOT +mv $RPM_BUILD_ROOT/usr/doc/xmltooling _docs + +%check || : +make check + +%clean +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT + +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + +%files +%defattr(-,root,root,-) +#%doc _docs/LICENSE.txt _docs/NEWS.txt _docs/README.txt _docs/TODO.txt +%{_bindir}/xmltoolingtest +%{_libdir}/libxmltooling.so.* +%dir %{_datadir}/xml/xmltooling +%{_datadir}/xml/xmltooling + +%files devel +%defattr(-,root,root,-) +%{_includedir} +%{_libdir}/libxmltooling.so + +%changelog +* Wed Apr 12 2006 Scott Cantor - 1.0-1 +- First SPEC file based on various versions in existence.