2017-01-09 11:23:36 +00:00
|
|
|
#
|
|
|
|
# spec file for package libnxml
|
|
|
|
#
|
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2010-02-17 07:25:01 +00:00
|
|
|
%define soname 0
|
2017-01-09 11:23:36 +00:00
|
|
|
Name: libnxml
|
|
|
|
Version: 0.18.3
|
|
|
|
Release: 0
|
|
|
|
Summary: XML Parsing Library
|
|
|
|
License: LGPL-2.1+
|
2017-01-17 11:51:35 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2017-01-09 11:23:36 +00:00
|
|
|
Url: http://www.autistici.org/bakunin/codes.php
|
|
|
|
Source: http://www.autistici.org/bakunin/libnxml/libnxml-%{version}.tar.gz
|
2017-01-09 16:12:54 +00:00
|
|
|
Source1: baselibs.conf
|
2017-01-09 11:23:36 +00:00
|
|
|
Patch1: libnxml-curl_compat.patch
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-02-17 07:34:29 +00:00
|
|
|
%if 0%{?suse_version} == 0 || 0%{?suse_version} >= 1030
|
2017-01-09 11:23:36 +00:00
|
|
|
BuildRequires: libcurl-devel
|
2010-02-17 07:34:29 +00:00
|
|
|
%else
|
2017-01-09 11:23:36 +00:00
|
|
|
BuildRequires: curl-devel
|
2010-02-17 07:34:29 +00:00
|
|
|
%endif
|
2010-02-17 07:25:01 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
nXML is a C library for parsing, writing and creating XML 1.0 and 1.1 files or
|
2017-01-17 11:51:35 +00:00
|
|
|
streams. It supports UTF-8, UTF-16BE and UTF-16LE, UCS-4 (1234, 4321, 2143,
|
2010-02-17 07:25:01 +00:00
|
|
|
2312).
|
|
|
|
|
|
|
|
%package -n libnxml%{soname}
|
2017-01-09 11:23:36 +00:00
|
|
|
Summary: XML Parsing Library
|
|
|
|
Group: System/Libraries
|
2010-02-17 07:25:01 +00:00
|
|
|
|
|
|
|
%description -n libnxml%{soname}
|
|
|
|
nXML is a C library for parsing, writing and creating XML 1.0 and 1.1 files or
|
2017-01-17 11:51:35 +00:00
|
|
|
streams. It supports UTF-8, UTF-16be and UTF-16le, UCS-4 (1234, 4321, 2143,
|
2010-02-17 07:25:01 +00:00
|
|
|
2312).
|
|
|
|
|
|
|
|
%package -n libnxml-devel
|
2017-01-09 11:23:36 +00:00
|
|
|
Summary: XML Parsing Library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libnxml%{soname} = %{version}-%{release}
|
2010-02-17 07:34:29 +00:00
|
|
|
%if 0%{?suse_version} == 0 || 0%{?suse_version} >= 1030
|
2017-01-09 11:23:36 +00:00
|
|
|
Requires: libcurl-devel
|
2010-02-17 07:34:29 +00:00
|
|
|
%else
|
2017-01-09 11:23:36 +00:00
|
|
|
Requires: curl-devel
|
2010-02-17 07:34:29 +00:00
|
|
|
%endif
|
2010-02-17 07:25:01 +00:00
|
|
|
|
|
|
|
%description -n libnxml-devel
|
|
|
|
nXML is a C library for parsing, writing and creating XML 1.0 and 1.1 files or
|
2017-01-17 11:51:35 +00:00
|
|
|
streams. It supports UTF-8, UTF-16be and UTF-16le, UCS-4 (1234, 4321, 2143,
|
2010-02-17 07:25:01 +00:00
|
|
|
2312).
|
|
|
|
|
|
|
|
%prep
|
2024-03-01 13:24:43 +00:00
|
|
|
%autosetup -p0
|
2010-02-17 07:25:01 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|
|
|
export CPPFLAGS="$CFLAGS"
|
2017-01-17 11:51:35 +00:00
|
|
|
%configure --disable-static
|
2012-01-31 12:21:56 +00:00
|
|
|
make %{?_smp_mflags}
|
2010-02-17 07:25:01 +00:00
|
|
|
|
|
|
|
%install
|
2017-01-09 11:23:36 +00:00
|
|
|
%make_install
|
2010-02-17 07:25:01 +00:00
|
|
|
|
2017-01-09 11:23:36 +00:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2010-02-17 07:25:01 +00:00
|
|
|
|
|
|
|
%post -n libnxml%{soname} -p /sbin/ldconfig
|
|
|
|
%postun -n libnxml%{soname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libnxml%{soname}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README AUTHORS COPYING NEWS ChangeLog
|
|
|
|
%{_libdir}/libnxml.so.%{soname}
|
|
|
|
%{_libdir}/libnxml.so.%{soname}.*
|
|
|
|
|
|
|
|
%files -n libnxml-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/nxml.h
|
|
|
|
%{_libdir}/libnxml.so
|
|
|
|
%{_libdir}/pkgconfig/nxml.pc
|
|
|
|
|
|
|
|
%changelog
|