]>
Commit | Line | Data |
---|---|---|
eed81b4a JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
4 | # | |
5 | Summary: Amtk - Actions, Menus and Toolbars Kit for GTK+ applications | |
6 | Summary(pl.UTF-8): Amtk - zestaw akcji, menu i pasków narzędzi dla aplikacji GTK+ | |
7 | Name: amtk | |
4661d4d3 | 8 | Version: 5.4.0 |
eed81b4a | 9 | Release: 1 |
4661d4d3 | 10 | License: LGPL v3+ |
eed81b4a | 11 | Group: Libraries |
4661d4d3 JB |
12 | Source0: https://download.gnome.org/sources/amtk/5.4/%{name}-%{version}.tar.xz |
13 | # Source0-md5: 1906862fe99a0ea104a8431780d3d0b6 | |
eed81b4a | 14 | URL: https://wiki.gnome.org/Projects/Amtk |
ef078335 JB |
15 | BuildRequires: gettext-tools >= 0.19.6 |
16 | BuildRequires: glib2-devel >= 1:2.56 | |
eed81b4a JB |
17 | BuildRequires: gobject-introspection-devel >= 1.42.0 |
18 | BuildRequires: gtk+3-devel >= 3.22 | |
19 | BuildRequires: gtk-doc >= 1.25 | |
4661d4d3 JB |
20 | BuildRequires: meson >= 0.53 |
21 | BuildRequires: ninja >= 1.5 | |
eed81b4a | 22 | BuildRequires: pkgconfig |
4661d4d3 JB |
23 | BuildRequires: rpm-build >= 4.6 |
24 | BuildRequires: rpmbuild(macros) >= 1.736 | |
ef078335 | 25 | Requires: glib2 >= 1:2.56 |
eed81b4a JB |
26 | Requires: gtk+3 >= 3.22 |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
30 | Amtk is the acronym for "Actions, Menus and Toolbars Kit". It is a | |
31 | basic GtkUIManager replacement based on GAction. It is suitable for | |
32 | both a traditional UI or a modern UI with a GtkHeaderBar. | |
33 | ||
34 | %description -l pl.UTF-8 | |
35 | Amtk to krót od "Actions, Menus and Toolbars Kit" (zestaw akcji, menu | |
36 | i pasków narzędziowych). Jest to podstawowy zamiennik GtkUIManagera | |
37 | oparty na GAction. Nadaje się zarówno dla tradycyjnych, jak i | |
38 | nowoczesnych interfejsów użytkownika z GtkHeaderBarem. | |
39 | ||
40 | %package devel | |
41 | Summary: Header files for Amtk library | |
42 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Amtk | |
43 | Group: Development/Libraries | |
44 | Requires: %{name} = %{version}-%{release} | |
ef078335 | 45 | Requires: glib2-devel >= 1:2.56 |
eed81b4a JB |
46 | Requires: gtk+3-devel >= 3.22 |
47 | ||
48 | %description devel | |
49 | Header files for Amtk library. | |
50 | ||
51 | %description devel -l pl.UTF-8 | |
52 | Pliki nagłówkowe biblioteki Amtk. | |
53 | ||
54 | %package static | |
55 | Summary: Static Amtk library | |
56 | Summary(pl.UTF-8): Statyczna biblioteka Amtk | |
57 | Group: Development/Libraries | |
58 | Requires: %{name}-devel = %{version}-%{release} | |
59 | ||
60 | %description static | |
61 | Static Amtk library. | |
62 | ||
63 | %description static -l pl.UTF-8 | |
64 | Statyczna biblioteka Amtk. | |
65 | ||
66 | %package apidocs | |
67 | Summary: API documentation for Amtk library | |
68 | Summary(pl.UTF-8): Dokumentacja API biblioteki Amtk | |
69 | Group: Documentation | |
eed81b4a | 70 | BuildArch: noarch |
eed81b4a JB |
71 | |
72 | %description apidocs | |
73 | API documentation for Amtk library. | |
74 | ||
75 | %description apidocs -l pl.UTF-8 | |
76 | Dokumentacja API biblioteki Amtk. | |
77 | ||
78 | %prep | |
79 | %setup -q | |
80 | ||
81 | %build | |
4661d4d3 JB |
82 | %meson build \ |
83 | %{!?with_static_libs:--default-library=shared} | |
84 | ||
85 | %ninja_build -C build | |
eed81b4a JB |
86 | |
87 | %install | |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
4661d4d3 | 90 | %ninja_install -C build |
eed81b4a JB |
91 | |
92 | %find_lang amtk-5 | |
93 | ||
94 | %clean | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
97 | %post -p /sbin/ldconfig | |
98 | %postun -p /sbin/ldconfig | |
99 | ||
100 | %files -f amtk-5.lang | |
101 | %defattr(644,root,root,755) | |
4661d4d3 | 102 | %doc NEWS README.md |
eed81b4a JB |
103 | %attr(755,root,root) %{_libdir}/libamtk-5.so.*.*.* |
104 | %attr(755,root,root) %ghost %{_libdir}/libamtk-5.so.0 | |
105 | %{_libdir}/girepository-1.0/Amtk-5.typelib | |
106 | ||
107 | %files devel | |
108 | %defattr(644,root,root,755) | |
109 | %attr(755,root,root) %{_libdir}/libamtk-5.so | |
110 | %{_includedir}/amtk-5 | |
111 | %{_datadir}/gir-1.0/Amtk-5.gir | |
112 | %{_pkgconfigdir}/amtk-5.pc | |
113 | ||
114 | %if %{with static_libs} | |
115 | %files static | |
116 | %defattr(644,root,root,755) | |
117 | %{_libdir}/libamtk-5.a | |
118 | %endif | |
119 | ||
120 | %files apidocs | |
121 | %defattr(644,root,root,755) | |
4661d4d3 | 122 | %{_gtkdocdir}/amtk-5 |