summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormkochano2001-11-02 12:05:22 (GMT)
committercvs2git2012-06-24 12:13:13 (GMT)
commita966808eb852d811e7a72c9f00098d9507f69473 (patch)
tree2704426f22b3f48864a5ee3e3b4f47482af5cdd5
parentabb8da14da8c29f551d51ceda43ef33e2b306300 (diff)
downloadxalan-c-a966808eb852d811e7a72c9f00098d9507f69473.zip
xalan-c-a966808eb852d811e7a72c9f00098d9507f69473.tar.gz
- Updated to 1.2.
- Note: I'm not sure if this package works... Changed files: xalan-c.spec -> 1.3
-rw-r--r--xalan-c.spec60
1 files changed, 48 insertions, 12 deletions
diff --git a/xalan-c.spec b/xalan-c.spec
index e91baea..34be590 100644
--- a/xalan-c.spec
+++ b/xalan-c.spec
@@ -1,19 +1,24 @@
Summary: XML parser
Summary(pl): Parser XML
Name: xalan-c
-Version: 0.40.0
-%define ver 0_40_0
-%define mainver 0_40_0
+Version: 1.2
+%define ver 1_2
+%define mainver 1_2
%define icuver 1.6
Release: 1
License: GPL
Group: Applications/Publishing/XML
Group(de): Applikationen/Publizieren/XML
Group(pl): Aplikacje/Publikowanie/XML
-Source0: http://xml.apache.org/dist/xerces-c/stable/Xalan-C_%{ver}-linux.tar.gz
+#Source0: http://xml.apache.org/dist/xerces-c/stable/Xalan-C_%{ver}-linux.tar.gz
+Source0: http://xml.apache.org/dist/xalan-c/Xalan-C_%{ver}-linux.tar.gz
Source1: http://oss.software.ibm.com/developerworks/opensource/icu/project/download/%{icuver}/icu-%{icuver}.tgz
+Patch0: %{name}-xerces_ver.patch
URL: http://xml.apache.org
BuildRequires: autoconf
+BuildRequires: xerces-c
+# Needs "tr".
+BuildRequires: textutils
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -34,36 +39,64 @@ Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
Requires: %{name} = %{version}
%description devel
-%{name} header files and documentation.
+Header files.
%description -l pl devel
-Pliki nag³ówkowe i dokumentacja %{name}.
+Pliki nag³ówkowe.
+
+%package docs
+Summary: Documentation for xalan-c
+Summary(pl): Dokumentacja xlan-c
+Group: Development/Libraries
+Group(de): Entwicklung/Libraries
+Group(es): Desarrollo/Bibliotecas
+Group(fr): Development/Librairies
+Group(pl): Programowanie/Biblioteki
+Group(pt_BR): Desenvolvimento/Bibliotecas
+Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
+Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
+Requires: %{name} = %{version}
+
+%description docs
+Documentation for xalan-c.
+
+%description -l pl docs
+Dokumentacja xalan-c.
%prep
-%setup -q -n xml-xalan/c/src
+%setup -q -n xml-xalan
+%patch0 -p1
+# Binaries provided with sources.
+rm -rf c/{bin,lib}/*
+# We don't need it, so why waste space?
+rm -rf ../xerces-c1_5_1-linux
%build
+cd c/src
#chmod 755 configure config.{guess,status,sub}
## Just another shit!!!
export XALANCROOT=`cd ../.. ; pwd`
export XERCESCROOT="%{_includedir}"
-autoconf
+#autoconf
+#CPPFLAGS="-Iinclude"
+#export CPPFLAGS
chmod 755 runConfigure
./runConfigure -plinux -cgcc -xg++ -minmem -nfileonly -tnative
-%{__make}
+%{__make} XERCES_VER=`rpm -q xerces-c --qf '%%{version}' | tr . _`
%install
+cd c/src
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/%{_libdir}
install -d $RPM_BUILD_ROOT/%{_includedir}
# Only one file?
-cp -a ../lib/* $RPM_BUILD_ROOT%{_libdir}
+cp -a ../../lib/* $RPM_BUILD_ROOT%{_libdir}
# I put all stuff from that dir, maybe some can be omitted
-cp -a ../include/* $RPM_BUILD_ROOT%{_includedir}
+cp -a Include/* $RPM_BUILD_ROOT%{_includedir}
%clean
rm -rf $RPM_BUILD_ROOT
@@ -77,6 +110,9 @@ rm -rf $RPM_BUILD_ROOT
%files devel
%defattr(644,root,root,755)
-%doc ../doc/html ../samples
%{_includedir}/*
##%{_libdir}/*.so
+
+%files docs
+%defattr(644,root,root,755)
+%doc c/docs c/samples