]> git.pld-linux.org Git - SPECS.git/blob - libdazzle.spec
SPECS updated Tue 30 Apr 15:13:02 CEST 2024
[SPECS.git] / libdazzle.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs # API documentation
4
5 Summary:        Experimental new features for GTK+ and GLib
6 Summary(pl.UTF-8):      Nowe, eksperymentalne funkcje dla GTK+ i GLiba
7 Name:           libdazzle
8 Version:        3.44.0
9 Release:        1
10 License:        GPL v3+
11 Group:          X11/Libraries
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
27 BuildRequires:  vala
28 BuildRequires:  xz
29 Requires:       glib2-devel >= 1:2.56.0
30 Requires:       gtk+3 >= 3.24.0
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %description
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.
38
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
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}
51 Requires:       glib2-devel >= 1:2.56.0
52 Requires:       gtk+3-devel >= 3.24.0
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
66 BuildArch:      noarch
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
74 %package apidocs
75 Summary:        API documentation for libdazzle library
76 Summary(pl.UTF-8):      Dokumentacja API biblioteki libdazzle
77 Group:          Documentation
78 BuildArch:      noarch
79
80 %description apidocs
81 API documentation for libdazzle library.
82
83 %description apidocs -l pl.UTF-8
84 Dokumentacja API biblioteki libdazzle.
85
86 %prep
87 %setup -q
88 %patch0 -p1
89
90 %build
91 %meson build \
92         %{?with_apidocs:-Denable_gtk_doc=true}
93
94 %ninja_build -C build
95
96 %install
97 rm -rf $RPM_BUILD_ROOT
98
99 %ninja_install -C build
100
101 %find_lang %{name}-1.0
102
103 %clean
104 rm -rf $RPM_BUILD_ROOT
105
106 %post   -p /sbin/ldconfig
107 %postun -p /sbin/ldconfig
108
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
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
127
128 %if %{with apidocs}
129 %files apidocs
130 %defattr(644,root,root,755)
131 %{_gtkdocdir}/libdazzle
132 %endif
This page took 0.510883 seconds and 3 git commands to generate.