3 %bcond_without static_libs # don't build static libraries
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+
12 Source0: http://ftp.gnome.org/pub/GNOME/sources/amtk/5.0/%{name}-%{version}.tar.xz
13 # Source0-md5: a7d6ed00248a5dc8609525971bb5414e
14 URL: https://wiki.gnome.org/Projects/Amtk
15 BuildRequires: autoconf >= 2.64
16 BuildRequires: automake >= 1:1.14
17 BuildRequires: gettext-tools >= 0.19.4
18 BuildRequires: glib2-devel >= 1:2.52
19 BuildRequires: gobject-introspection-devel >= 1.42.0
20 BuildRequires: gtk+3-devel >= 3.22
21 BuildRequires: gtk-doc >= 1.25
22 BuildRequires: libtool >= 2:2.2.6
23 BuildRequires: pkgconfig
24 Requires: glib2 >= 1:2.52
25 Requires: gtk+3 >= 3.22
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 Amtk is the acronym for "Actions, Menus and Toolbars Kit". It is a
30 basic GtkUIManager replacement based on GAction. It is suitable for
31 both a traditional UI or a modern UI with a GtkHeaderBar.
33 %description -l pl.UTF-8
34 Amtk to krót od "Actions, Menus and Toolbars Kit" (zestaw akcji, menu
35 i pasków narzędziowych). Jest to podstawowy zamiennik GtkUIManagera
36 oparty na GAction. Nadaje się zarówno dla tradycyjnych, jak i
37 nowoczesnych interfejsów użytkownika z GtkHeaderBarem.
40 Summary: Header files for Amtk library
41 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Amtk
42 Group: Development/Libraries
43 Requires: %{name} = %{version}-%{release}
44 Requires: glib2-devel >= 1:2.52
45 Requires: gtk+3-devel >= 3.22
48 Header files for Amtk library.
50 %description devel -l pl.UTF-8
51 Pliki nagłówkowe biblioteki Amtk.
54 Summary: Static Amtk library
55 Summary(pl.UTF-8): Statyczna biblioteka Amtk
56 Group: Development/Libraries
57 Requires: %{name}-devel = %{version}-%{release}
62 %description static -l pl.UTF-8
63 Statyczna biblioteka Amtk.
66 Summary: API documentation for Amtk library
67 Summary(pl.UTF-8): Dokumentacja API biblioteki Amtk
69 %if "%{_rpmversion}" >= "5"
74 API documentation for Amtk library.
76 %description apidocs -l pl.UTF-8
77 Dokumentacja API biblioteki Amtk.
83 # rebuild ac/am/lt for as-needed to work
90 --disable-silent-rules \
91 %{?with_static_libs:--enable-static} \
92 --with-html-dir=%{_gtkdocdir}
96 rm -rf $RPM_BUILD_ROOT
99 DESTDIR=$RPM_BUILD_ROOT
101 # obsoleted by pkg-config
102 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libamtk-5.la
107 rm -rf $RPM_BUILD_ROOT
109 %post -p /sbin/ldconfig
110 %postun -p /sbin/ldconfig
112 %files -f amtk-5.lang
113 %defattr(644,root,root,755)
114 %doc AUTHORS NEWS README
115 %attr(755,root,root) %{_libdir}/libamtk-5.so.*.*.*
116 %attr(755,root,root) %ghost %{_libdir}/libamtk-5.so.0
117 %{_libdir}/girepository-1.0/Amtk-5.typelib
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_libdir}/libamtk-5.so
122 %{_includedir}/amtk-5
123 %{_datadir}/gir-1.0/Amtk-5.gir
124 %{_pkgconfigdir}/amtk-5.pc
126 %if %{with static_libs}
128 %defattr(644,root,root,755)
129 %{_libdir}/libamtk-5.a
133 %defattr(644,root,root,755)
134 %{_gtkdocdir}/amtk-5.0