]> git.pld-linux.org Git - packages/libdazzle.git/blob - libdazzle.spec
- updated to 3.40.0
[packages/libdazzle.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.40.0
9 Release:        1
10 License:        GPL v3+
11 Group:          X11/Libraries
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
26 BuildRequires:  vala
27 BuildRequires:  xz
28 Requires:       glib2-devel >= 1:2.56.0
29 Requires:       gtk+3 >= 3.24.0
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
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.
37
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
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}
50 Requires:       glib2-devel >= 1:2.56.0
51 Requires:       gtk+3-devel >= 3.24.0
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
65 BuildArch:      noarch
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
73 %package apidocs
74 Summary:        API documentation for libdazzle library
75 Summary(pl.UTF-8):      Dokumentacja API biblioteki libdazzle
76 Group:          Documentation
77 BuildArch:      noarch
78
79 %description apidocs
80 API documentation for libdazzle library.
81
82 %description apidocs -l pl.UTF-8
83 Dokumentacja API biblioteki libdazzle.
84
85 %prep
86 %setup -q
87 %patch0 -p1
88
89 %build
90 %meson build \
91         %{?with_apidocs:-Denable_gtk_doc=true}
92
93 %ninja_build -C build
94
95 %install
96 rm -rf $RPM_BUILD_ROOT
97
98 %ninja_install -C build
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
124
125 %if %{with apidocs}
126 %files apidocs
127 %defattr(644,root,root,755)
128 %{_gtkdocdir}/libdazzle
129 %endif
This page took 0.111538 seconds and 3 git commands to generate.