Skip to content

Commit

Permalink
[packaging] Move rpm packaging to master
Browse files Browse the repository at this point in the history
  • Loading branch information
Valerio Valerio committed Jan 22, 2015
1 parent b8c0d8d commit 6ab0c8b
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rpm/libwbxml2.changes
@@ -0,0 +1,5 @@
* Thu Oct 21 2010 Bernd Wachter <ext-bernd.wachter@nokia.com> - 0.10.8
- Fix license

* Wed Jun 23 2010 Bernd Wachter <ext-bernd.wachter@nokia.com> - 0.10.8
- Initial version for MeeGo
62 changes: 62 additions & 0 deletions rpm/libwbxml2.spec
@@ -0,0 +1,62 @@
%define _name libwbxml
Name: libwbxml2
Version: 0.10.8
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)
BuildRequires: expat-devel zlib-devel popt-devel
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: cmake

%description
The WBXML Library (aka 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.


%files
%defattr(-,root,root,-)
%{_bindir}/*
%{_libdir}/*.so.*
%doc %{_docdir}/*

%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}

%description devel
%{summary}.

%files devel
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc


%prep
%setup -q -n %{_name}-%{version}

%build
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make


%install
rm -rf %{buildroot}
make -C build DESTDIR=%{buildroot} install


%clean
rm -rf %{buildroot}


%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

0 comments on commit 6ab0c8b

Please sign in to comment.