]> git.pld-linux.org Git - packages/gom.git/blame - gom.spec
- rel 3; fix build
[packages/gom.git] / gom.spec
CommitLineData
09dff269
JB
1#
2# Conditional build:
cadd5740 3%bcond_without python # Python (3) binding
09dff269
JB
4#
5Summary: GObject Data Mapper library
6Summary(pl.UTF-8): Biblioteka GObject Data Mapper
7Name: gom
cf52bd6d 8Version: 0.3.3
bbcd7b7d 9Release: 3
09dff269
JB
10License: LGPL v2.1+
11Group: Libraries
338fd88c 12Source0: http://ftp.gnome.org/pub/GNOME/sources/gom/0.3/%{name}-%{version}.tar.xz
cf52bd6d 13# Source0-md5: e0372ce26af5034699c1e6b5ff589bf9
338fd88c 14URL: https://github.com/GNOME/gom
09dff269
JB
15BuildRequires: gdk-pixbuf2-devel >= 2.0
16BuildRequires: gettext-devel
338fd88c 17BuildRequires: gettext-tools
09dff269
JB
18BuildRequires: glib2-devel >= 1:2.36
19BuildRequires: gobject-introspection-devel >= 1.30.0
20BuildRequires: gtk-doc >= 1.14
21BuildRequires: intltool >= 0.40.0
cf52bd6d 22BuildRequires: meson >= 0.38.1
09dff269 23BuildRequires: pkgconfig
cadd5740
JB
24%{?with_python:BuildRequires: python3-devel >= 1:3.4}
25%{?with_python:BuildRequires: python3-pygobject3-devel >= 3.16.0}
cf52bd6d 26BuildRequires: rpmbuild(macros) >= 1.714
09dff269
JB
27BuildRequires: sqlite3-devel >= 3.7
28Requires: glib2 >= 1:2.36
29Requires: sqlite3 >= 3.7
30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32%description
33GOM (GObject Data Mapper) is an attempt to make a DataMapper for
34GObject.
35
36%description -l pl.UTF-8
37GOM (GObject Data Mapper) to próba stworzenia DataMappera dla obieków
38biblioteki GObject.
39
40%package devel
41Summary: Header files for GOM library
42Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GOM
43Group: Development/Libraries
44Requires: %{name} = %{version}-%{release}
45Requires: glib2-devel >= 1:2.36
cf52bd6d 46Obsoletes: gom-static
09dff269
JB
47
48%description devel
49This is the package containing the header files for GOM.
50
51%description devel -l pl.UTF-8
52Ten pakiet zawiera pliki nagłówkowe GOM.
53
09dff269
JB
54%package apidocs
55Summary: GOM library API documentation
56Summary(pl.UTF-8): Dokumentacja API biblioteki GOM
57Group: Documentation
58Requires: gtk-doc-common
59%if "%{_rpmversion}" >= "5"
60BuildArch: noarch
61%endif
62
63%description apidocs
64GOM library API documentation.
65
66%description apidocs -l pl.UTF-8
67Dokumentacja API biblioteki GOM.
68
cadd5740
JB
69%package -n python3-gom
70Summary: Python 3 binding for GOM library
71Summary(pl.UTF-8): Wiązanie Pythona 3 do biblioteki GOM
72Group: Libraries/Python
73Requires: %{name} = %{version}-%{release}
74Requires: python3-pygobject3 >= 3.16.0
75
76%description -n python3-gom
77Python 3 binding for GOM library.
78
79%description -n python3-gom -l pl.UTF-8
80Wiązanie Pythona 3 do biblioteki GOM.
81
09dff269
JB
82%prep
83%setup -q
84
85%build
cf52bd6d
JB
86CC="%{__cc}" \
87CFLAGS="%{rpmcflags} %{rpmcppflags}" \
88LDFLAGS="%{rpmldflags}" \
bbcd7b7d 89%meson build \
cf52bd6d 90 -Denable-gtk-doc=true
bbcd7b7d 91%meson_build -C build
09dff269
JB
92
93%install
94rm -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
102rm -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
This page took 0.100588 seconds and 4 git commands to generate.