3 %bcond_without apidocs # API documentation
5 Summary: Experimental new features for GTK+ and GLib
6 Summary(pl.UTF-8): Nowe, eksperymentalne funkcje dla GTK+ i GLiba
12 Source0: https://download.gnome.org/sources/libdazzle/3.44/%{name}-%{version}.tar.xz
13 # Source0-md5: 203815dd90239ff732c19fc700417c74
14 Patch0: %{name}-doc.patch
15 URL: https://gitlab.gnome.org/GNOME/libdazzle
16 BuildRequires: gettext-tools
17 BuildRequires: glib2-devel >= 1:2.56.0
18 BuildRequires: gobject-introspection-devel
19 BuildRequires: gtk+3-devel >= 3.24.0
20 %{?with_apidocs:BuildRequires: gtk-doc}
21 BuildRequires: meson >= 0.50.0
22 BuildRequires: ninja >= 1.5
23 BuildRequires: pkgconfig
24 BuildRequires: rpm-build >= 4.6
25 BuildRequires: rpmbuild(macros) >= 1.736
26 BuildRequires: tar >= 1:1.22
29 Requires: glib2-devel >= 1:2.56.0
30 Requires: gtk+3 >= 3.24.0
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 libdazzle is a collection of fancy features for GLib and GTK+ that
35 aren't quite ready or generic enough for use inside those libraries.
36 This is often a proving ground for new widget prototypes. Applications
37 such as Builder tend to drive development of this project.
39 %description -l pl.UTF-8
40 libdazzle to zbiór fantazyjnych funkcji dla GLiba i GTK+, które
41 jeszcze nie są gotowe lub wystarczająco ogólne, aby znalazły się
42 wewnątrz tych bibliotek. Zwykle jest to miejsce do sprawdzania
43 prototypów nowych widgetów. Rozwój tego projektu prowadzą zwykle
44 aplikacje takie jak Builder.
47 Summary: Header files for libdazzle library
48 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libdazzle
49 Group: Development/Libraries
50 Requires: %{name} = %{version}-%{release}
51 Requires: glib2-devel >= 1:2.56.0
52 Requires: gtk+3-devel >= 3.24.0
55 Header files for libdazzle library.
57 %description devel -l pl.UTF-8
58 Pliki nagłówkowe biblioteki libdazzle.
60 %package -n vala-libdazzle
61 Summary: libdazzle API for Vala language
62 Summary(pl.UTF-8): API libdazzle dla języka Vala
63 Group: Development/Libraries
64 Requires: %{name}-devel = %{version}-%{release}
68 %description -n vala-libdazzle
69 libdazzle API for Vala language.
71 %description -n vala-libdazzle -l pl.UTF-8
72 API libdazzle dla języka Vala.
75 Summary: API documentation for libdazzle library
76 Summary(pl.UTF-8): Dokumentacja API biblioteki libdazzle
81 API documentation for libdazzle library.
83 %description apidocs -l pl.UTF-8
84 Dokumentacja API biblioteki libdazzle.
92 %{?with_apidocs:-Denable_gtk_doc=true}
97 rm -rf $RPM_BUILD_ROOT
99 %ninja_install -C build
101 %find_lang %{name}-1.0
104 rm -rf $RPM_BUILD_ROOT
106 %post -p /sbin/ldconfig
107 %postun -p /sbin/ldconfig
109 %files -f %{name}-1.0.lang
110 %defattr(644,root,root,755)
111 %doc AUTHORS CONTRIBUTING.md NEWS README.md
112 %attr(755,root,root) %{_bindir}/dazzle-list-counters
113 %attr(755,root,root) %{_libdir}/libdazzle-1.0.so.0
114 %{_libdir}/girepository-1.0/Dazzle-1.0.typelib
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_libdir}/libdazzle-1.0.so
119 %{_includedir}/libdazzle-1.0
120 %{_pkgconfigdir}/libdazzle-1.0.pc
121 %{_datadir}/gir-1.0/Dazzle-1.0.gir
123 %files -n vala-libdazzle
124 %defattr(644,root,root,755)
125 %{_datadir}/vala/vapi/libdazzle-1.0.deps
126 %{_datadir}/vala/vapi/libdazzle-1.0.vapi
130 %defattr(644,root,root,755)
131 %{_gtkdocdir}/libdazzle