]>
Commit | Line | Data |
---|---|---|
09dff269 JB |
1 | # |
2 | # Conditional build: | |
cadd5740 | 3 | %bcond_without python # Python (3) binding |
09dff269 JB |
4 | # |
5 | Summary: GObject Data Mapper library | |
6 | Summary(pl.UTF-8): Biblioteka GObject Data Mapper | |
7 | Name: gom | |
cf52bd6d | 8 | Version: 0.3.3 |
bbcd7b7d | 9 | Release: 3 |
09dff269 JB |
10 | License: LGPL v2.1+ |
11 | Group: Libraries | |
338fd88c | 12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gom/0.3/%{name}-%{version}.tar.xz |
cf52bd6d | 13 | # Source0-md5: e0372ce26af5034699c1e6b5ff589bf9 |
338fd88c | 14 | URL: https://github.com/GNOME/gom |
09dff269 JB |
15 | BuildRequires: gdk-pixbuf2-devel >= 2.0 |
16 | BuildRequires: gettext-devel | |
338fd88c | 17 | BuildRequires: gettext-tools |
09dff269 JB |
18 | BuildRequires: glib2-devel >= 1:2.36 |
19 | BuildRequires: gobject-introspection-devel >= 1.30.0 | |
20 | BuildRequires: gtk-doc >= 1.14 | |
21 | BuildRequires: intltool >= 0.40.0 | |
cf52bd6d | 22 | BuildRequires: meson >= 0.38.1 |
09dff269 | 23 | BuildRequires: pkgconfig |
cadd5740 JB |
24 | %{?with_python:BuildRequires: python3-devel >= 1:3.4} |
25 | %{?with_python:BuildRequires: python3-pygobject3-devel >= 3.16.0} | |
cf52bd6d | 26 | BuildRequires: rpmbuild(macros) >= 1.714 |
09dff269 JB |
27 | BuildRequires: sqlite3-devel >= 3.7 |
28 | Requires: glib2 >= 1:2.36 | |
29 | Requires: sqlite3 >= 3.7 | |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | %description | |
33 | GOM (GObject Data Mapper) is an attempt to make a DataMapper for | |
34 | GObject. | |
35 | ||
36 | %description -l pl.UTF-8 | |
37 | GOM (GObject Data Mapper) to próba stworzenia DataMappera dla obieków | |
38 | biblioteki GObject. | |
39 | ||
40 | %package devel | |
41 | Summary: Header files for GOM library | |
42 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GOM | |
43 | Group: Development/Libraries | |
44 | Requires: %{name} = %{version}-%{release} | |
45 | Requires: glib2-devel >= 1:2.36 | |
cf52bd6d | 46 | Obsoletes: gom-static |
09dff269 JB |
47 | |
48 | %description devel | |
49 | This is the package containing the header files for GOM. | |
50 | ||
51 | %description devel -l pl.UTF-8 | |
52 | Ten pakiet zawiera pliki nagłówkowe GOM. | |
53 | ||
09dff269 JB |
54 | %package apidocs |
55 | Summary: GOM library API documentation | |
56 | Summary(pl.UTF-8): Dokumentacja API biblioteki GOM | |
57 | Group: Documentation | |
58 | Requires: gtk-doc-common | |
59 | %if "%{_rpmversion}" >= "5" | |
60 | BuildArch: noarch | |
61 | %endif | |
62 | ||
63 | %description apidocs | |
64 | GOM library API documentation. | |
65 | ||
66 | %description apidocs -l pl.UTF-8 | |
67 | Dokumentacja API biblioteki GOM. | |
68 | ||
cadd5740 JB |
69 | %package -n python3-gom |
70 | Summary: Python 3 binding for GOM library | |
71 | Summary(pl.UTF-8): Wiązanie Pythona 3 do biblioteki GOM | |
72 | Group: Libraries/Python | |
73 | Requires: %{name} = %{version}-%{release} | |
74 | Requires: python3-pygobject3 >= 3.16.0 | |
75 | ||
76 | %description -n python3-gom | |
77 | Python 3 binding for GOM library. | |
78 | ||
79 | %description -n python3-gom -l pl.UTF-8 | |
80 | Wiązanie Pythona 3 do biblioteki GOM. | |
81 | ||
09dff269 JB |
82 | %prep |
83 | %setup -q | |
84 | ||
85 | %build | |
cf52bd6d JB |
86 | CC="%{__cc}" \ |
87 | CFLAGS="%{rpmcflags} %{rpmcppflags}" \ | |
88 | LDFLAGS="%{rpmldflags}" \ | |
bbcd7b7d | 89 | %meson build \ |
cf52bd6d | 90 | -Denable-gtk-doc=true |
bbcd7b7d | 91 | %meson_build -C build |
09dff269 JB |
92 | |
93 | %install | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
bbcd7b7d | 96 | %meson_install -C build |
09dff269 | 97 | |
cf52bd6d JB |
98 | %py3_comp $RPM_BUILD_ROOT%{py3_sitedir} |
99 | %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir} | |
09dff269 JB |
100 | |
101 | %clean | |
102 | rm -rf $RPM_BUILD_ROOT | |
103 | ||
104 | %post -p /sbin/ldconfig | |
105 | %postun -p /sbin/ldconfig | |
106 | ||
cf52bd6d | 107 | %files |
09dff269 JB |
108 | %defattr(644,root,root,755) |
109 | %doc AUTHORS ChangeLog NEWS README TODO | |
110 | %attr(755,root,root) %{_libdir}/libgom-1.0.so.*.*.* | |
111 | %attr(755,root,root) %ghost %{_libdir}/libgom-1.0.so.0 | |
112 | %{_libdir}/girepository-1.0/Gom-1.0.typelib | |
113 | ||
114 | %files devel | |
115 | %defattr(644,root,root,755) | |
116 | %attr(755,root,root) %{_libdir}/libgom-1.0.so | |
117 | %{_includedir}/gom-1.0 | |
118 | %{_pkgconfigdir}/gom-1.0.pc | |
119 | %{_datadir}/gir-1.0/Gom-1.0.gir | |
120 | ||
09dff269 JB |
121 | %files apidocs |
122 | %defattr(644,root,root,755) | |
123 | %{_gtkdocdir}/gom | |
cadd5740 JB |
124 | |
125 | %if %{with python} | |
126 | %files -n python3-gom | |
127 | %defattr(644,root,root,755) | |
128 | %{py3_sitedir}/gi/overrides/Gom.py | |
129 | %{py3_sitedir}/gi/overrides/__pycache__/Gom.cpython-*.py[co] | |
130 | %endif |