3 %bcond_without python # Python (3) binding
4 %bcond_without static_libs # static library
6 Summary: GObject Data Mapper library
7 Summary(pl.UTF-8): Biblioteka GObject Data Mapper
13 Source0: http://ftp.gnome.org/pub/GNOME/sources/gom/0.3/%{name}-%{version}.tar.xz
14 # Source0-md5: 4191f13d5ec1803a60c0e08330680d8f
15 URL: https://github.com/GNOME/gom
16 BuildRequires: autoconf >= 2.64
17 BuildRequires: automake
18 BuildRequires: gdk-pixbuf2-devel >= 2.0
19 BuildRequires: gettext-devel
20 BuildRequires: gettext-tools
21 BuildRequires: glib2-devel >= 1:2.36
22 BuildRequires: gnome-common
23 BuildRequires: gobject-introspection-devel >= 1.30.0
24 BuildRequires: gtk-doc >= 1.14
25 BuildRequires: intltool >= 0.40.0
26 BuildRequires: libtool >= 2:2.2
27 BuildRequires: pkgconfig
28 %{?with_python:BuildRequires: python3-devel >= 1:3.4}
29 %{?with_python:BuildRequires: python3-pygobject3-devel >= 3.16.0}
30 BuildRequires: sqlite3-devel >= 3.7
31 Requires: glib2 >= 1:2.36
32 Requires: sqlite3 >= 3.7
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 GOM (GObject Data Mapper) is an attempt to make a DataMapper for
39 %description -l pl.UTF-8
40 GOM (GObject Data Mapper) to próba stworzenia DataMappera dla obieków
44 Summary: Header files for GOM library
45 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GOM
46 Group: Development/Libraries
47 Requires: %{name} = %{version}-%{release}
48 Requires: glib2-devel >= 1:2.36
51 This is the package containing the header files for GOM.
53 %description devel -l pl.UTF-8
54 Ten pakiet zawiera pliki nagłówkowe GOM.
57 Summary: Static GOM library
58 Summary(pl.UTF-8): Statyczna biblioteka GOM
59 Group: Development/Libraries
60 Requires: %{name}-devel = %{version}-%{release}
65 %description static -l pl.UTF-8
66 Statyczna biblioteka GOM.
69 Summary: GOM library API documentation
70 Summary(pl.UTF-8): Dokumentacja API biblioteki GOM
72 Requires: gtk-doc-common
73 %if "%{_rpmversion}" >= "5"
78 GOM library API documentation.
80 %description apidocs -l pl.UTF-8
81 Dokumentacja API biblioteki GOM.
83 %package -n python3-gom
84 Summary: Python 3 binding for GOM library
85 Summary(pl.UTF-8): Wiązanie Pythona 3 do biblioteki GOM
86 Group: Libraries/Python
87 Requires: %{name} = %{version}-%{release}
88 Requires: python3-pygobject3 >= 3.16.0
90 %description -n python3-gom
91 Python 3 binding for GOM library.
93 %description -n python3-gom -l pl.UTF-8
94 Wiązanie Pythona 3 do biblioteki GOM.
108 %{!?with_python:--disable-python} \
109 --disable-silent-rules \
110 %{!?with_static_libs:--disable-static} \
111 --with-html-dir=%{_gtkdocdir}
115 rm -rf $RPM_BUILD_ROOT
118 DESTDIR=$RPM_BUILD_ROOT
120 # obsoleted by pkg-config
121 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
126 rm -rf $RPM_BUILD_ROOT
128 %post -p /sbin/ldconfig
129 %postun -p /sbin/ldconfig
131 %files -f %{name}.lang
132 %defattr(644,root,root,755)
133 %doc AUTHORS ChangeLog NEWS README TODO
134 %attr(755,root,root) %{_libdir}/libgom-1.0.so.*.*.*
135 %attr(755,root,root) %ghost %{_libdir}/libgom-1.0.so.0
136 %{_libdir}/girepository-1.0/Gom-1.0.typelib
139 %defattr(644,root,root,755)
140 %attr(755,root,root) %{_libdir}/libgom-1.0.so
141 %{_includedir}/gom-1.0
142 %{_pkgconfigdir}/gom-1.0.pc
143 %{_datadir}/gir-1.0/Gom-1.0.gir
145 %if %{with static_libs}
147 %defattr(644,root,root,755)
148 %{_libdir}/libgom-1.0.a
152 %defattr(644,root,root,755)
156 %files -n python3-gom
157 %defattr(644,root,root,755)
158 %{py3_sitedir}/gi/overrides/Gom.py
159 %{py3_sitedir}/gi/overrides/__pycache__/Gom.cpython-*.py[co]