]>
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 | |
ef078335 | 8 | Version: 5.2.0 |
eed81b4a JB |
9 | Release: 1 |
10 | License: LGPL v2.1+ | |
11 | Group: Libraries | |
ef078335 JB |
12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/amtk/5.2/%{name}-%{version}.tar.xz |
13 | # Source0-md5: 8ea25cde8b7bdbf98d7d6c939dea1724 | |
eed81b4a JB |
14 | URL: https://wiki.gnome.org/Projects/Amtk |
15 | BuildRequires: autoconf >= 2.64 | |
16 | BuildRequires: automake >= 1:1.14 | |
ef078335 JB |
17 | BuildRequires: gettext-tools >= 0.19.6 |
18 | BuildRequires: glib2-devel >= 1:2.56 | |
eed81b4a JB |
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 | |
ef078335 | 24 | Requires: glib2 >= 1:2.56 |
eed81b4a JB |
25 | Requires: gtk+3 >= 3.22 |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
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. | |
32 | ||
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. | |
38 | ||
39 | %package devel | |
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} | |
ef078335 | 44 | Requires: glib2-devel >= 1:2.56 |
eed81b4a JB |
45 | Requires: gtk+3-devel >= 3.22 |
46 | ||
47 | %description devel | |
48 | Header files for Amtk library. | |
49 | ||
50 | %description devel -l pl.UTF-8 | |
51 | Pliki nagłówkowe biblioteki Amtk. | |
52 | ||
53 | %package static | |
54 | Summary: Static Amtk library | |
55 | Summary(pl.UTF-8): Statyczna biblioteka Amtk | |
56 | Group: Development/Libraries | |
57 | Requires: %{name}-devel = %{version}-%{release} | |
58 | ||
59 | %description static | |
60 | Static Amtk library. | |
61 | ||
62 | %description static -l pl.UTF-8 | |
63 | Statyczna biblioteka Amtk. | |
64 | ||
65 | %package apidocs | |
66 | Summary: API documentation for Amtk library | |
67 | Summary(pl.UTF-8): Dokumentacja API biblioteki Amtk | |
68 | Group: Documentation | |
69 | %if "%{_rpmversion}" >= "5" | |
70 | BuildArch: noarch | |
71 | %endif | |
72 | ||
73 | %description apidocs | |
74 | API documentation for Amtk library. | |
75 | ||
76 | %description apidocs -l pl.UTF-8 | |
77 | Dokumentacja API biblioteki Amtk. | |
78 | ||
79 | %prep | |
80 | %setup -q | |
81 | ||
82 | %build | |
83 | # rebuild ac/am/lt for as-needed to work | |
84 | %{__libtoolize} | |
85 | %{__aclocal} -I m4 | |
86 | %{__autoconf} | |
87 | %{__autoheader} | |
88 | %{__automake} | |
89 | %configure \ | |
90 | --disable-silent-rules \ | |
91 | %{?with_static_libs:--enable-static} \ | |
92 | --with-html-dir=%{_gtkdocdir} | |
93 | %{__make} | |
94 | ||
95 | %install | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | %{__make} install \ | |
99 | DESTDIR=$RPM_BUILD_ROOT | |
100 | ||
101 | # obsoleted by pkg-config | |
102 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libamtk-5.la | |
103 | ||
104 | %find_lang amtk-5 | |
105 | ||
106 | %clean | |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | ||
109 | %post -p /sbin/ldconfig | |
110 | %postun -p /sbin/ldconfig | |
111 | ||
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 | |
118 | ||
119 | %files devel | |
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 | |
125 | ||
126 | %if %{with static_libs} | |
127 | %files static | |
128 | %defattr(644,root,root,755) | |
129 | %{_libdir}/libamtk-5.a | |
130 | %endif | |
131 | ||
132 | %files apidocs | |
133 | %defattr(644,root,root,755) | |
134 | %{_gtkdocdir}/amtk-5.0 |