From 59af77cd1977f0574bd22fdf8dbe3035b205131f Mon Sep 17 00:00:00 2001 From: Yan Yin Date: Wed, 14 Mar 2012 14:05:58 +0800 Subject: [PATCH] update for beta universally --- packaging/libwbxml2.spec | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) mode change 100755 => 100644 packaging/libwbxml2.spec diff --git a/packaging/libwbxml2.spec b/packaging/libwbxml2.spec old mode 100755 new mode 100644 index 942d403..dae79aa --- a/packaging/libwbxml2.spec +++ b/packaging/libwbxml2.spec @@ -1,12 +1,11 @@ %define _name libwbxml Name: libwbxml2 -Version: 0.10.8 +Version: 0.11.0 Release: 1 Summary: Library to parse, encode and handle WBXML documents Group: System/Libraries License: LGPLv2.1 -Source0: %{_name}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Source0: %{name}-%{version}.tar.gz BuildRequires: expat-devel zlib-devel popt-devel BuildRequires: pkgconfig(libxml-2.0) BuildRequires: cmake @@ -18,11 +17,6 @@ is a binary representation of XML, defined by the Wap Forum, and used to reduce bandwidth in mobile communications. -%files -%defattr(-,root,root,-) -%{_bindir}/* -%{_libdir}/*.so.* -%doc %{_docdir}/* %package devel Summary: Development files for %{name} @@ -40,11 +34,11 @@ Requires: %{name} = %{version}-%{release} %prep -%setup -q -n %{_name}-%{version} -mkdir build +%setup -q -n %{name}-%{version} %build +mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=/usr .. make @@ -55,9 +49,15 @@ rm -rf %{buildroot} make -C build DESTDIR=%{buildroot} install -%clean -rm -rf %{buildroot} - %post -p /sbin/ldconfig + %postun -p /sbin/ldconfig + + + +%files +%defattr(-,root,root,-) +%{_bindir}/* +%{_libdir}/*.so.* +%doc %{_docdir}/* -- 2.34.1