[ldc] Add devhelp book

MERCIER Jonathan bioinfornatics at fedoraproject.org
Fri Dec 9 13:34:45 UTC 2011


commit 528be0781a757f9b515b6ba9c70bca2b0cf9c9b9
Author: Jonathan MERCIER <bioinfornatics at gmail.com>
Date:   Fri Dec 9 14:34:41 2011 +0100

    Add devhelp book

 .gitignore |    1 +
 ldc.spec   |   25 +++++++++++++++++++++++++
 sources    |    2 ++
 3 files changed, 28 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 2467c60..b656713 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,3 +16,4 @@ ldc-20100804hg1655.tar.xz
 /ldc-phobos-20111206git2bebc8f.xz
 /ldc-20111206gitfa5fb92.xz
 /ldc-druntime-20111206git24e79c6.xz
+/DdocToDevhelp
diff --git a/ldc.spec b/ldc.spec
index ce5ffe1..3cb6d87 100644
--- a/ldc.spec
+++ b/ldc.spec
@@ -35,6 +35,7 @@ Source0:        %{name}-%{alphatag}.xz
 Source1:        %{name}-phobos-%{phobostag}.xz
 Source2:        %{name}-druntime-%{druntimetag}.xz
 Source3:        macros.%{name}
+Source4:        DdocToDevhelp
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  llvm-devel >= 3.0
@@ -152,6 +153,21 @@ Enable autocompletion for phobos library in geany (IDE)
 %description -l fr phobos-geany-tags
 Active l'autocompletion pour pour la bibliothèque phobos dans geany (IDE)
 
+%package phobos-devhelp
+Summary:        Phobos user and reference manuals
+Group:          Development/Tools
+Requires:       %{name} =  %{version}-%{release}
+BuildRequires:  python
+Requires:       devhelp
+
+%description phobos-devhelp
+User Manual and Reference, Manual are provided in HTML format. You can use
+devhelp to browse it.
+
+%description -l fr phobos-devhelp
+Manuel et référence, le manuel est fournit au format HTML. Vous pouez utilisez
+devhelp pour le parcourir
+
 %prep
 %setup -q -n %{name}-%{alphatag}
 %setup -q -T -D -a 1 -n %{name}-%{alphatag}
@@ -175,10 +191,12 @@ make %{?_smp_mflags} install DESTDIR=%{buildroot}
 mkdir -p %{buildroot}/%{_sysconfdir}/rpm
 mkdir -p %{buildroot}/%{_includedir}/d/ldc
 mkdir -p %{buildroot}/%{_datadir}/geany/tags/
+mkdir -p %{buildroot}/%{_datadir}/devhelp/books/Phobos
 # macros for D package
 install --mode=0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/rpm/macros.ldc
 # geany tags
 install -m0755 phobos.d.tags %{buildroot}/%{_datadir}/geany/tags/
+%{SOURCE4} -n Phobos -s %{buildroot}/%{_includedir}/d/std/ -p %{buildroot}/%{_datadir}
 
 %clean
 rm -rf %{buildroot}
@@ -225,7 +243,14 @@ rm -rf %{buildroot}
 %defattr(-,root,root,-)
 %{_datadir}/geany/tags/phobos.d.tags
 
+%files phobos-devhelp
+%defattr(-,root,root,-)
+%{_datadir}/devhelp/books/Phobos
+
 %changelog
+* Fri Dec 9 2011  Jonathan MERCIER <bioinfornatics at fedoraproject.org> - 2-9.20111206gitfa5fb92
+- Add doc for devhelp
+
 * Wed Dec 6 2011  Jonathan MERCIER <bioinfornatics at fedoraproject.org> - 2-8.20111206gitfa5fb92
 - Put %%{_d_includedir}/core into druntime-devel package
 
diff --git a/sources b/sources
index 3f8f7d2..c50f1d1 100644
--- a/sources
+++ b/sources
@@ -1,3 +1,5 @@
 9a95822ae7fefb6c266fd6e96c661dd3  ldc-phobos-20111206git2bebc8f.xz
 d33f4c6fa8996369713f78b61ce07cf6  ldc-20111206gitfa5fb92.xz
 76175ce1c81e0de72618f52424d6ef56  ldc-druntime-20111206git24e79c6.xz
+09e2ccacb217ee9a84b2d68a07e14250  DdocToDevhelp
+2207fd2545a5fc62c93e3ba72c89c4ca  macros.ldc


More information about the scm-commits mailing list