3 %bcond_without apidocs # API documentation
4 %bcond_without static_libs # static library
6 Summary: template-glib - generate text based on a template and user defined state
7 Summary(pl.UTF-8): template-glib - generowanie tekstu w oparciu o szablon i stan przekazany przez użytkownika
13 Source0: https://download.gnome.org/sources/template-glib/3.34/%{name}-%{version}.tar.xz
14 # Source0-md5: df120adac6faec85aedda693a7ffa518
15 URL: https://gitlab.gnome.org/GNOME/template-glib
17 BuildRequires: docbook-dtd412-xml
18 BuildRequires: gettext-tools >= 0.18
20 BuildRequires: glib2-devel >= 1:2.44.0
21 BuildRequires: gobject-introspection-devel >= 0.9.5
22 %{?with_apidocs:BuildRequires: gtk-doc >= 1.20}
23 BuildRequires: meson >= 0.50.0
24 BuildRequires: ninja >= 1.5
25 BuildRequires: pkgconfig
26 BuildRequires: rpm-build >= 4.6
27 BuildRequires: rpmbuild(macros) >= 1.736
29 Requires: glib2 >= 1:2.44.0
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 Template-GLib is a library to help you generate text based on a
34 template and user defined state. Template-GLib does not use a language
35 runtime, so it is safe to use from any GObject-Introspectable
38 Template-GLib allows you to access properties on GObjects as well as
39 call simple methods via GObject-Introspection.
41 %description -l pl.UTF-8
42 Template-GLib to biblioteka pomagająca generować tekst w oparciu o
43 szablon oraz stan przekazany przez użytkownika. Nie wykorzystuje
44 bibliotek językowych, więc bezpiecznie można jej używać z dowolnego
45 języka obsługującego GObject-Introspection.
47 Template-GLib pozwala na dostęp do właściwości obiektów GObject, a
48 także wywoływanie prostych metod poprzez GObject-Introspection.
51 Summary: Header files for the template-glib library
52 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki template-glib
53 Group: Development/Libraries
54 Requires: %{name} = %{version}-%{release}
55 Requires: glib2-devel >= 1:2.44.0
56 Requires: gobject-introspection-devel >= 0.9.5
59 Header files for the template-glib library.
61 %description devel -l pl.UTF-8
62 Pliki nagłówkowe biblioteki template-glib.
65 Summary: Static template-glib library
66 Summary(pl.UTF-8): Biblioteka statyczna template-glib
67 Group: Development/Libraries
68 Requires: %{name}-devel = %{version}-%{release}
71 Static template-glib library.
73 %description static -l pl.UTF-8
74 Biblioteka statyczna template-glib.
77 Summary: template-glib API documentation
78 Summary(pl.UTF-8): Dokumentacja API template-glib
80 Requires: gtk-doc-common
84 Template-glib API documentation.
86 %description apidocs -l pl.UTF-8
87 Dokumentacja API template-glib.
89 %package -n vala-template-glib
90 Summary: template-glib API for Vala language
91 Summary(pl.UTF-8): API template-glib dla języka Vala
92 Group: Development/Libraries
93 Requires: %{name}-devel = %{version}-%{release}
94 Requires: vala >= 2:0.18.0
97 %description -n vala-template-glib
98 Template-glib API for Vala language.
100 %description -n vala-template-glib -l pl.UTF-8
101 API template-glib dla języka Vala.
108 %{!?with_static_libs:--default-library=shared} \
109 %{?with_apidocs:-Denable_gtk_doc=true}
111 %ninja_build -C build
114 rm -rf $RPM_BUILD_ROOT
116 %ninja_install -C build
118 %find_lang %{name} --with-gnome
121 rm -rf $RPM_BUILD_ROOT
123 %post -p /sbin/ldconfig
124 %postun -p /sbin/ldconfig
126 %files -f %{name}.lang
127 %defattr(644,root,root,755)
128 %doc AUTHORS NEWS README.md
129 %attr(755,root,root) %{_libdir}/libtemplate_glib-1.0.so.*.*.*
130 %attr(755,root,root) %ghost %{_libdir}/libtemplate_glib-1.0.so.0
131 %{_libdir}/girepository-1.0/Template-1.0.typelib
134 %defattr(644,root,root,755)
135 %attr(755,root,root) %{_libdir}/libtemplate_glib-1.0.so
136 %{_datadir}/gir-1.0/Template-1.0.gir
137 %{_includedir}/template-glib-1.0
138 %{_pkgconfigdir}/template-glib-1.0.pc
140 %if %{with static_libs}
142 %defattr(644,root,root,755)
143 %{_libdir}/libtemplate_glib-1.0.a
148 %defattr(644,root,root,755)
149 %{_gtkdocdir}/template-glib
152 %files -n vala-template-glib
153 %defattr(644,root,root,755)
154 %{_datadir}/vala/vapi/template-glib-1.0.deps
155 %{_datadir}/vala/vapi/template-glib-1.0.vapi