Hello community, here is the log from the commit of package presage for openSUSE:Factory checked in at 2012-09-17 01:29:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/presage (Old) and /work/SRC/openSUSE:Factory/.presage.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "presage", Maintainer is "" Changes: -------- --- /work/SRC/openSUSE:Factory/presage/presage.changes 2012-08-05 15:21:23.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.presage.new/presage.changes 2012-09-17 01:29:23.000000000 +0200 @@ -1,0 +2,5 @@ +Thu Sep 13 22:15:43 UTC 2012 - [email protected] + +- support fedora builds. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ presage.spec ++++++ --- /var/tmp/diff_new_pack.2pJ1zb/_old 2012-09-17 01:29:24.000000000 +0200 +++ /var/tmp/diff_new_pack.2pJ1zb/_new 2012-09-17 01:29:24.000000000 +0200 @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%define py_ver %(python -c "import sys; v=sys.version_info[:2]; print '%%d.%%d'%%v" 2>/dev/null || echo PYTHON-NOT-FOUND) Name: presage Version: 0.8.8 @@ -24,14 +25,29 @@ Url: http://presage.sourceforge.net Group: Productivity/Text/Utilities Source: %{name}-%{version}.tar.gz +%if 0%{?suse_version} BuildRequires: dbus-1-python-devel BuildRequires: dbus-1-glib-devel +BuildRequires: sqlite3-devel +BuildRequires: libcppunit-devel +%if 0%{?suse_version} >= 1220 +BuildRequires: libXevie-devel +%else +BuildRequires: xorg-x11-libXv-devel +%endif +BuildRequires: update-desktop-files +%else +BuildRequires: dbus-python-devel +BuildRequires: dbus-glib-devel +BuildRequires: sqlite-devel +BuildRequires: cppunit-devel +BuildRequires: libXevie-devel +BuildRequires: desktop-file-utils +%endif BuildRequires: fdupes BuildRequires: gcc-c++ -BuildRequires: sqlite3-devel BuildRequires: python-devel BuildRequires: ncurses-devel -BuildRequires: libcppunit-devel BuildRequires: swig BuildRequires: doxygen BuildRequires: graphviz @@ -39,12 +55,6 @@ BuildRequires: libcmuclmtk-devel BuildRequires: libgnome-devel BuildRequires: help2man -%if 0%{?suse_version} >= 1220 -BuildRequires: libXevie-devel -%else -BuildRequires: xorg-x11-libXv-devel -%endif -BuildRequires: update-desktop-files BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -161,7 +171,6 @@ pyprompter displays predictions in a contextual pop-up box as each letter is typed. Predictions can be easily selected and inserted in the document. - %prep %setup -q @@ -171,11 +180,13 @@ make %{?_smp_mflags} %install -%makeinstall +make install DESTDIR=%{buildroot} rm -rf %{buildroot}%{_libdir}/*.a rm -rf %{buildroot}%{_libdir}/*.la +%if 0%{?suse_version} + pushd %{buildroot}%{python_sitelib}/prompter/ %py_compile . popd @@ -188,6 +199,17 @@ %fdupes %{buildroot} +%else + +desktop-file-install --add-category="Utility" --delete-original --dir=%{buildroot}%{_datadir}/applications \ +%{buildroot}/%{_datadir}/applications/gprompter.desktop +desktop-file-install --add-category="Utility" --delete-original --dir=%{buildroot}%{_datadir}/applications \ +%{buildroot}/%{_datadir}/applications/pyprompter.desktop + +fdupes -n -q -r %{buildroot} + +%endif + %post -n libpresage1 -p /sbin/ldconfig %postun -n libpresage1 -p /sbin/ldconfig @@ -195,11 +217,13 @@ %files %defattr(-,root,root) %doc AUTHORS ChangeLog NEWS README COPYING THANKS TODO -#%{_bindir}/presage_demo +%if 0%{?fedora_version} +%{_bindir}/presage_demo +%{_mandir}/man1/presage_demo.1.gz +%endif %{_bindir}/presage_demo_text %{_bindir}/presage_simulator %{_bindir}/text2ngram -#%{_mandir}/man1/presage_demo.1.gz %{_mandir}/man1/presage_demo_text.1.gz %{_mandir}/man1/presage_simulator.1.gz %{_mandir}/man1/text2ngram.1.gz @@ -256,6 +280,9 @@ %{python_sitearch}/_presage.so %{python_sitearch}/presage.py %{python_sitearch}/presage.pyc +%if 0%{?fedora_version} +%{python_sitearch}/presage.pyo +%endif %{python_sitearch}/python_presage-%{version}-py%{py_ver}.egg-info %{_mandir}/man1/presage_python_demo.1.gz -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
