Hello community, here is the log from the commit of package eina for openSUSE:Factory checked in at 2012-12-28 14:58:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/eina (Old) and /work/SRC/openSUSE:Factory/.eina.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "eina", Maintainer is "" Changes: -------- --- /work/SRC/openSUSE:Factory/eina/eina.changes 2012-12-10 13:47:17.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.eina.new/eina.changes 2012-12-28 14:58:44.000000000 +0100 @@ -1,0 +2,5 @@ +Wed Dec 19 21:20:40 UTC 2012 - [email protected] + +- build documentation + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ eina.spec ++++++ --- /var/tmp/diff_new_pack.6HcwEz/_old 2012-12-28 14:58:45.000000000 +0100 +++ /var/tmp/diff_new_pack.6HcwEz/_new 2012-12-28 14:58:45.000000000 +0100 @@ -24,8 +24,12 @@ Group: Development/Libraries/C and C++ Url: http://enlightenment.org/ Source: %{name}-%{version}.tar.bz2 +BuildRequires: doxygen BuildRequires: libtool BuildRequires: pkgconfig +%if 0%{?suse_version} +BuildRequires: fdupes +%endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -46,10 +50,30 @@ %description devel Headers, static libraries, test programs and documentation for eina +%package doc-html +Summary: HTML documentation of Eina +Group: Documentation/HTML + +%description doc-html +Documentation of Eina library in form of HTML pages. + +%package doc-man +Summary: Man documentation of Eina +Group: Documentation/Man + +%description doc-man +Documentation of Eina library in form of man 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 + # remove __DATE__ and __TIME__ FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%H:%%M') FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y') @@ -59,9 +83,24 @@ --disable-static \ --enable-doc make %{?_smp_mflags} +make doc %install -%makeinstall +make install DESTDIR="%buildroot" +# copy documentation manually +echo "Copying HTML documentation" +mkdir -p %{buildroot}%{_docdir}/%{name} +/bin/cp -vr doc/html %{buildroot}%{_docdir}/%{name} +echo "Copying MAN pages" +/bin/cp -vr doc/man/ %{buildroot}%{_mandir}/ +# fix line endings +find %{buildroot}%{_docdir} -name '*.eps' | xargs sed -i 's@\r@\n@g' +# remove duplicates +%if 0%{?suse_version} +%fdupes -s %{buildroot}%{_docdir} +%fdupes -s %{buildroot}%{_mandir} +%endif + find %{buildroot}%{_libdir} -name '*.la' -exec rm -v {} \; %clean @@ -81,4 +120,12 @@ %{_libdir}/pkgconfig/eina.pc %{_libdir}/libeina.so +%files doc-html +%defattr(-, root, root) +%{_docdir}/%{name} + +%files doc-man +%defattr(-, root, root) +%{_mandir}/*/* + %changelog -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
