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.40/%{name}-%{version}.tar.xz
13 # Source0-md5: 14381d1c64f14655da61c6094356d1d9
14 Patch0: %{name}-doc.patch
15 URL: https://gitlab.gnome.org/GNOME/libdazzle
16 BuildRequires: glib2-devel >= 1:2.56.0
17 BuildRequires: gobject-introspection-devel
18 BuildRequires: gtk+3-devel >= 3.24.0
19 %{?with_apidocs:BuildRequires: gtk-doc}
20 BuildRequires: meson >= 0.50.0
21 BuildRequires: ninja >= 1.5
22 BuildRequires: pkgconfig
23 BuildRequires: rpm-build >= 4.6
24 BuildRequires: rpmbuild(macros) >= 1.736
25 BuildRequires: tar >= 1:1.22
28 Requires: glib2-devel >= 1:2.56.0
29 Requires: gtk+3 >= 3.24.0
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 libdazzle is a collection of fancy features for GLib and GTK+ that
34 aren't quite ready or generic enough for use inside those libraries.
35 This is often a proving ground for new widget prototypes. Applications
36 such as Builder tend to drive development of this project.
38 %description -l pl.UTF-8
39 libdazzle to zbiór fantazyjnych funkcji dla GLiba i GTK+, które
40 jeszcze nie są gotowe lub wystarczająco ogólne, aby znalazły się
41 wewnątrz tych bibliotek. Zwykle jest to miejsce do sprawdzania
42 prototypów nowych widgetów. Rozwój tego projektu prowadzą zwykle
43 aplikacje takie jak Builder.
46 Summary: Header files for libdazzle library
47 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libdazzle
48 Group: Development/Libraries
49 Requires: %{name} = %{version}-%{release}
50 Requires: glib2-devel >= 1:2.56.0
51 Requires: gtk+3-devel >= 3.24.0
54 Header files for libdazzle library.
56 %description devel -l pl.UTF-8
57 Pliki nagłówkowe biblioteki libdazzle.
59 %package -n vala-libdazzle
60 Summary: libdazzle API for Vala language
61 Summary(pl.UTF-8): API libdazzle dla języka Vala
62 Group: Development/Libraries
63 Requires: %{name}-devel = %{version}-%{release}
67 %description -n vala-libdazzle
68 libdazzle API for Vala language.
70 %description -n vala-libdazzle -l pl.UTF-8
71 API libdazzle dla języka Vala.
74 Summary: API documentation for libdazzle library
75 Summary(pl.UTF-8): Dokumentacja API biblioteki libdazzle
80 API documentation for libdazzle library.
82 %description apidocs -l pl.UTF-8
83 Dokumentacja API biblioteki libdazzle.
91 %{?with_apidocs:-Denable_gtk_doc=true}
96 rm -rf $RPM_BUILD_ROOT
98 %ninja_install -C build
101 rm -rf $RPM_BUILD_ROOT
103 %post -p /sbin/ldconfig
104 %postun -p /sbin/ldconfig
107 %defattr(644,root,root,755)
108 %doc AUTHORS CONTRIBUTING.md NEWS README.md
109 %attr(755,root,root) %{_bindir}/dazzle-list-counters
110 %attr(755,root,root) %{_libdir}/libdazzle-1.0.so.0
111 %{_libdir}/girepository-1.0/Dazzle-1.0.typelib
114 %defattr(644,root,root,755)
115 %attr(755,root,root) %{_libdir}/libdazzle-1.0.so
116 %{_includedir}/libdazzle-1.0
117 %{_pkgconfigdir}/libdazzle-1.0.pc
118 %{_datadir}/gir-1.0/Dazzle-1.0.gir
120 %files -n vala-libdazzle
121 %defattr(644,root,root,755)
122 %{_datadir}/vala/vapi/libdazzle-1.0.deps
123 %{_datadir}/vala/vapi/libdazzle-1.0.vapi
127 %defattr(644,root,root,755)
128 %{_gtkdocdir}/libdazzle