File wbxml2.spec of Package wbxml2
#
# spec file for package wbxml2 (Version 0.10.7)
#
# Copyright (c) 2009 SUSE LINUX Products 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/
#
# norootforbuild
%define libname libwbxml2-0
Name: wbxml2
BuildRequires: cmake gcc-c++ libexpat-devel popt-devel zlib-devel
Url: http://libwbxml.opensync.org/
License: LGPL v2.1 or later
Group: System/Libraries
Summary: WBXML parser and compiler library
Version: 0.10.7
Release: 2
Source: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
wbxml2 is a library that includes a WBXML parser and a WBXML compiler.
Unlike wbxml, it does not depend on libxml2 but on expat, making it
faster and more portable. WBXML Library contains a library and its
associated tools to Parse, Encode and Handle WBXML documents. The WBXML
(Wireless Binary XML) format is a binary representation of XML, and it
has been defined by the Wap Forum.
Authors:
--------
Main Developper:
Aymerick Jéhanne <libwbxml@aymerick.com>
Tester:
Benedykt Kroplewski <benedykt@sapek.net>
Autotools Mentor:
Pau Aliagas <pau@newtral.com>
%package -n libwbxml2-0
License: LGPL v2.1 or later
Summary: WBXML parser and compiler library
Group: System/Libraries
%description -n libwbxml2-0
wbxml2 is a library that includes a WBXML parser and a WBXML compiler.
Unlike wbxml, it does not depend on libxml2 but on expat, making it
faster and more portable. WBXML Library contains a library and its
associated tools to Parse, Encode and Handle WBXML documents. The WBXML
(Wireless Binary XML) format is a binary representation of XML, and it
has been defined by the Wap Forum.
Authors:
--------
Main Developper:
Aymerick Jéhanne <libwbxml@aymerick.com>
Tester:
Benedykt Kroplewski <benedykt@sapek.net>
Autotools Mentor:
Pau Aliagas <pau@newtral.com>
%package -n wbxml2-tools
License: GPL v2 or later
Summary: Tools for libwbxml2
Group: Productivity/Other
Requires: %{libname} = %{version}
Obsoletes: wbxml2
Provides: wbxml2
%description -n wbxml2-tools
wbxml2 is a library that includes a WBXML parser and a WBXML compiler.
Unlike wbxml, it does not depend on libxml2 but on expat, making it
faster and more portable. WBXML Library contains a library and its
associated tools to Parse, Encode and Handle WBXML documents. The WBXML
(Wireless Binary XML) format is a binary representation of XML, and it
has been defined by the Wap Forum.
Authors:
--------
Main Developper:
Aymerick Jéhanne <libwbxml@aymerick.com>
Tester:
Benedykt Kroplewski <benedykt@sapek.net>
Autotools Mentor:
Pau Aliagas <pau@newtral.com>
%package -n libwbxml2-devel
License: LGPL v2.1 or later
Summary: WBXML parser and compiler library
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version} glibc-devel libexpat-devel
%description -n libwbxml2-devel
wbxml2 is a library that includes a WBXML parser and a WBXML compiler.
Unlike wbxml, it does not depend on libxml2 but on expat, making it
faster and more portable. WBXML Library contains a library and its
associated tools to Parse, Encode and Handle WBXML documents. The WBXML
(Wireless Binary XML) format is a binary representation of XML, and it
has been defined by the Wap Forum.
Authors:
--------
Main Developper:
Aymerick Jéhanne <libwbxml@aymerick.com>
Tester:
Benedykt Kroplewski <benedykt@sapek.net>
Autotools Mentor:
Pau Aliagas <pau@newtral.com>
%prep
%setup -q
%build
%__mkdir build
pushd build
CFLAGS="%{optflags}" \
CXXFLAGS="%{optflags}" \
cmake \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DENABLE_INSTALL_DOC:BOOL=OFF \
%if %{_lib} == lib64
-DLIB_SUFFIX=64 \
%endif
%{_builddir}/%{name}-%{version}
%__make %{?jobs:-j%jobs} VERBOSE=1
popd
%install
pushd build
%makeinstall
popd
%clean
%__rm -rf %{buildroot}
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files -n %{libname}
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README References TODO
%{_libdir}/libwbxml2.so.0*
%files -n libwbxml2-devel
%defattr(-,root,root)
%{_libdir}/pkgconfig/libwbxml2.pc
%{_libdir}/libwbxml2.so
%{_prefix}/include/wbxml*
%files -n wbxml2-tools
%defattr(-,root,root)
%{_prefix}/bin/wbxml2xml
%{_prefix}/bin/xml2wbxml
%changelog