]>
Commit | Line | Data |
---|---|---|
d2ff8337 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # API documentation | |
4 | ||
0c3189a0 | 5 | Summary: Experimental new features for GTK+ and GLib |
4b00f724 | 6 | Summary(pl.UTF-8): Nowe, eksperymentalne funkcje dla GTK+ i GLiba |
0c3189a0 | 7 | Name: libdazzle |
e96620f0 | 8 | Version: 3.44.0 |
bd417a1c | 9 | Release: 1 |
4b00f724 | 10 | License: GPL v3+ |
0c3189a0 | 11 | Group: X11/Libraries |
e96620f0 JB |
12 | Source0: https://download.gnome.org/sources/libdazzle/3.44/%{name}-%{version}.tar.xz |
13 | # Source0-md5: 203815dd90239ff732c19fc700417c74 | |
697e8546 JB |
14 | Patch0: %{name}-doc.patch |
15 | URL: https://gitlab.gnome.org/GNOME/libdazzle | |
32b47d8f | 16 | BuildRequires: gettext-tools |
4b00f724 | 17 | BuildRequires: glib2-devel >= 1:2.56.0 |
0c3189a0 | 18 | BuildRequires: gobject-introspection-devel |
4b00f724 | 19 | BuildRequires: gtk+3-devel >= 3.24.0 |
d2ff8337 JB |
20 | %{?with_apidocs:BuildRequires: gtk-doc} |
21 | BuildRequires: meson >= 0.50.0 | |
4b00f724 | 22 | BuildRequires: ninja >= 1.5 |
0c3189a0 | 23 | BuildRequires: pkgconfig |
2468973f | 24 | BuildRequires: rpm-build >= 4.6 |
4b00f724 | 25 | BuildRequires: rpmbuild(macros) >= 1.736 |
0c3189a0 MB |
26 | BuildRequires: tar >= 1:1.22 |
27 | BuildRequires: vala | |
28 | BuildRequires: xz | |
4b00f724 JB |
29 | Requires: glib2-devel >= 1:2.56.0 |
30 | Requires: gtk+3 >= 3.24.0 | |
0c3189a0 MB |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
33 | %description | |
4b00f724 | 34 | libdazzle is a collection of fancy features for GLib and GTK+ that |
0c3189a0 MB |
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. | |
38 | ||
4b00f724 JB |
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. | |
45 | ||
0c3189a0 MB |
46 | %package devel |
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} | |
4b00f724 JB |
51 | Requires: glib2-devel >= 1:2.56.0 |
52 | Requires: gtk+3-devel >= 3.24.0 | |
0c3189a0 MB |
53 | |
54 | %description devel | |
55 | Header files for libdazzle library. | |
56 | ||
57 | %description devel -l pl.UTF-8 | |
58 | Pliki nagłówkowe biblioteki libdazzle. | |
59 | ||
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} | |
65 | Requires: vala | |
0c3189a0 | 66 | BuildArch: noarch |
0c3189a0 MB |
67 | |
68 | %description -n vala-libdazzle | |
69 | libdazzle API for Vala language. | |
70 | ||
71 | %description -n vala-libdazzle -l pl.UTF-8 | |
72 | API libdazzle dla języka Vala. | |
73 | ||
4b00f724 JB |
74 | %package apidocs |
75 | Summary: API documentation for libdazzle library | |
76 | Summary(pl.UTF-8): Dokumentacja API biblioteki libdazzle | |
77 | Group: Documentation | |
4b00f724 | 78 | BuildArch: noarch |
4b00f724 JB |
79 | |
80 | %description apidocs | |
81 | API documentation for libdazzle library. | |
82 | ||
83 | %description apidocs -l pl.UTF-8 | |
84 | Dokumentacja API biblioteki libdazzle. | |
85 | ||
0c3189a0 MB |
86 | %prep |
87 | %setup -q | |
697e8546 | 88 | %patch0 -p1 |
0c3189a0 MB |
89 | |
90 | %build | |
4b00f724 | 91 | %meson build \ |
d2ff8337 | 92 | %{?with_apidocs:-Denable_gtk_doc=true} |
4b00f724 | 93 | |
7696ce6e | 94 | %ninja_build -C build |
0c3189a0 MB |
95 | |
96 | %install | |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
7696ce6e | 99 | %ninja_install -C build |
0c3189a0 | 100 | |
32b47d8f JB |
101 | %find_lang %{name}-1.0 |
102 | ||
0c3189a0 MB |
103 | %clean |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
106 | %post -p /sbin/ldconfig | |
107 | %postun -p /sbin/ldconfig | |
108 | ||
32b47d8f | 109 | %files -f %{name}-1.0.lang |
0c3189a0 MB |
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 | |
115 | ||
116 | %files devel | |
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 | |
122 | ||
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 | |
4b00f724 | 127 | |
d2ff8337 | 128 | %if %{with apidocs} |
4b00f724 JB |
129 | %files apidocs |
130 | %defattr(644,root,root,755) | |
131 | %{_gtkdocdir}/libdazzle | |
d2ff8337 | 132 | %endif |