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