]> git.pld-linux.org Git - packages/template-glib.git/blame - template-glib.spec
- updated to 3.36.2
[packages/template-glib.git] / template-glib.spec
CommitLineData
d11eeff6
JB
1#
2# Conditional build:
3%bcond_without apidocs # API documentation
4%bcond_without static_libs # static library
5
52cf347b 6Summary: template-glib - generate text based on a template and user defined state
d11eeff6 7Summary(pl.UTF-8): template-glib - generowanie tekstu w oparciu o szablon i stan przekazany przez użytkownika
52cf347b 8Name: template-glib
61abcdf1 9Version: 3.36.2
d11eeff6 10Release: 1
52cf347b
JR
11License: LGPL v2.1+
12Group: Libraries
25ca2be0 13Source0: https://download.gnome.org/sources/template-glib/3.36/%{name}-%{version}.tar.xz
61abcdf1 14# Source0-md5: e48ec153f5a7ead3ab53b62bc378bb57
d11eeff6
JB
15URL: https://gitlab.gnome.org/GNOME/template-glib
16BuildRequires: bison
52cf347b
JR
17BuildRequires: docbook-dtd412-xml
18BuildRequires: gettext-tools >= 0.18
d11eeff6 19BuildRequires: flex
52cf347b
JR
20BuildRequires: glib2-devel >= 1:2.44.0
21BuildRequires: gobject-introspection-devel >= 0.9.5
d11eeff6 22%{?with_apidocs:BuildRequires: gtk-doc >= 1.20}
25ca2be0 23BuildRequires: meson >= 0.51.0
d11eeff6 24BuildRequires: ninja >= 1.5
52cf347b 25BuildRequires: pkgconfig
2ac8f124 26BuildRequires: rpm-build >= 4.6
d11eeff6 27BuildRequires: rpmbuild(macros) >= 1.736
52cf347b
JR
28BuildRequires: vala
29Requires: glib2 >= 1:2.44.0
30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32%description
33Template-GLib is a library to help you generate text based on a
34template and user defined state. Template-GLib does not use a language
35runtime, so it is safe to use from any GObject-Introspectable
36language.
37
38Template-GLib allows you to access properties on GObjects as well as
d11eeff6
JB
39call simple methods via GObject-Introspection.
40
41%description -l pl.UTF-8
42Template-GLib to biblioteka pomagająca generować tekst w oparciu o
43szablon oraz stan przekazany przez użytkownika. Nie wykorzystuje
44bibliotek językowych, więc bezpiecznie można jej używać z dowolnego
45języka obsługującego GObject-Introspection.
46
47Template-GLib pozwala na dostęp do właściwości obiektów GObject, a
48także wywoływanie prostych metod poprzez GObject-Introspection.
52cf347b
JR
49
50%package devel
51Summary: Header files for the template-glib library
52Summary(pl.UTF-8): Pliki nagłówkowe biblioteki template-glib
53Group: Development/Libraries
54Requires: %{name} = %{version}-%{release}
55Requires: glib2-devel >= 1:2.44.0
d11eeff6 56Requires: gobject-introspection-devel >= 0.9.5
52cf347b
JR
57
58%description devel
59Header files for the template-glib library.
60
61%description devel -l pl.UTF-8
62Pliki nagłówkowe biblioteki template-glib.
63
d11eeff6
JB
64%package static
65Summary: Static template-glib library
66Summary(pl.UTF-8): Biblioteka statyczna template-glib
67Group: Development/Libraries
68Requires: %{name}-devel = %{version}-%{release}
69
70%description static
71Static template-glib library.
72
73%description static -l pl.UTF-8
74Biblioteka statyczna template-glib.
75
52cf347b
JR
76%package apidocs
77Summary: template-glib API documentation
78Summary(pl.UTF-8): Dokumentacja API template-glib
79Group: Documentation
80Requires: gtk-doc-common
52cf347b 81BuildArch: noarch
52cf347b
JR
82
83%description apidocs
84Template-glib API documentation.
85
86%description apidocs -l pl.UTF-8
87Dokumentacja API template-glib.
88
89%package -n vala-template-glib
90Summary: template-glib API for Vala language
91Summary(pl.UTF-8): API template-glib dla języka Vala
92Group: Development/Libraries
93Requires: %{name}-devel = %{version}-%{release}
94Requires: vala >= 2:0.18.0
52cf347b 95BuildArch: noarch
52cf347b
JR
96
97%description -n vala-template-glib
98Template-glib API for Vala language.
99
100%description -n vala-template-glib -l pl.UTF-8
101API template-glib dla języka Vala.
102
103%prep
104%setup -q
105
106%build
107%meson build \
d11eeff6 108 %{!?with_static_libs:--default-library=shared} \
25ca2be0 109 %{?with_apidocs:-Dgtk_doc=true}
52cf347b 110
d11eeff6 111%ninja_build -C build
52cf347b
JR
112
113%install
114rm -rf $RPM_BUILD_ROOT
115
d11eeff6 116%ninja_install -C build
52cf347b
JR
117
118%find_lang %{name} --with-gnome
119
120%clean
121rm -rf $RPM_BUILD_ROOT
122
123%post -p /sbin/ldconfig
124%postun -p /sbin/ldconfig
125
126%files -f %{name}.lang
127%defattr(644,root,root,755)
d11eeff6 128%doc AUTHORS NEWS README.md
52cf347b
JR
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
132
133%files devel
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
139
d11eeff6
JB
140%if %{with static_libs}
141%files static
142%defattr(644,root,root,755)
143%{_libdir}/libtemplate_glib-1.0.a
144%endif
145
146%if %{with apidocs}
52cf347b
JR
147%files apidocs
148%defattr(644,root,root,755)
149%{_gtkdocdir}/template-glib
d11eeff6 150%endif
52cf347b
JR
151
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
This page took 0.16033 seconds and 4 git commands to generate.