summaryrefslogtreecommitdiff
path: root/libxslt.spec.in
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-10-23 21:07:12 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-10-23 21:07:12 +0000
commit8c802f796ee7143debdecf1e71e84e618e060522 (patch)
tree2b1d42683f4fb5206830e2998983ad076417db6d /libxslt.spec.in
parent304beedff66622135c5b1d3b493d5803f687a147 (diff)
downloadlibxslt-8c802f796ee7143debdecf1e71e84e618e060522.tar.gz
libxslt-8c802f796ee7143debdecf1e71e84e618e060522.tar.bz2
libxslt-8c802f796ee7143debdecf1e71e84e618e060522.zip
cleaned up the spec file and associated changes in the Makefiles. Daniel
* Makefile.am libxslt.spec.in doc/Makefile.am: cleaned up the spec file and associated changes in the Makefiles. Daniel
Diffstat (limited to 'libxslt.spec.in')
-rw-r--r--libxslt.spec.in72
1 files changed, 28 insertions, 44 deletions
diff --git a/libxslt.spec.in b/libxslt.spec.in
index 8745fc9a..2568ef74 100644
--- a/libxslt.spec.in
+++ b/libxslt.spec.in
@@ -7,8 +7,8 @@ Group: Development/Libraries
Source: ftp://xmlsoft.org/XSLT/libxslt-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root
URL: http://xmlsoft.org/XSLT/
-Requires: libxml2 >= @LIBXML_REQUIRED_VERSION@
-BuildRequires: libxml2-devel >= @LIBXML_REQUIRED_VERSION@
+Requires: libxml2 >= 2.4.23
+BuildRequires: libxml2-devel >= 2.4.23
BuildRequires: python python-devel
BuildRequires: libxml2-python
Prefix: %{_prefix}
@@ -24,7 +24,7 @@ installed. The xsltproc command is a command line interface to the XSLT engine
Summary: Libraries, includes, etc. to embed the Gnome XSLT engine
Group: Development/Libraries
Requires: libxslt = %{version}
-Requires: libxml2-devel >= @LIBXML_REQUIRED_VERSION@
+Requires: libxml2-devel >= 2.4.23
%description devel
This C library allows to transform XML files into other XML files
@@ -36,7 +36,7 @@ installed.
Summary: Python bindings for the libxslt library
Group: Development/Libraries
Requires: libxslt = %{version}
-Requires: libxml2 >= @LIBXML_REQUIRED_VERSION@
+Requires: libxml2 >= 2.4.23
Requires: python
%description python
@@ -48,74 +48,53 @@ This library allows to parse sytlesheets, uses the libxml2-python
to load and save XML and HTML files. Direct access to XPath and
the XSLT transformation context are possible to extend the XSLT language
with XPath functions written in Python.
+
%prep
%setup -q
%build
-# Needed for snapshot releases.
-if [ ! -f configure ]; then
-%ifarch alpha
- CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc" --mandir=%{_mandir} --libdir=%{_libdir}
-%else
- CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --sysconfdir="/etc" --mandir=%{_mandir} --libdir=%{_libdir}
-%endif
-else
-%ifarch alpha
- CFLAGS="$RPM_OPT_FLAGS" ./configure --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc" --mandir=%{_mandir} --libdir=%{_libdir}
-%else
- CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --sysconfdir="/etc" --mandir=%{_mandir} --libdir=%{_libdir}
-%endif
-fi
-
-if [ "$SMP" != "" ]; then
- (make "MAKE=make -k -j $SMP"; exit 0)
- make
-else
- make
-fi
+%configure
+make
%install
-rm -rf $RPM_BUILD_ROOT
+rm -fr %{buildroot}
-install -d $RPM_BUILD_ROOT%{_mandir}/man1
-install -d $RPM_BUILD_ROOT%{_mandir}/man4
%makeinstall
-# make prefix=$RPM_BUILD_ROOT%{prefix} mandir=$RPM_BUILD_ROOT%{_mandir} libdir=$RPM_BUILD_ROOT%{_libdir} install
#
# this is a bit ugly but tries to generate the bindings for all versions
# of python installed
+#
for i in %{prefix}/include/python*
do
py_version=`echo $i | sed "s+%{prefix}/include/python++"`
if test -x %{prefix}/bin/python$py_version
then
echo generating bindings for Python $py_version
- (cd python ; make clean ; \
+ (cd python ; make clean ; \
make PYTHON="%{prefix}/bin/python$py_version" \
- PYTHON_VERSION="$py_version"; \
- make PYTHON="%{prefix}/bin/python$py_version" \
- PYTHON_VERSION="$py_version" \
- prefix=$RPM_BUILD_ROOT%{prefix} \
- mandir=$RPM_BUILD_ROOT%{_mandir} \
- libdir=$RPM_BUILD_ROOT%{_libdir} \
- install)
+ PYTHON_VERSION="$py_version"; \
+%makeinstall PYTHON="%{prefix}/bin/python$py_version" \
+ PYTHON_VERSION="$py_version" \
+ prefix=$RPM_BUILD_ROOT%{prefix})
fi
done
+
%clean
-rm -rf $RPM_BUILD_ROOT
+rm -fr %{buildroot}
-%post -p /sbin/ldconfig
+%post
+/sbin/ldconfig
-%postun -p /sbin/ldconfig
+%postun
+/sbin/ldconfig
%files
%defattr(-, root, root)
%doc AUTHORS ChangeLog NEWS README Copyright TODO FEATURES
-%doc doc/*.html doc/html doc/tutorial doc/*.gif doc/*.png
+%doc doc/*.html doc/html doc/tutorial doc/*.gif
%doc %{_mandir}/man1/xsltproc.1*
-
%{_libdir}/lib*.so.*
%{prefix}/bin/xsltproc
@@ -123,26 +102,31 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-, root, root)
%doc AUTHORS ChangeLog NEWS README Copyright TODO FEATURES
+%doc %{_mandir}/man4/libxslt.4*
+%doc %{_mandir}/man4/libexslt.4*
%{_libdir}/lib*.so
%{_libdir}/*a
%{_libdir}/*.sh
%{prefix}/include/*
%{prefix}/bin/xslt-config
%{_libdir}/pkgconfig/libxslt.pc
+
%files python
%defattr(-, root, root)
%doc AUTHORS ChangeLog NEWS README Copyright FEATURES
%{_libdir}/python*/site-packages/libxslt.py
-%{_libdir}/python*/site-packages/libxsltmod.so
+%{_libdir}/python*/site-packages/libxsltmod*
%doc python/TODO
%doc python/libxsltclass.txt
%doc python/tests/*.py
%doc python/tests/*.xml
%doc python/tests/*.xsl
-
%changelog
+* Wed Oct 23 2002 Daniel Veillard <veillard@redhat.com>
+- revamped the spec file, cleaned up some rpm building problems
+
* Wed Sep 4 2002 Daniel Veillard <veillard@redhat.com>
- library paths fixed for x86-64