2006-12-19 00:15:51 +01:00
|
|
|
#
|
2011-03-22 17:50:17 +01:00
|
|
|
# spec file for package expat
|
2006-12-19 00:15:51 +01:00
|
|
|
#
|
2013-01-18 09:55:13 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:15:51 +01:00
|
|
|
#
|
2008-11-02 15:39:25 +01:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2006-12-19 00:15:51 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-02-12 17:28:13 +01:00
|
|
|
|
2006-12-19 00:15:51 +01:00
|
|
|
Name: expat
|
2012-04-11 10:52:45 +02:00
|
|
|
Version: 2.1.0
|
2011-12-02 13:53:21 +01:00
|
|
|
Release: 0
|
2008-04-10 14:11:39 +02:00
|
|
|
Url: http://expat.sourceforge.net/
|
2008-11-02 15:39:25 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: expat-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2006-12-19 00:15:51 +01:00
|
|
|
Summary: XML Parser Toolkit
|
2012-02-12 17:28:13 +01:00
|
|
|
License: MIT
|
|
|
|
Group: Development/Libraries/C and C++
|
2012-04-11 10:52:45 +02:00
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
2006-12-19 00:15:51 +01:00
|
|
|
Source1: %{name}faq.html
|
2010-01-08 17:30:06 +01:00
|
|
|
Source2: baselibs.conf
|
2011-10-31 00:18:03 +01:00
|
|
|
Patch2: expat-visibility.patch
|
|
|
|
Patch3: expat-alloc-size.patch
|
2013-02-05 12:52:08 +01:00
|
|
|
Patch4: config-guess-sub-update.patch
|
2006-12-19 00:15:51 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-01-22 14:45:25 +01:00
|
|
|
BuildRequires: autoconf >= 2.58
|
2009-04-23 19:05:43 +02:00
|
|
|
BuildRequires: gcc-c++
|
2012-02-12 17:28:13 +01:00
|
|
|
BuildRequires: libtool
|
2012-03-06 10:36:12 +01:00
|
|
|
BuildRequires: pkg-config
|
2006-12-19 00:15:51 +01:00
|
|
|
|
|
|
|
%description
|
2013-02-21 17:47:18 +01:00
|
|
|
Expat is an XML parser library written in C. It is a stream-oriented
|
|
|
|
parser in which an application registers handlers for things the
|
|
|
|
parser might find in the XML document (like start tags).
|
2006-12-19 00:15:51 +01:00
|
|
|
|
2007-04-27 16:43:19 +02:00
|
|
|
%package -n libexpat1
|
|
|
|
Summary: XML Parser Toolkit
|
2012-02-12 17:28:13 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2008-11-02 15:39:25 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: expat-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-04-27 16:43:19 +02:00
|
|
|
|
|
|
|
%description -n libexpat1
|
2013-02-21 17:47:18 +01:00
|
|
|
Expat is an XML parser library written in C. It is a stream-oriented
|
|
|
|
parser in which an application registers handlers for things the
|
|
|
|
parser might find in the XML document (like start tags).
|
2007-04-27 16:43:19 +02:00
|
|
|
|
|
|
|
%package -n libexpat-devel
|
|
|
|
Summary: XML Parser Toolkit
|
2012-02-12 17:28:13 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-03-06 10:36:12 +01:00
|
|
|
Requires: glibc-devel
|
|
|
|
Requires: libexpat1 = %{version}
|
2007-04-27 16:43:19 +02:00
|
|
|
|
|
|
|
%description -n libexpat-devel
|
2013-02-21 17:47:18 +01:00
|
|
|
Expat is an XML parser library written in C. It is a stream-oriented
|
|
|
|
parser in which an application registers handlers for things the
|
|
|
|
parser might find in the XML document (like start tags).
|
|
|
|
|
|
|
|
This package contains the development headers for the library found
|
|
|
|
in libexpat.
|
2007-04-27 16:43:19 +02:00
|
|
|
|
2006-12-19 00:15:51 +01:00
|
|
|
%prep
|
2012-03-06 10:33:32 +01:00
|
|
|
%setup -q -n expat-2.1.0
|
|
|
|
%patch2 -p1
|
2011-10-31 00:18:03 +01:00
|
|
|
%patch3
|
2013-02-05 12:52:08 +01:00
|
|
|
%patch4
|
2006-12-19 00:15:51 +01:00
|
|
|
cp %{S:1} .
|
2007-06-08 00:13:26 +02:00
|
|
|
rm -f examples/*.dsp
|
2006-12-19 00:15:51 +01:00
|
|
|
|
|
|
|
%build
|
2012-03-06 21:51:40 +01:00
|
|
|
autoreconf -fi
|
2012-02-12 17:28:13 +01:00
|
|
|
%configure --disable-static --with-pic
|
2011-09-19 11:53:57 +02:00
|
|
|
make %{?_smp_mflags}
|
2006-12-19 00:15:51 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
rm doc/xmlwf.1
|
2007-07-27 15:34:45 +02:00
|
|
|
# remove .la file
|
2012-02-12 17:28:13 +01:00
|
|
|
rm -f %{buildroot}%{_libdir}/libexpat.la
|
2006-12-19 00:15:51 +01:00
|
|
|
|
2009-04-02 17:23:53 +02:00
|
|
|
%check
|
|
|
|
make check
|
|
|
|
|
|
|
|
%post -n libexpat1 -p /sbin/ldconfig
|
2007-06-08 00:13:26 +02:00
|
|
|
|
2009-04-02 17:23:53 +02:00
|
|
|
%postun -n libexpat1 -p /sbin/ldconfig
|
2007-06-08 00:13:26 +02:00
|
|
|
|
2006-12-19 00:15:51 +01:00
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
2007-04-27 16:43:19 +02:00
|
|
|
%doc COPYING Changes README examples expatfaq.html
|
|
|
|
%doc doc/expat.png doc/reference.html doc/style.css doc/valid-xhtml10.png
|
2006-12-19 00:15:51 +01:00
|
|
|
%doc %{_mandir}/man?/*
|
2007-04-27 16:43:19 +02:00
|
|
|
%{_bindir}/xmlwf
|
|
|
|
|
|
|
|
%files -n libexpat1
|
|
|
|
%defattr(-, root, root)
|
2012-02-12 17:28:13 +01:00
|
|
|
%{_libdir}/libexpat.so.*
|
2007-04-27 16:43:19 +02:00
|
|
|
|
|
|
|
%files -n libexpat-devel
|
|
|
|
%defattr(-, root, root)
|
2006-12-19 00:15:51 +01:00
|
|
|
%{_includedir}/*
|
2007-04-27 16:43:19 +02:00
|
|
|
%{_libdir}/libexpat.so
|
2012-03-06 10:33:32 +01:00
|
|
|
%{_libdir}/pkgconfig/expat.pc
|
2006-12-19 00:15:51 +01:00
|
|
|
|
2007-04-27 16:43:19 +02:00
|
|
|
%changelog
|