From 66c2f496354633b46ca057ba2e12ef046c78677e Mon Sep 17 00:00:00 2001 From: Kim Kibum Date: Sun, 29 Apr 2012 17:01:31 +0900 Subject: [PATCH] upload tizen1.0 source --- packaging/libwbxml2.spec | 42 ++++++++++++++++++++++++++-------------- 1 file changed, 28 insertions(+), 14 deletions(-) mode change 100644 => 100755 packaging/libwbxml2.spec diff --git a/packaging/libwbxml2.spec b/packaging/libwbxml2.spec old mode 100644 new mode 100755 index dae79aa..209d385 --- a/packaging/libwbxml2.spec +++ b/packaging/libwbxml2.spec @@ -1,7 +1,7 @@ %define _name libwbxml Name: libwbxml2 Version: 0.11.0 -Release: 1 +Release: 10 Summary: Library to parse, encode and handle WBXML documents Group: System/Libraries License: LGPLv2.1 @@ -17,7 +17,6 @@ is a binary representation of XML, defined by the Wap Forum, and used to reduce bandwidth in mobile communications. - %package devel Summary: Development files for %{name} Group: Development/Libraries @@ -26,38 +25,53 @@ Requires: %{name} = %{version}-%{release} %description devel %{summary}. -%files devel -%defattr(-,root,root,-) -%{_includedir}/* -%{_libdir}/*.so -%{_libdir}/pkgconfig/*.pc +%package utils +Summary: Binary XML utilities %{name}-utils +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +%description utils +This package is libwbxml2-utils pkg for libwbxml2 %prep -%setup -q -n %{name}-%{version} - +%setup -q +mkdir build %build -mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=/usr .. -make +make %{?jobs:-j%jobs} %install rm -rf %{buildroot} -make -C build DESTDIR=%{buildroot} install +cd build +%make_install +%clean +cd build +rm -rf %{buildroot} -%post -p /sbin/ldconfig +%post -p /sbin/ldconfig %postun -p /sbin/ldconfig - %files %defattr(-,root,root,-) %{_bindir}/* %{_libdir}/*.so.* %doc %{_docdir}/* + +%files devel +%defattr(-,root,root,-) +/usr/include/libwbxml-1.0/wbxml/*.h +/usr/include/wbxml_config.h +/usr/lib/libwbxml2.so +/usr/lib/pkgconfig/libwbxml2.pc + +%files utils +%defattr(-,root,root,-) +%{_bindir}/* + -- 2.34.1