commit evas for openSUSE:Factory
Hello community, here is the log from the commit of package evas for openSUSE:Factory checked in at 2012-12-28 14:59:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/evas (Old) and /work/SRC/openSUSE:Factory/.evas.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "evas", Maintainer is "" Changes: -------- --- /work/SRC/openSUSE:Factory/evas/evas.changes 2012-12-10 13:52:04.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.evas.new/evas.changes 2012-12-28 14:59:35.000000000 +0100 @@ -1,0 +2,5 @@ +Thu Dec 20 00:00:36 UTC 2012 - sleep_walker@suse.cz + +- build documentation + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ evas.spec ++++++ --- /var/tmp/diff_new_pack.2U1ZMp/_old 2012-12-28 14:59:36.000000000 +0100 +++ /var/tmp/diff_new_pack.2U1ZMp/_new 2012-12-28 14:59:36.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package evas # -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,16 +15,18 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + Name: evas Version: 1.7.3 Release: 0 -License: BSD-2-Clause Summary: Canvas and scenegraph rendering library -Url: http://enlightenment.org/ +License: BSD-2-Clause Group: Development/Libraries/C and C++ +Url: http://enlightenment.org/ Source: %{name}-%{version}.tar.bz2 BuildRequires: Mesa-devel BuildRequires: SDL-devel +BuildRequires: doxygen BuildRequires: eet-devel >= %version BuildRequires: eina-devel >= %version BuildRequires: fontconfig-devel @@ -40,6 +42,9 @@ BuildRequires: xorg-x11-libX11-devel BuildRequires: xorg-x11-libXext-devel BuildRequires: xorg-x11-libxcb-devel +%if 0%{?suse_version} +BuildRequires: fdupes +%endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -77,16 +82,29 @@ Headers, static libraries, test programs and documentation for evas %package modules -Summary: Evas headers, static libraries, documentation and test programs +Summary: Evas modules Group: Development/Libraries/C and C++ %description modules -Headers, static libraries, test programs and documentation for evas +Evas modules containing loader, savers and engines. + +%package doc-html +Summary: HTML documentation of Evas +Group: Documentation/HTML + +%description doc-html +Documentation of Evas 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 + %if 0%{?sles_version} >= 10 # old gcc without intristic %configure --disable-static --disable-cpu-sse3 --enable-image-loader-generic --enable-software-16-x11 @@ -94,10 +112,27 @@ %configure --disable-static --enable-image-loader-generic --enable-image-loader-svg --enable-software-16-x11 %endif 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} +# fix line endings +find %{buildroot}%{_docdir} -name '*.eps' | xargs sed -i 's@\r@\n@g' +# 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 {} \; + if [ /usr/lib != %{_libexecdir} ] && [ -e %{buildroot}%{_prefix}/lib/dummy_slave ]; then mv %{buildroot}%{_prefix}/lib/evas* %{buildroot}%{_prefix}/lib/dummy_slave %{buildroot}%{_libexecdir} fi @@ -144,4 +179,8 @@ %{_libexecdir}/evas_* %{_libexecdir}/dummy_slave +%files doc-html +%defattr(-, root, root) +%{_docdir}/%{name} + %changelog -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@hilbert.suse.de