Skip to content

Commit

Permalink
[packaging] Add libwbxml2-doc subpackage. Contributes to JB#24119
Browse files Browse the repository at this point in the history
Signed-off-by: Tomi Leppänen <tomi.leppanen@jolla.com>
  • Loading branch information
Tomin1 committed Jan 21, 2019
1 parent 3f47bb3 commit 0525203
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions rpm/libwbxml2.spec
@@ -1,5 +1,5 @@
Name: libwbxml2
Version: 0.10.8+git2
Version: 0.10.8
Release: 1
Summary: Library to parse, encode and handle WBXML documents
Group: System/Libraries
Expand All @@ -15,12 +15,11 @@ 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,-)
%license COPYING GNU-LGPL
%{_bindir}/*
%{_libdir}/*.so.*
%doc %{_docdir}/*

%package devel
Summary: Development files for %{name}
Expand All @@ -36,6 +35,17 @@ Requires: %{name} = %{version}-%{release}
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

%package doc
Summary: Documentation for %{name}
Group: Documentation
Requires: %{name} = %{version}-%{release}

%description doc
%{summary}.

%files doc
%defattr(-,root,root,-)
%{_docdir}/%{name}-%{version}

%prep
%setup -q -n %{name}-%{version}
Expand All @@ -46,12 +56,13 @@ cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make


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

mv %{buildroot}%{_docdir}/* %{buildroot}%{_docdir}/%{name}-%{version}

%clean
rm -rf %{buildroot}

Expand Down

0 comments on commit 0525203

Please sign in to comment.