!1 package init

Merge pull request !1 from wang_yue111/master
This commit is contained in:
openeuler-ci-bot 2020-07-24 20:12:28 +08:00 committed by Gitee
commit 99c6bfbef3
3 changed files with 82 additions and 0 deletions

BIN
libwbxml-0.11.7.tar.gz Normal file

Binary file not shown.

77
libwbxml.spec Normal file
View File

@ -0,0 +1,77 @@
Name: libwbxml
Version: 0.11.7
Release: 1
Summary: Library and tools to parse, encode and handle WBXML documents
License: LGPLv2+
URL: https://github.com/%{name}/%{name}
Source: %{url}/archive/%{name}-%{version}.tar.gz
BuildRequires: cmake >= 2.4 coreutils expat-devel gcc make pkgconfig(check) perl-interpreter
Obsoletes: wbxml2 <= 0.9.3
%description
The WBXML Library (libwbxml) contains a library and its associated tools to
parse, encode and handle WBXML documents. The WBXML format is a binary
representation of XML, defined by the Wap Forum, and used to reduce
bandwidth in mobile communications.
%package devel
Summary: Development files of %{name}
Requires: %{name}%{?_isa} = %{version}-%{release} pkgconfig
Provides: wbxml2-devel = %{version}-%{release}
Obsoletes: wbxml2-devel <= 0.9.3
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q -n %{name}-%{name}-%{version}
%build
mkdir -p %{_target_platform}
pushd %{_target_platform}
%cmake \
-DBUILD_SHARED_LIBS:BOOL=ON \
-DBUILD_STATIC_LIBS:BOOL=OFF \
-DENABLE_INSTALL_DOC:BOOL=OFF \
-DENABLE_UNIT_TEST:BOOL=ON \
-DWBXML_ENCODER_USE_STRTBL:BOOL=ON \
-DWBXML_INSTALL_FULL_HEADERS:BOOL=OFF \
-DWBXML_LIB_VERBOSE:BOOL=OFF \
-DWBXML_SUPPORT_AIRSYNC:BOOL=ON \
-DWBXML_SUPPORT_CO:BOOL=ON \
-DWBXML_SUPPORT_CONML=ON \
-DWBXML_SUPPORT_DRMREL:BOOL=ON \
-DWBXML_SUPPORT_EMN:BOOL=ON \
-DWBXML_SUPPORT_OTA_SETTINGS:BOOL=ON \
-DWBXML_SUPPORT_PROV:BOOL=ON \
-DWBXML_SUPPORT_SI:BOOL=ON \
-DWBXML_SUPPORT_SL:BOOL=ON \
-DWBXML_SUPPORT_SYNCML:BOOL=ON \
-DWBXML_SUPPORT_WML:BOOL=ON \
-DWBXML_SUPPORT_WTA:BOOL=ON \
-DWBXML_SUPPORT_WV:BOOL=ON \
..
popd
%{make_build} -C %{_target_platform}
%install
make %{?_smp_mflags} -C %{_target_platform} install/fast DESTDIR=$RPM_BUILD_ROOT
%check
cd %{_target_platform}
ctest %{?_smp_mflags}
%files
%license COPYING GNU-LGPL
%doc BUGS ChangeLog README References THANKS TODO
%{_bindir}/*
%{_libdir}/libwbxml2.so.*
%files devel
%{_datadir}/cmake
%{_includedir}/*
%{_libdir}/libwbxml2.so
%{_libdir}/pkgconfig/libwbxml2.pc
%changelog
* Thu Jul 23 2020 wangyue <wangyue92@huawei.com> - 0.11.7-1
- package init

5
libwbxml.yaml Normal file
View File

@ -0,0 +1,5 @@
git_url: https://github.com/libwbxml/libwbxml
version_control: github
src_repo: libwbxml/libwbxml
tag_prefix: "libwbxml-"
seperator: "."