]>
Commit | Line | Data |
---|---|---|
52cf347b JR |
1 | Summary: template-glib - generate text based on a template and user defined state |
2 | Name: template-glib | |
28c106eb | 3 | Version: 3.30.0 |
52cf347b JR |
4 | Release: 1 |
5 | License: LGPL v2.1+ | |
6 | Group: Libraries | |
28c106eb JK |
7 | Source0: http://ftp.gnome.org/pub/GNOME/sources/template-glib/3.30/%{name}-%{version}.tar.xz |
8 | # Source0-md5: 46bc1ae19f4d50db882e7686315257f5 | |
52cf347b JR |
9 | BuildRequires: docbook-dtd412-xml |
10 | BuildRequires: gettext-tools >= 0.18 | |
11 | BuildRequires: glib2-devel >= 1:2.44.0 | |
12 | BuildRequires: gobject-introspection-devel >= 0.9.5 | |
13 | BuildRequires: gtk-doc >= 1.20 | |
14 | BuildRequires: meson >= 0.40.1 | |
15 | BuildRequires: pkgconfig | |
16 | BuildRequires: rpmbuild(macros) >= 1.726 | |
17 | BuildRequires: vala | |
18 | Requires: glib2 >= 1:2.44.0 | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | Template-GLib is a library to help you generate text based on a | |
23 | template and user defined state. Template-GLib does not use a language | |
24 | runtime, so it is safe to use from any GObject-Introspectable | |
25 | language. | |
26 | ||
27 | Template-GLib allows you to access properties on GObjects as well as | |
28 | call simple methods via GObject-Introspection. See our examples for | |
29 | how to call methods. | |
30 | ||
31 | %package devel | |
32 | Summary: Header files for the template-glib library | |
33 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki template-glib | |
34 | Group: Development/Libraries | |
35 | Requires: %{name} = %{version}-%{release} | |
36 | Requires: glib2-devel >= 1:2.44.0 | |
37 | ||
38 | %description devel | |
39 | Header files for the template-glib library. | |
40 | ||
41 | %description devel -l pl.UTF-8 | |
42 | Pliki nagłówkowe biblioteki template-glib. | |
43 | ||
44 | %package apidocs | |
45 | Summary: template-glib API documentation | |
46 | Summary(pl.UTF-8): Dokumentacja API template-glib | |
47 | Group: Documentation | |
48 | Requires: gtk-doc-common | |
49 | %if "%{_rpmversion}" >= "5" | |
50 | BuildArch: noarch | |
51 | %endif | |
52 | ||
53 | %description apidocs | |
54 | Template-glib API documentation. | |
55 | ||
56 | %description apidocs -l pl.UTF-8 | |
57 | Dokumentacja API template-glib. | |
58 | ||
59 | %package -n vala-template-glib | |
60 | Summary: template-glib API for Vala language | |
61 | Summary(pl.UTF-8): API template-glib dla języka Vala | |
62 | Group: Development/Libraries | |
63 | Requires: %{name}-devel = %{version}-%{release} | |
64 | Requires: vala >= 2:0.18.0 | |
65 | %if "%{_rpmversion}" >= "5" | |
66 | BuildArch: noarch | |
67 | %endif | |
68 | ||
69 | %description -n vala-template-glib | |
70 | Template-glib API for Vala language. | |
71 | ||
72 | %description -n vala-template-glib -l pl.UTF-8 | |
73 | API template-glib dla języka Vala. | |
74 | ||
75 | %prep | |
76 | %setup -q | |
77 | ||
78 | %build | |
79 | %meson build \ | |
80 | -Dintrospection=true \ | |
81 | -Denable_gtk_doc=true | |
82 | ||
83 | %meson_build -C build | |
84 | ||
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %meson_install -C build | |
89 | ||
90 | %find_lang %{name} --with-gnome | |
91 | ||
92 | %clean | |
93 | rm -rf $RPM_BUILD_ROOT | |
94 | ||
95 | %post -p /sbin/ldconfig | |
96 | %postun -p /sbin/ldconfig | |
97 | ||
98 | %files -f %{name}.lang | |
99 | %defattr(644,root,root,755) | |
100 | %doc NEWS README.md | |
101 | %attr(755,root,root) %{_libdir}/libtemplate_glib-1.0.so.*.*.* | |
102 | %attr(755,root,root) %ghost %{_libdir}/libtemplate_glib-1.0.so.0 | |
103 | %{_libdir}/girepository-1.0/Template-1.0.typelib | |
104 | ||
105 | %files devel | |
106 | %defattr(644,root,root,755) | |
107 | %attr(755,root,root) %{_libdir}/libtemplate_glib-1.0.so | |
108 | %{_datadir}/gir-1.0/Template-1.0.gir | |
109 | %{_includedir}/template-glib-1.0 | |
110 | %{_pkgconfigdir}/template-glib-1.0.pc | |
111 | ||
112 | %files apidocs | |
113 | %defattr(644,root,root,755) | |
114 | %{_gtkdocdir}/template-glib | |
115 | ||
116 | %files -n vala-template-glib | |
117 | %defattr(644,root,root,755) | |
118 | %{_datadir}/vala/vapi/template-glib-1.0.deps | |
119 | %{_datadir}/vala/vapi/template-glib-1.0.vapi |