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
|
|
|
#
|
2017-07-04 18:25:59 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX 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
|
2017-10-26 15:40:29 +02:00
|
|
|
Version: 2.2.4
|
2011-12-02 13:53:21 +01:00
|
|
|
Release: 0
|
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++
|
2017-10-26 15:40:29 +02:00
|
|
|
Url: http://www.libexpat.org
|
2016-03-23 09:48:07 +01:00
|
|
|
Source0: http://downloads.sourceforge.net/project/expat/expat/%{version}/expat-%{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
|
2017-10-26 15:40:29 +02:00
|
|
|
Patch0: expat-docbook.patch
|
|
|
|
BuildRequires: docbook2x
|
2009-04-23 19:05:43 +02:00
|
|
|
BuildRequires: gcc-c++
|
2012-02-12 17:28:13 +01:00
|
|
|
BuildRequires: libtool
|
2016-07-14 17:19:01 +02:00
|
|
|
BuildRequires: pkgconfig
|
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
|
2016-07-20 08:48:52 +02:00
|
|
|
Group: System/Libraries
|
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
|
2016-03-23 09:48:07 +01:00
|
|
|
%setup -q
|
2017-10-26 15:40:29 +02:00
|
|
|
%patch0 -p1
|
2016-03-23 09:48:07 +01:00
|
|
|
|
2015-07-11 15:33:21 +02:00
|
|
|
cp %{SOURCE1} .
|
2007-06-08 00:13:26 +02:00
|
|
|
rm -f examples/*.dsp
|
2006-12-19 00:15:51 +01:00
|
|
|
|
|
|
|
%build
|
2016-07-14 17:19:01 +02:00
|
|
|
%configure \
|
2017-07-11 22:45:24 +02:00
|
|
|
--disable-silent-rules \
|
2017-10-26 15:40:29 +02:00
|
|
|
--docdir="%{_docdir}/%{name}" \
|
2017-07-11 22:45:24 +02:00
|
|
|
--disable-static
|
2017-10-07 17:19:36 +02:00
|
|
|
%if 0%{?do_profiling}
|
2017-07-11 22:45:24 +02:00
|
|
|
make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}"
|
|
|
|
make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}" LDFLAGS="%{optflags} %{cflags_profile_generate}" check
|
2017-10-26 15:40:29 +02:00
|
|
|
make %{?_smp_mflags} clean
|
2017-07-11 22:45:24 +02:00
|
|
|
make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_feedback}"
|
|
|
|
%else
|
|
|
|
make %{?_smp_mflags} CFLAGS="%{optflags}"
|
|
|
|
%endif
|
2006-12-19 00:15:51 +01:00
|
|
|
|
|
|
|
%install
|
2016-07-14 17:19:01 +02:00
|
|
|
%make_install
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2006-12-19 00:15:51 +01:00
|
|
|
|
2009-04-02 17:23:53 +02:00
|
|
|
%check
|
2015-07-11 15:33:21 +02:00
|
|
|
make %{?_smp_mflags} check
|
2009-04-02 17:23:53 +02:00
|
|
|
|
|
|
|
%post -n libexpat1 -p /sbin/ldconfig
|
|
|
|
%postun -n libexpat1 -p /sbin/ldconfig
|
2007-06-08 00:13:26 +02:00
|
|
|
|
2006-12-19 00:15:51 +01:00
|
|
|
%files
|
2017-10-26 15:40:29 +02:00
|
|
|
%{_docdir}/%{name}
|
|
|
|
%doc COPYING README.md expatfaq.html
|
2007-04-27 16:43:19 +02:00
|
|
|
%doc doc/expat.png doc/reference.html doc/style.css doc/valid-xhtml10.png
|
2017-10-26 15:40:29 +02:00
|
|
|
%doc examples/elements.c examples/outline.c examples/Makefile.am examples/Makefile.in
|
|
|
|
%doc AUTHORS Changes
|
2015-07-11 15:33:21 +02:00
|
|
|
%{_mandir}/man?/*
|
2007-04-27 16:43:19 +02:00
|
|
|
%{_bindir}/xmlwf
|
|
|
|
|
|
|
|
%files -n libexpat1
|
2012-02-12 17:28:13 +01:00
|
|
|
%{_libdir}/libexpat.so.*
|
2007-04-27 16:43:19 +02:00
|
|
|
|
|
|
|
%files -n libexpat-devel
|
2017-10-26 15:40:29 +02:00
|
|
|
|
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
|