%define altname Sablot %{!?jscript: %define jscript 1} %{!?readline: %define readline 0} %{!?GPL: %define GPL 0} Summary: XSLT, XPath and DOM processor Name: sablotron Version: 1.0.2 Release: 3 Group: Utilities/Text Source: http:/download-2.gingerall.cz:/download/sablot/%{altname}-%{version}.tar.gz Patch: sablot-lib-1.0.patch Requires: expat >= 1.95.2, ncurses, libstdc++ Conflicts: expat = 1.95.6 BuildRequires: expat-devel >= 1.95.2, ncurses-devel, libstdc++-devel BuildRoot: %{_tmppath}/%{name}-%{version}-root %if %{jscript} Requires: js >= 1.5 BuildRequires: js-devel >= 1.5 %endif %if %{readline} Requires: readline BuildRequires: readline-devel %endif %if %{GPL} Copyright: GPL %else Copyright: MPL/GPL %endif %description Sablotron is an XML (XSLT 1.0, XPath 1.0, DOM Level2) processor. It is written in C++ by Ginger Alliance. %package devel Requires: %{name} = %{version} Summary: The development libraries and header files for Sablotron. Group: Development/Libraries %description devel These are the development libraries and header files for Sablotron. %prep %if %{readline} && !%{GPL} echo "The readline library may not be linked to non GPL'ed programs, so if you want to have readline support in the debugger, you have to choose the GPL from Sablotron license model." exit 1 %endif %setup -q -n %{altname}-%{version} #%patch %build %if %{jscript} export CPLUS_INCLUDE_PATH=/usr/include/js %endif export CXXFLAGS="$RPM_OPT_FLAGS" %if %{GPL} export SABLOT_GPL=1 %endif %configure \ %if %{jscript} --enable-javascript \ %endif %if %{GPL} && %{readline} --with-readline \ %endif --enable-debugger make strip src/engine/.libs/libsablot.a strip src/engine/.libs/libsablot.so* %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %makeinstall rm -f $RPM_BUILD_ROOT%{_libdir}/*.la %files %defattr(-,root,root,0755) %attr (0644,root,root) %doc README RELEASE doc/misc/NOTES doc/misc/DEBUGGER %{_bindir}/sabcmd %{_libdir}/libsablot.so.* %{_mandir}/man1/sabcmd.1.gz %files devel %defattr(-,root,root,0755) #%doc doc/apidoc/sablot #%doc doc/apidoc/jsdom-ref #%doc doc/apidoc/sxp %{_bindir}/sablot-config %{_libdir}/lib*.a %{_libdir}/lib*.so %{_includedir}/*.h %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %changelog * Sat Apr 09 2005 Scott R. Shinn - update to 1.0.2 * Mon Aug 30 2004 Scott R. Shinn - fixed a minor multi-distro building bug * Mon Nov 24 2003 Petr Cimpricg - sablotron 1.0.1 RPM release 1 * Fri Aug 8 2003 Petr Cimprich - sablotron 1.0 RPM release 1 - Add optional support for JS thru defines - all defines can be set from command line - patch for src/engine/Makefile.in updated * Mon May 19 2003 Chris Chabot - Replace tabs w/ spaces in header - Add optional GPL licence compile support and Add optional support for readline thru defines and changes package licence field appropiatly - Package man page in man1 instead putting it in the doc dir - Add sablot-config to package - Add conflicts tag for non-supported expat release - Changed buildroot to use temp path macro - Removed .la file, new-redhat style - Add check for rm -rf's that build root is not / - Made setup quiet - Add NOTES & DEBUGGER to the main package and apidoc's to devel package - Set file mode for README to 0644 - Expanded Requires & BuildRequires tags * Tue Apr 8 2003 Petr Cimprich - sablotron 0.98 RPM release 1 - Expat 1.95.2 or higher required * Mon Dec 30 2002 Petr Cimprich - sablotron 0.97 RPM release 1 * Thu Sep 5 2002 Petr Cimprich - sablotron 0.96 RPM release 1 - added switches to %configure and JS environment * Wed Jul 31 2002 Alkis Evlogimenos - Removed unnecessary %builddir definition - Changed configure target to take configure options of the system - Changed install to use the %makeinstall macro * Tue Jun 25 2002 Petr Cimprich - sablotron 0.95 RPM release 1 - added manpage for sabcmd * Mon Mar 11 2002 Petr Cimprich - sablotron 0.90 RPM release 1 * Wed Jan 30 2002 Petr Cimprich - sablotron 0.82 RPM release 1 * Fri Jan 18 2002 Petr Cimprich - sablotron 0.81 RPM release 2 - added CPLUS_INCLUDE_PATH=/usr/include/js * Wed Jan 16 2002 Petr Cimprich - sablotron 0.81 RPM release 1 * Thu Jan 10 2002 Petr Cimprich - sablotron 0.80 RPM release 2 - removed --enable-perlconnect * Wed Jan 9 2002 Petr Cimprich - sablotron 0.80 RPM release 1 - requires JavaScript now - build under RedHat 7.2 with rpm 4.0.3 * Tue Nov 6 2001 Petr Cimprich - sablotron 0.71 RPM release 1 - adapted to new project layout * Tue Sep 18 2001 Petr Cimprich - sablotron 0.70 RPM release 1 * Wed Aug 15 2001 Petr Cimprich - sablotron 0.65 RPM release 1 * Thu Jun 14 2001 Petr Cimprich - sablotron 0.60 RPM release 1 - build under RedHat 7.1 with rpm 4.0.2 * Wed Apr 22 2001 Petr Cimprich - sablotron 0.52 RPM release 1 - based on 0.51-5 spec by Henri Gomez * Thu Feb 22 2001 Henri Gomez - sablotron 0.51 RPM release 5 - apply patch to add -lexpat and -lstdc++ in libsablot.so REQUIRED for use with PHP4 * Thu Feb 22 2001 Henri Gomez - sablotron 0.51 RPM release 4 - follow Redhat way to dispatch between pack and pack-devel * Tue Feb 20 2001 Henri Gomez - sablotron 0.51 RPM release 3 - added ldconfig is post/preun and cleanup stuff - build under Redhat 6.2 + updates with rpm 3.0.5 * Mon Feb 19 2001 Henri Gomez - sablotron 0.51 RPM release 2 - added Requires expat >= 1.95.1 * Mon Feb 19 2001 Henri Gomez - sablotron 0.51 RPM release 1 - updated spec file