Compare commits

...

4 Commits
rawhide ... el5

Author SHA1 Message Date
Fedora Release Engineering
155eefda5a dist-git conversion 2010-07-29 15:30:56 +00:00
Bill Nottingham
676a6a1dec Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:28:47 +00:00
Lubomir Rintel
66db9771e7 Initial import 2007-11-26 18:41:36 +00:00
Kevin Fenzi
8c359f6e4d Initialize branch EL-5 for xalan-c 2007-11-26 17:17:39 +00:00
6 changed files with 116 additions and 21 deletions

View File

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
Xalan-C_1_10_0-src.tar.gz

View File

@ -1,21 +0,0 @@
# Makefile for source rpm: xalan-c
# $Id$
NAME := xalan-c
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View File

@ -0,0 +1 @@
0a3fbb535885531cc544b07a2060bfb1 Xalan-C_1_10_0-src.tar.gz

View File

@ -0,0 +1,11 @@
--- xml-xalan/c/runConfigure.escaping 2005-08-17 01:48:26.000000000 +0200
+++ xml-xalan/c/runConfigure 2007-11-19 17:06:39.000000000 +0100
@@ -198,7 +198,7 @@
# Get the command line parameters
if test -x /bin/getopt -o -x /usr/bin/getopt; then
- set -- `getopt C:p:P:c:x:dm:n:t:m:M:r:b:l:z:h $*`
+ eval set -- `getopt -o C:p:P:c:x:dm:n:t:m:M:r:b:l:z:h -- "$@"`
if [ $? != 0 ]
then

103
xalan-c.spec Normal file
View File

@ -0,0 +1,103 @@
Name: xalan-c
Version: 1.10.0
Release: 2%{?dist}
Summary: Xalan XSLT processor for C
Group: System Environment/Libraries
License: ASL 2.0
URL: http://xml.apache.org/xalan-c/
Source0: http://www.apache.org/dist/xml/xalan-c/Xalan-C_1_10_0-src.tar.gz
Patch0: xalan-c-1.10.0-escaping.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: xerces-c-devel
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
%description
Xalan is an XSLT processor for transforming XML documents into HTML, text, or
other XML document types.
%package devel
Summary: Header files, libraries and development documentation for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.
%package doc
Group: Documentation
Summary: Documentation for Xerces-C++ validating XML parser
%description doc
Documentation for %{name}.
%prep
%setup -q -n xml-xalan/c
%patch -p2 -b .escaping
find -type d -name CVS -print0 | xargs -0 rm -rf
chmod 644 NOTICE
%build
export XALANCROOT="${PWD}"
export XERCESROOT=%{_includedir}/xercesc/
COMMONARGS="-plinux -cgcc -xg++ -minmem -rpthreads"
%ifarch alpha ppc64 s390x sparc64 x86_64
./runConfigure ${COMMONARGS} -b64 -P %{_prefix} -C --libdir="%{_libdir}" -z '%{optflags}'
%else
./runConfigure ${COMMONARGS} -b32 -P %{_prefix} -C --libdir="%{_libdir}" -z '%{optflags}'
%endif
# _smp_mflags do not work
make
%install
rm -rf $RPM_BUILD_ROOT
export XALANCROOT="${PWD}"
export XERCESROOT=%{_includedir}/xercesc/
make install DESTDIR=$RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE KEYS NOTICE
%{_bindir}/Xalan
%{_libdir}/libxalan*.so.*
%files devel
%defattr(-,root,root,-)
%{_libdir}/libxalan*.so
%{_includedir}/xalanc/
%files doc
%defattr(-,root,root,-)
%doc readme.html xdocs samples
%changelog
* Mon Nov 19 2007 Lubomir Kundrak <lkundrak@redhat.com> - 1.10.0-2
- Fix passing of compiler flags
- Bump to stable source instead of CVS snapshot
- Fixed License tag
* Thu Feb 15 2007 Till Maas <opensource till name> - 1.10.0-1
- Initial spec for fedora extras