Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'jb24119' into 'master'
Add doc subpackage JB#24119

See merge request mer-core/telepathy-gabble!1
  • Loading branch information
Tomin1 committed Jan 7, 2019
2 parents bb9efe3 + 1ea8911 commit 1a9f607
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions rpm/telepathy-gabble.spec
Expand Up @@ -44,6 +44,15 @@ A Jabber/XMPP connection manager, that handles single and multi-user
chats and voice calls.


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

%description doc
Man pages and other documentation for %{name}.


%package tests
Summary: Tests package for %{name}
Group: Development/Libraries
Expand Down Expand Up @@ -74,50 +83,41 @@ cd ../../..
# 0001-switch-to-using-gireactor-to-work-with-new-gi-based-.patch
%patch5 -p1

# >> setup
%__cp $RPM_SOURCE_DIR/mktests.sh tests/
%__cp $RPM_SOURCE_DIR/INSIGNIFICANT tests/
%__chmod 0755 tests/mktests.sh
%__chmod 0644 tests/INSIGNIFICANT
# << setup

%build
# >> build pre
cd lib/ext/wocky
%autogen --no-configure --disable-gtk-doc
cd ../../..
%autogen --disable-submodules --no-configure
# << build pre

%reconfigure --disable-static \
--enable-installed-tests

make %{?jobs:-j%jobs}

# >> build post
tests/mktests.sh > tests/tests.xml
# << build post

%install
rm -rf %{buildroot}
# >> install pre
# << install pre
%make_install

# >> install post
install -m 0644 tests/tests.xml $RPM_BUILD_ROOT/opt/tests/telepathy-gabble/tests.xml
install -m 0644 tests/INSIGNIFICANT $RPM_BUILD_ROOT/opt/tests/telepathy-gabble/INSIGNIFICANT
install -m 0644 tests/README $RPM_BUILD_ROOT/opt/tests/telepathy-gabble/README
# << install post

install -m 0644 -t $RPM_BUILD_ROOT%{_docdir}/%{name}/ AUTHORS NEWS README

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
# >> files
%doc %{_datadir}/doc/%{name}/*.html
%license COPYING
%{_libexecdir}/%{name}
%{_bindir}/telepathy-gabble-xmpp-console
%{_libdir}/telepathy/gabble-0/lib/libgabble-plugins-*.so
Expand All @@ -128,11 +128,12 @@ install -m 0644 tests/README $RPM_BUILD_ROOT/opt/tests/telepathy-gabble/README
%{_libdir}/telepathy/gabble-0/plugins/libgateways.so
%{_datadir}/dbus-1/services/*.service
%{_datadir}/telepathy/managers/*.manager

%files doc
%defattr(-,root,root,-)
%doc %{_docdir}/%{name}/
%{_mandir}/man8/%{name}.8.gz
# << files

%files tests
%defattr(-,root,root,-)
/opt/tests/%{name}/*
# >> files tests
# << files tests

0 comments on commit 1a9f607

Please sign in to comment.