Search
j0ke.net Open Build Service
>
Projects
>
home:netmax
:
tools
>
libnxml
> libnxml.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File libnxml.spec of Package libnxml
Name: libnxml Version: 0.18.3 %define soname 0 Release: 0 Summary: XML Parsing Library # http://www.autistici.org/bakunin/libnxml/libnxml-%{version}.tar.gz Source: libnxml-%{version}.tar.bz2 Patch1: libnxml-curl_compat.patch URL: http://www.autistici.org/bakunin/codes.php Group: System/Libraries License: GNU Lesser General Public License version 2.1 or later (LGPL v2.1 or later) BuildRoot: %{_tmppath}/build-%{name}-%{version} %if 0%{?suse_version} == 0 || 0%{?suse_version} >= 1030 BuildRequires: libcurl-devel %else BuildRequires: curl-devel %endif BuildRequires: gcc make glibc-devel pkgconfig BuildRequires: autoconf automake libtool %description nXML is a C library for parsing, writing and creating XML 1.0 and 1.1 files or streams. It supports utf-8, utf-16be and utf-16le, ucs-4 (1234, 4321, 2143, 2312). %package -n libnxml%{soname} Summary: XML Parsing Library Group: System/Libraries %description -n libnxml%{soname} nXML is a C library for parsing, writing and creating XML 1.0 and 1.1 files or streams. It supports utf-8, utf-16be and utf-16le, ucs-4 (1234, 4321, 2143, 2312). %package -n libnxml-devel Summary: XML Parsing Library Group: Development/Libraries/C and C++ Requires: libnxml%{soname} = %{version}-%{release} Requires: pkgconfig %if 0%{?suse_version} == 0 || 0%{?suse_version} >= 1030 Requires: libcurl-devel %else Requires: curl-devel %endif %description -n libnxml-devel nXML is a C library for parsing, writing and creating XML 1.0 and 1.1 files or streams. It supports utf-8, utf-16be and utf-16le, ucs-4 (1234, 4321, 2143, 2312). %prep %setup -q %patch1 %build export CFLAGS="%{optflags} -fno-strict-aliasing" export CPPFLAGS="$CFLAGS" %configure make %{?_smp_mflags} %install %__make DESTDIR="%{buildroot}" install %__rm "%{buildroot}%{_libdir}"/*.la %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}/libnxml.a %{_libdir}/pkgconfig/nxml.pc %changelog # vim: set sw=3 ts=3 noet: # Local Variables: # mode: rpm-spec # tab-width: 3 # End: