Hello community,

here is the log from the commit of package embryo for openSUSE:Factory checked 
in at 2012-12-28 14:58:49
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/embryo (Old)
 and      /work/SRC/openSUSE:Factory/.embryo.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "embryo", Maintainer is ""

Changes:
--------
--- /work/SRC/openSUSE:Factory/embryo/embryo.changes    2012-12-10 
13:51:51.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.embryo.new/embryo.changes       2012-12-28 
14:58:51.000000000 +0100
@@ -1,0 +2,5 @@
+Thu Dec 20 15:02:06 UTC 2012 - sleep_wal...@suse.cz
+
+- build and package documentation
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ embryo.spec ++++++
--- /var/tmp/diff_new_pack.HRspKV/_old  2012-12-28 14:58:52.000000000 +0100
+++ /var/tmp/diff_new_pack.HRspKV/_new  2012-12-28 14:58:52.000000000 +0100
@@ -24,8 +24,11 @@
 Group:          Development/Tools/Building
 Url:            http://enlightenment.org/
 Source:         %{name}-%{version}.tar.bz2
+BuildRequires:  doxygen
 BuildRequires:  eina-devel >= %version
-BuildRequires:  libtool
+%if 0%{?suse_version}
+BuildRequires:  fdupes
+%endif
 BuildRequires:  pkgconfig
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
@@ -52,15 +55,42 @@
 %description devel
 Development files for embryo. Part of Enlightenment Foundation Libraries.
 
+%package doc-html
+Summary:        HTML documentation of Eet
+Group:          Documentation/HTML
+
+%description doc-html
+Documentation of Eet library in form of HTML pages.
+
 %prep
 %setup -q
 
 %build
+# fake time used for documentation
+FAKE_DOCDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%a %%b %%d 
%%Y')
+FAKE_DOCYEAR=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%Y')
+FAKE_DOCDATETIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%a %%b 
%%d %%Y %T')
+sed -i 
"s/\$datetime/$FAKE_DOCDATETIME/g;s/\$date/$FAKE_DOCDATE/g;s/\$year/$FAKEDOCYEAR/g"
 doc/*.html
+
 %configure --disable-static --disable-silent-rules
 make %{?_smp_mflags}
+make doc
 
 %install
 make install DESTDIR="%buildroot"
+
+# copy documentation manually
+echo "Copying HTML documentation"
+mkdir -p %{buildroot}%{_docdir}/%{name}
+/bin/cp -vr doc/html %{buildroot}%{_docdir}/%{name}
+# fix permissions
+find %{buildroot}%{_docdir} -type f | xargs chmod 0644
+find %{buildroot}%{_docdir} -type d | xargs chmod 0755
+# remove duplicates
+%if 0%{?suse_version}
+%fdupes -s %{buildroot}%{_docdir}
+%endif
+
 find %{buildroot}%{_libdir} -name '*.la' -exec rm -v {} \;
 
 %clean
@@ -84,4 +114,8 @@
 %{_datadir}/embryo/
 %{_libdir}/pkgconfig/embryo.pc
 
+%files doc-html
+%defattr(-, root, root)
+%{_docdir}/%{name}
+
 %changelog

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to