File exml.spec of Package exml
#
# spec file for package exml-DR17 (svn Version _20100516_r48925)
#
# Copyright (c) 2008 SOAD Project, Russia.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bug fixes or comments to the Maintainer: sda00@himki.net
#
# norootforbuild
Name: libexml0
Version: svn_20100516_r48925
Release: SOAD.1
License: BSD
Provides: exml libexml
Obsoletes: exml libexml
URL: http://enlightenment.org/
Conflicts: Enlightenment_DR17-cvs-core-metapackage
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: exml_20100516_r48925.tar.bz2
Packager: sda00 <sda00@himki.net>
Group: System/Libraries
Summary: Enlightenment XML parser/writer
%if 0%{?suse_version} > 1030 || 0%{?sles_version} == 11
# core
BuildRequires: gcc-c++ gcc iputils subversion m4 autoconf automake libtool glibc-devel glibc zlib-devel zlib libjpeg-devel libjpeg doxygen gzip
# functional extensions
BuildRequires: libxml2-devel libxml2 libxslt-devel libxslt pkg-config zlib-devel zlib glib2-devel
%endif
%if 0%{?suse_version} == 1030
# core
BuildRequires: gcc-c++ gcc iputils subversion m4 autoconf automake libtool glibc-devel glibc zlib-devel zlib libjpeg-devel libjpeg doxygen gzip
# functional extensions
BuildRequires: libxml2-devel libxml2 libxslt-devel libxslt pkg-config zlib-devel zlib glib2-devel
%endif
%if 0%{?fedora_version}
BuildRequires: zlib-devel pkgconfig gnutls-devel subversion automake doxygen m4 autoconf gzip bzip2 tar libxslt-devel libxslt libxml2-devel libxml2
%endif
%if 0%{?mandriva_version}
%ifarch x86_64
BuildRequires: zlib1-devel zlib1 pkgconfig lib64gnutls-devel subversion automake doxygen m4 autoconf gzip bzip2 tar lib64xslt-devel lib64xml2-devel lib64xslt1
%else
BuildRequires: zlib-devel pkgconfig libgnutls-devel subversion automake doxygen m4 autoconf gzip bzip2 tar libxslt-devel libxml2-devel libxslt1
%endif
%endif
# E required components (E dependencies)
BuildRequires: libeet1 libeet1-devel libevas0 libevas0-devel libecore0 libecore0-devel libeina0-devel libeina0
%description
EXML is an abstracted, generalized interface to an xml parser/writer,
using ecore data structures and making things generally easy to get
around in.
Authors:
--------
George Gensure (werkt@users.sourceforge.net)
The full list of E-dev crew is here:
http://enlightenment.org/p.php?p=contact&l=en
You can always update your package to the current state just by rebuilding the .spec file:
> rpmbuild -bb *.spec
or by rebuilding the .src.rpm file itself:
> rpmbuild --rebuild *.src.rpm
The new compiled .rpm will be available in /usr/src/packages/RPM/_your_PC_type/
Prepared by SOAD project.
%package devel
Provides: exml-devel libexml-devel
Obsoletes: exml-devel libexml-devel
Summary: Headers, static libraries, documentation and test programs
Group: Development/Libraries
Requires: %{name} = %{version}
%description devel
Headers, static libraries, test programs and documentation
##########################################
## insert here "debug-package" macro for a local builds
##########################################
%prep
rm -rf "$RPM_BUILD_ROOT"
#%setup -q
%if 0%{?suse_version} || 0%{?sles_version}
%{?suse_update_config:%{suse_update_config -f}}
%endif
%build
%install
export PATH=":/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/opt/ecomorph/bin:/opt/ecomorph/sbin:/usr/lib/mpi/gcc/openmpi/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/opt/gnome/bin:$PATH"
if [ "`ping enlightenment.org -c 10 2>&1 | grep icmp_seq`" != "" ] ; then
svn co http://svn.enlightenment.org/svn/e/trunk/exml
cd exml
./autogen.sh
else
tar xfmjv $RPM_SOURCE_DIR/exml_20100516_r48925.tar.bz2
cd exml
./autogen.sh
fi
%configure
make %{?_smp_mflags}
%makeinstall
find $RPM_BUILD_ROOT/ -type f -iname '*.la' -exec rm {} \;
find $RPM_BUILD_ROOT/ -type f -iname '*.a' -exec rm {} \;
%clean
rm -rf "$RPM_BUILD_ROOT"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/*.so.*
%files devel
%defattr(-, root, root)
%{_libdir}/pkgconfig/*
%{_includedir}/*
%{_libdir}/*.so
%changelog
* Mon Apr 20 2009 version E-DR17-999-050 <sda00@himki.net>
- first "rev1" is packaged according to the Release Schedule - http://trac.enlightenment.org/e/wiki/ReleaseSchedule
* Fri Apr 17 2009 version E-DR17-999-050 <sda00@himki.net>
- added online rebuild capability of .src.rpm or .spec files
- prepare to the first official "rev1" snapshot build