3 %bcond_without python # Python (3) binding
5 Summary: GObject Data Mapper library
6 Summary(pl.UTF-8): Biblioteka GObject Data Mapper
12 Source0: http://ftp.gnome.org/pub/GNOME/sources/gom/0.4/%{name}-%{version}.tar.xz
13 # Source0-md5: 0cc4debe208cb4c91b013e5e57a99808
14 URL: https://github.com/GNOME/gom
15 BuildRequires: gdk-pixbuf2-devel >= 2.0
16 BuildRequires: glib2-devel >= 1:2.36
17 BuildRequires: gobject-introspection-devel >= 1.30.0
18 BuildRequires: gtk-doc >= 1.14
19 BuildRequires: intltool >= 0.40.0
20 BuildRequires: meson >= 0.48
21 BuildRequires: pkgconfig
22 %{?with_python:BuildRequires: python3-devel >= 1:3.4}
23 %{?with_python:BuildRequires: python3-pygobject3-devel >= 3.16.0}
24 BuildRequires: rpmbuild(macros) >= 1.714
25 BuildRequires: sqlite3-devel >= 3.7
26 Requires: glib2 >= 1:2.36
27 Requires: sqlite3 >= 3.7
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 GOM (GObject Data Mapper) is an attempt to make a DataMapper for
34 %description -l pl.UTF-8
35 GOM (GObject Data Mapper) to próba stworzenia DataMappera dla obieków
39 Summary: Header files for GOM library
40 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GOM
41 Group: Development/Libraries
42 Requires: %{name} = %{version}-%{release}
43 Requires: glib2-devel >= 1:2.36
47 This is the package containing the header files for GOM.
49 %description devel -l pl.UTF-8
50 Ten pakiet zawiera pliki nagłówkowe GOM.
53 Summary: GOM library API documentation
54 Summary(pl.UTF-8): Dokumentacja API biblioteki GOM
56 Requires: gtk-doc-common
60 GOM library API documentation.
62 %description apidocs -l pl.UTF-8
63 Dokumentacja API biblioteki GOM.
65 %package -n python3-gom
66 Summary: Python 3 binding for GOM library
67 Summary(pl.UTF-8): Wiązanie Pythona 3 do biblioteki GOM
68 Group: Libraries/Python
69 Requires: %{name} = %{version}-%{release}
70 Requires: python3-pygobject3 >= 3.16.0
72 %description -n python3-gom
73 Python 3 binding for GOM library.
75 %description -n python3-gom -l pl.UTF-8
76 Wiązanie Pythona 3 do biblioteki GOM.
83 CFLAGS="%{rpmcflags} %{rpmcppflags}" \
84 LDFLAGS="%{rpmldflags}" \
90 rm -rf $RPM_BUILD_ROOT
92 %meson_install -C build
94 %py3_comp $RPM_BUILD_ROOT%{py3_sitedir}
95 %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir}
98 rm -rf $RPM_BUILD_ROOT
100 %post -p /sbin/ldconfig
101 %postun -p /sbin/ldconfig
104 %defattr(644,root,root,755)
105 %doc AUTHORS NEWS README TODO
106 %attr(755,root,root) %{_libdir}/libgom-1.0.so.*.*.*
107 %attr(755,root,root) %ghost %{_libdir}/libgom-1.0.so.0
108 %{_libdir}/girepository-1.0/Gom-1.0.typelib
111 %defattr(644,root,root,755)
112 %attr(755,root,root) %{_libdir}/libgom-1.0.so
113 %{_includedir}/gom-1.0
114 %{_pkgconfigdir}/gom-1.0.pc
115 %{_datadir}/gir-1.0/Gom-1.0.gir
118 %defattr(644,root,root,755)
122 %files -n python3-gom
123 %defattr(644,root,root,755)
124 %{py3_sitedir}/gi/overrides/Gom.py
125 %{py3_sitedir}/gi/overrides/__pycache__/Gom.cpython-*.py[co]