X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=glom.spec;h=192e0d58eae9c4104a15b25e290232a265a1e8c6;hb=6c5f791;hp=983425d5be2773ea6a4e4baff82119ac5b2c2012;hpb=c0d9696b043a0f71e885064cce3ce5d019f765d6;p=packages%2Fglom.git diff --git a/glom.spec b/glom.spec index 983425d..192e0d5 100644 --- a/glom.spec +++ b/glom.spec @@ -1,41 +1,67 @@ Summary: A user-friendly database environment Summary(pl.UTF-8): Przyjazne użytkownikowi środowisko bazodanowe Name: glom -Version: 1.6.2 -Release: 0.1 +Version: 1.30.4 +Release: 4 License: GPL v2 -Group: Applications -Source0: http://ftp.gnome.org/pub/GNOME/sources/glom/1.6/%{name}-%{version}.tar.bz2 -# Source0-md5: 5c3da040cbfc16ffd6fca5983f8e3aca -Patch0: %{name}-desktop.patch -Patch1: %{name}-python25-64bit.patch +Group: X11/Applications +Source0: http://ftp.gnome.org/pub/GNOME/sources/glom/1.30/%{name}-%{version}.tar.xz +# Source0-md5: 6f4d3b906e6563798c199517e78edaf7 URL: http://www.glom.org/ -BuildRequires: autoconf -BuildRequires: automake -BuildRequires: bakery-devel >= 2.4.0 -BuildRequires: gnome-doc-utils >= 0.8.0 -BuildRequires: gnome-vfsmm-devel >= 2.16.0 -BuildRequires: gtkmm-devel >= 2.10.5 -BuildRequires: gtksourceview-devel >= 1.0 -BuildRequires: goocanvas-devel -BuildRequires: intltool +BuildRequires: autoconf >= 2.63 +BuildRequires: automake >= 1:1.10 +BuildRequires: boost-devel +BuildRequires: boost-python3-devel +BuildRequires: evince-devel >= 3.0 +BuildRequires: gettext-tools >= 0.17 +BuildRequires: glibmm-devel >= 2.46.1 +BuildRequires: goocanvas2-devel >= 2.0.1 +BuildRequires: goocanvasmm2-devel >= 1.90.11 +BuildRequires: gtkmm3-devel >= 3.18.0 +BuildRequires: gtksourceviewmm3-devel >= 3.18.0 +BuildRequires: intltool >= 0.36.0 BuildRequires: iso-codes -BuildRequires: libgdamm3-devel -BuildRequires: libgnome-devel >= 2.16.0 -BuildRequires: libgnomecanvasmm-devel >= 2.16.0 -BuildRequires: libgtksourceviewmm2-devel -BuildRequires: libtool +BuildRequires: libarchive-devel >= 3.0 +BuildRequires: libepc-devel >= 0.4.0 +BuildRequires: libgda5-devel >= 5.2.1 +BuildRequires: libgdamm5-devel >= 4.99.10 +BuildRequires: libstdc++-devel +BuildRequires: libtool >= 2:2.2.0 +BuildRequires: libxml++2-devel >= 2.24.0 BuildRequires: libxslt-devel >= 1.1.17 -BuildRequires: postgresql-devel -BuildRequires: python-gnome-extras-gda-devel >= 2.14.2-4 -BuildRequires: python-pygtk-devel >= 2:2.10.3 -Requires(post,postun): /sbin/ldconfig -Requires(post,postun): gtk+2 +BuildRequires: mm-common >= 0.9.5 +BuildRequires: pkgconfig +BuildRequires: pkgconfig(libgda-mysql-5.0) +BuildRequires: pkgconfig(libgda-postgres-5.0) +BuildRequires: pkgconfig(libgda-sqlite-5.0) +BuildRequires: python3-devel >= 1:3.2 +BuildRequires: python3-pygobject3-devel >= 2.29.0 +BuildRequires: rpmbuild(find_lang) >= 1.23 +BuildRequires: rpmbuild(macros) >= 1.311 +BuildRequires: sphinx-pdg +BuildRequires: tar >= 1:1.22 +BuildRequires: xz +Requires(post,postun): desktop-file-utils +Requires(post,postun): gtk-update-icon-cache Requires(post,postun): hicolor-icon-theme -Requires(post,postun): scrollkeeper Requires(post,postun): shared-mime-info -Requires: python-gnome-extras-gda >= 2.14.2-4 -%pyrequires_eq python-modules +Requires: evince >= 3.0 +Requires: glibmm >= 2.46.1 +Requires: goocanvas2 >= 2.0.1 +Requires: goocanvasmm2 >= 1.90.11 +Requires: gtkmm3 >= 3.18.0 +Requires: gtksourceviewmm3 >= 3.18.0 +Requires: iso-codes +Requires: libepc >= 0.4.0 +Requires: libgda5 >= 5.2.1 +Requires: libgdamm5 >= 4.99.10 +Requires: libxml++2 >= 2.24.0 +Requires: libxslt >= 1.1.17 +Requires: python3-modules >= 1:3.2 +Requires: python3-pygobject3 >= 2.29.0 +Suggests: libgda5-provider-mysql >= 5.2.1 +Suggests: libgda5-provider-postgres >= 5.2.1 +Suggests: libgda5-provider-sqlite >= 5.2.1 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -45,24 +71,62 @@ Glom is an easy-to-use database designer and user interface. Glom jest łatwym w użyciu programem do projektowania baz danych oraz interfejsem użytkownika. +%package devel +Summary: Header files for Glom library +Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Glom +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +Header files for Glom library. + +%description devel -l pl.UTF-8 +Pliki nagłówkowe biblioteki Glom. + +%package apidocs +Summary: API documentation for Glom library and its Python binding +Summary(pl.UTF-8): Dokumentacja API biblioteki Glom i jej wiązań do Pythona +Group: Documentation +%if "%{_rpmversion}" >= "5" +BuildArch: noarch +%endif + +%description apidocs +API documentation for Glom library and its Python binding. + +%description apidocs -l pl.UTF-8 +Dokumentacja API biblioteki Glom i jej wiązań do Pythona. + +%package examples +Summary: Examples for Glom +Summary(pl.UTF-8): Przykłady dla Gloma +Group: Documentation + +%description examples +Examples for Glom. + +%description examples -l pl.UTF-8 +Przykłady dla Gloma. + %prep %setup -q -%patch0 -p1 -#%patch1 -p1 %build -%{__gnome_doc_prepare} -%{__glib_gettextize} +%{__gettextize} %{__intltoolize} %{__libtoolize} %{__aclocal} -I macros -%{__autoheader} %{__autoconf} +%{__autoheader} %{__automake} %configure \ + PYTHON="%{__python3}" \ + --disable-silent-rules \ --disable-static \ --disable-update-mime-database \ - --disable-scrollkeeper \ + --enable-mysql \ + --enable-sqlite \ + --with-mysql-utils=%{_bindir} \ --with-postgres-utils=%{_bindir} %{__make} @@ -72,9 +136,11 @@ rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT -rm -f $RPM_BUILD_ROOT%{_libdir}/*.la -rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.la -rm -rf $RPM_BUILD_ROOT%{_datadir}/mime-info +%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la +%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/*.la + +install -d $RPM_BUILD_ROOT%{_examplesdir} +cp -pr examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} %find_lang %{name} --with-gnome @@ -83,29 +149,47 @@ rm -rf $RPM_BUILD_ROOT %post /sbin/ldconfig +%update_desktop_database_post %update_mime_database %update_icon_cache hicolor -%scrollkeeper_update_post %postun /sbin/ldconfig +%update_desktop_database_postun %update_mime_database %update_icon_cache hicolor -%scrollkeeper_update_postun %files -f %{name}.lang %defattr(644,root,root,755) %doc AUTHORS ChangeLog NEWS README TODO -%attr(755,root,root) %{_bindir}/* -%attr(755,root,root) %{_libdir}/libglom.so* -%attr(755,root,root) %{py_sitedir}/glom.so +%attr(755,root,root) %{_bindir}/glom +%attr(755,root,root) %{_bindir}/glom_export_po +%attr(755,root,root) %{_bindir}/glom_export_po_all +%attr(755,root,root) %{_bindir}/glom_import_po_all +%attr(755,root,root) %{_bindir}/glom_test_connection +%attr(755,root,root) %{_libdir}/libglom-1.30.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libglom-1.30.so.0 +%attr(755,root,root) %{py3_sitedir}/glom_1_30.so %{_datadir}/%{name} -%{_datadir}/mime/packages/*.xml -%{_desktopdir}/*.desktop -%{_iconsdir}/hicolor/*/apps/* -%dir %{_omf_dest_dir}/%{name} -%{_omf_dest_dir}/%{name}/glom-C.omf -%lang(de) %{_omf_dest_dir}/%{name}/glom-de.omf -%lang(en_GB) %{_omf_dest_dir}/%{name}/glom-en_GB.omf -%lang(sv) %{_omf_dest_dir}/%{name}/glom-sv.omf -%lang(es) %{_omf_dest_dir}/%{name}/glom-es.omf +%{_datadir}/appdata/glom.appdata.xml +%{_datadir}/mime/packages/glom.xml +%{_desktopdir}/glom.desktop +%{_iconsdir}/hicolor/*x*/apps/glom.png +%{_iconsdir}/hicolor/scalable/apps/glom.svg + +%files devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libglom-1.30.so +%{_includedir}/glom-1.30 +%{_pkgconfigdir}/glom-1.30.pc + +%files apidocs +%defattr(644,root,root,755) +%{_docdir}/libglom-1.30 +%{_docdir}/pyglom_1_30 +%{_datadir}/devhelp/books/libglom-1.30 + +%files examples +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/glom_create_from_example +%{_examplesdir}/%{name}-%{version}