diff --git a/abiword.spec b/abiword.spec index 7bc72cb..fa1ef73 100644 --- a/abiword.spec +++ b/abiword.spec @@ -1,4 +1,3 @@ -# tar cjvf ~/rpmbuild/SOURCES/abiword-3.0.0.tar.bz2 abiword-3.0.0/ --exclude=.svn %define majorversion 3 %define minorversion 0 %define microversion 0 @@ -7,7 +6,7 @@ Summary: Word processing program Name: abiword Version: %{majorversion}.%{minorversion}.%{microversion} -Release: 1%{?dist} +Release: 2%{?dist} Epoch: 1 Group: Applications/Editors License: GPLv2+ @@ -34,6 +33,7 @@ BuildRequires: desktop-file-utils BuildRequires: enchant-devel BuildRequires: flex BuildRequires: fribidi-devel +BuildRequires: gobject-introspection-devel BuildRequires: gtk3-devel BuildRequires: gtkmathview-devel BuildRequires: libgsf-devel @@ -49,6 +49,7 @@ BuildRequires: loudmouth-devel BuildRequires: ots-devel BuildRequires: poppler-devel BuildRequires: popt-devel +BuildRequires: python2-devel BuildRequires: readline-devel BuildRequires: t1lib-devel BuildRequires: telepathy-glib-devel @@ -78,6 +79,18 @@ Requires: libabiword = %{epoch}:%{version}-%{release} %description -n libabiword-devel Includes and definitions for developing with libabiword. + +%package -n python-abiword +Summary: Python bindings for developing with libabiword +Group: Development/Libraries +Requires: libabiword = %{epoch}:%{version}-%{release} +Obsoletes: pyabiword <= 0.8.0 +Provides: pyabiword > 0.8.0 + +%description -n python-abiword +Python bindings for developing with libabiword + + %prep # setup abiword %setup -q @@ -93,8 +106,10 @@ Includes and definitions for developing with libabiword. %build # build libabiword and abiword cd $RPM_BUILD_DIR/abiword-%{version} -%configure --enable-plugins --enable-clipart --enable-templates -make %{?_smp_mflags} V=1 +%configure --enable-plugins --enable-clipart --enable-templates --enable-introspection +# Build non SMP due to issues with gobject-introspection builds +# make %{?_smp_mflags} V=1 +make V=1 # build the documentation cd $RPM_BUILD_DIR/abiword-docs-%{version} @@ -142,6 +157,7 @@ update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || : %doc $RPM_BUILD_DIR/%{name}-%{version}/COPYING $RPM_BUILD_DIR/%{name}-%{version}/COPYRIGHT.TXT %{_libdir}/libabiword-%{majorversion}.%{minorversion}.so %{_libdir}/%{name}-%{majorversion}.%{minorversion} +%{_libdir}/girepository-1.0/Abi-3.0.typelib %{_datadir}/%{name}-%{majorversion}.%{minorversion} %{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.AbiCollab.service %{_datadir}/telepathy/clients/AbiCollab.client @@ -151,9 +167,16 @@ update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || : %files -n libabiword-devel %{_includedir}/%{name}-%{majorversion}.%{minorversion} %{_libdir}/pkgconfig/%{name}-%{majorversion}.%{minorversion}.pc +%{_datadir}/gir-1.0/Abi-3.0.gir + +%files -n python-abiword +%{python_sitearch}/* %changelog -* Mon Oct 14 2013 Peter Robinson 1:3.0.0-0.1.svnver +* Mon Oct 14 2013 Peter Robinson 1:3.0.0-2 +- Enable gobject-introspection and python bindings + +* Mon Oct 14 2013 Peter Robinson 1:3.0.0-1 - Update to 3.0.0 stable * Sat Aug 03 2013 Fedora Release Engineering - 1:2.8.6-24