From 7e88e30e7ee4cac5cab1d084de0e1ce3c7ba4a6f0345d169c91077ccd9ab5ae1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 2 Jul 2014 13:04:50 +0000 Subject: [PATCH] =?UTF-8?q?-=20Install=20manpages.=20Patch=20idea=20by=20C?= =?UTF-8?q?hristoph=20Gr=C3=BCninger.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Install manpages. Patch idea by Christoph Grüninger. OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=162 --- cmake-gui.changes | 5 +++++ cmake-gui.spec | 5 +++++ cmake.changes | 5 +++++ cmake.spec | 9 +++++++++ 4 files changed, 24 insertions(+) diff --git a/cmake-gui.changes b/cmake-gui.changes index 56b14d9..438ef4b 100644 --- a/cmake-gui.changes +++ b/cmake-gui.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jul 2 13:04:33 UTC 2014 - tchvatal@suse.com + +- Install manpages. Patch idea by Christoph Grüninger. + ------------------------------------------------------------------- Sat Jun 21 12:59:23 UTC 2014 - tchvatal@suse.com diff --git a/cmake-gui.spec b/cmake-gui.spec index 4b2a5a8..0bebbc7 100644 --- a/cmake-gui.spec +++ b/cmake-gui.spec @@ -30,6 +30,7 @@ BuildRequires: gcc-c++ BuildRequires: libarchive-devel BuildRequires: libexpat-devel BuildRequires: openssl-devel +BuildRequires: python-sphinx BuildRequires: update-desktop-files BuildRequires: zlib-devel BuildRequires: pkgconfig(bzip2) @@ -57,6 +58,7 @@ export CFLAGS="$CXXFLAGS" --datadir=/share/cmake \ --docdir=/share/doc/packages/cmake \ --mandir=/share/man \ + --sphinx-man \ %if 0%{?suse_version} && !0%{?sles_version} --system-libs \ %else @@ -79,6 +81,8 @@ rm -rf %{buildroot}%{_bindir}/{cpack,cmake,ctest} rm -rf %{buildroot}%{_datadir}/cmake rm -rf %{buildroot}%{_datadir}/aclocal/cmake.m4 rm -rf %{buildroot}%{_docdir}/cmake +rm -rf %{buildroot}%{_mandir}/man7/ +rm -rf %{buildroot}%{_mandir}/man1/{ccmake,cmake,cpack,ctest}.* %files %defattr(-,root,root) @@ -86,5 +90,6 @@ rm -rf %{buildroot}%{_docdir}/cmake %{_datadir}/applications/CMake.desktop %{_datadir}/mime/packages/cmakecache.xml %{_datadir}/pixmaps/CMakeSetup32.png +%{_mandir}/man1/cmake-gui.1.* %changelog diff --git a/cmake.changes b/cmake.changes index 78478e7..e9fe1e6 100644 --- a/cmake.changes +++ b/cmake.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jul 2 13:03:54 UTC 2014 - tchvatal@suse.com + +- Install manpages. Patch idea by Christoph Grüninger. + ------------------------------------------------------------------- Wed Jul 2 08:25:13 UTC 2014 - sleep_walker@suse.cz diff --git a/cmake.spec b/cmake.spec index 2276b88..4ae4a7f 100644 --- a/cmake.spec +++ b/cmake.spec @@ -33,6 +33,7 @@ BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: libexpat-devel BuildRequires: ncurses-devel +BuildRequires: python-sphinx BuildRequires: zlib-devel Requires: make BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -57,6 +58,7 @@ export CFLAGS="$CXXFLAGS" --datadir=/share/%{name} \ --docdir=/share/doc/packages/%{name} \ --mandir=/share/man \ + --sphinx-man \ --system-libs \ --no-system-curl \ %if 0%{?suse_version} <= 1110 @@ -78,6 +80,8 @@ install -m644 %{SOURCE2} -D %{buildroot}%{_datadir}/cmake/Modules/opensuse_rules sed -i \ -e 's:OPTFLAGS:%{optflags}:g' \ %{buildroot}%{_datadir}/cmake/Modules/opensuse_rules.cmake +# manpage for gui is in different spec +rm %{buildroot}%{_mandir}/man1/cmake-gui.* %fdupes %{buildroot}%{_datadir}/cmake @@ -93,5 +97,10 @@ sed -i \ %dir %{_datadir}/aclocal %{_datadir}/aclocal/cmake.m4 %doc %{_docdir}/%{name} +%{_mandir}/man1/ccmake.1.* +%{_mandir}/man1/cmake.1.* +%{_mandir}/man1/cpack.1.* +%{_mandir}/man1/ctest.1.* +%{_mandir}/man7/*.7.* %changelog