]>
Commit | Line | Data |
---|---|---|
d6bcf0c9 | 1 | # |
2 | # Conditional build: | |
b7873354 | 3 | %bcond_without static_libs # static library |
82e67264 | 4 | |
5e5ed5e5 MB |
5 | Summary: A C++ interface for atk library |
6 | Summary(pl.UTF-8): Interfejs C++ dla biblioteki atk | |
7 | Name: atkmm | |
b7873354 | 8 | Version: 2.28.4 |
1c3f11b5 | 9 | Release: 1 |
84d50b7b | 10 | License: LGPL v2.1+ |
5e5ed5e5 | 11 | Group: Libraries |
8799e846 | 12 | Source0: https://download.gnome.org/sources/atkmm/2.28/%{name}-%{version}.tar.xz |
b7873354 | 13 | # Source0-md5: e0f7271990c89a6c9987f215ba47bfc5 |
8799e846 | 14 | URL: https://www.gtkmm.org/ |
1c3f11b5 | 15 | BuildRequires: atk-devel >= 1:2.18.0 |
5e5ed5e5 MB |
16 | BuildRequires: autoconf >= 2.59 |
17 | BuildRequires: automake >= 1:1.9 | |
8799e846 | 18 | BuildRequires: doxygen >= 1:1.8.9 |
4d8c8b33 JB |
19 | BuildRequires: glibmm-devel >= 2.46.2 |
20 | BuildRequires: libstdc++-devel >= 6:4.7 | |
a2414ebf | 21 | BuildRequires: libtool >= 2:2.0 |
4d8c8b33 | 22 | BuildRequires: mm-common >= 0.9.10 |
5e5ed5e5 | 23 | BuildRequires: pkgconfig |
9823a85a | 24 | BuildRequires: rpm-build >= 4.6 |
8799e846 | 25 | BuildRequires: rpmbuild(macros) >= 1.752 |
8ba4dd6d MB |
26 | BuildRequires: tar >= 1:1.22 |
27 | BuildRequires: xz | |
4d8c8b33 JB |
28 | Requires: atk >= 1:2.18.0 |
29 | Requires: glibmm >= 2.46.2 | |
5e5ed5e5 | 30 | Provides: gtkmm-atk |
9823a85a | 31 | Obsoletes: gtkmm-atk < 2.22.0 |
5e5ed5e5 MB |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
34 | %description | |
35 | A C++ interface for atk library. | |
36 | ||
37 | %description -l pl.UTF-8 | |
38 | Interfejs C++ dla biblioteki atk. | |
39 | ||
40 | %package devel | |
41 | Summary: Header files for atkmm library | |
42 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki atkmm | |
43 | Group: Development/Libraries | |
44 | Requires: %{name} = %{version}-%{release} | |
1c3f11b5 | 45 | Requires: atk-devel >= 1:2.18.0 |
4d8c8b33 JB |
46 | Requires: glibmm-devel >= 2.46.2 |
47 | Requires: libstdc++-devel >= 6:4.7 | |
5e5ed5e5 | 48 | Provides: gtkmm-atk-devel |
9823a85a | 49 | Obsoletes: gtkmm-atk-devel < 2.22.0 |
5e5ed5e5 MB |
50 | |
51 | %description devel | |
52 | Header files for atkmm library. | |
53 | ||
54 | %description devel -l pl.UTF-8 | |
55 | Pliki nagłówkowe biblioteki atkmm. | |
56 | ||
57 | %package apidocs | |
58 | Summary: atkmm API documentation | |
59 | Summary(pl.UTF-8): Dokumentacja API biblioteki atkmm | |
60 | Group: Documentation | |
61 | Requires: gtk-doc-common | |
10c74ce0 | 62 | BuildArch: noarch |
5e5ed5e5 MB |
63 | |
64 | %description apidocs | |
65 | API documentation for atkmm library. | |
66 | ||
67 | %description apidocs -l pl.UTF-8 | |
68 | Dokumentacja API biblioteki atkmm. | |
69 | ||
d6bcf0c9 | 70 | %package static |
71 | Summary: atkmm static library | |
72 | Summary(pl.UTF-8): Biblioteka statyczna atkmm | |
73 | Group: Development/Libraries | |
74 | Requires: %{name}-devel = %{version}-%{release} | |
70d99279 | 75 | Provides: gtkmm-atk-static |
9823a85a | 76 | Obsoletes: gtkmm-atk-static < 2.22.0 |
d6bcf0c9 | 77 | |
78 | %description static | |
79 | Static atkmm library. | |
80 | ||
81 | %description static -l pl.UTF-8 | |
82 | Statyczna biblioteka atkmm. | |
83 | ||
5e5ed5e5 MB |
84 | %prep |
85 | %setup -q | |
86 | ||
87 | %build | |
8799e846 | 88 | mm-common-prepare --copy --force |
5e5ed5e5 MB |
89 | %{__libtoolize} |
90 | %{__aclocal} -I build | |
91 | %{__autoconf} | |
92 | %{__autoheader} | |
93 | %{__automake} | |
d6bcf0c9 | 94 | %configure \ |
8799e846 | 95 | --enable-maintainer-mode \ |
4d8c8b33 | 96 | --disable-silent-rules \ |
d6bcf0c9 | 97 | %{?with_static_libs:--enable-static} |
5e5ed5e5 MB |
98 | %{__make} |
99 | ||
100 | %install | |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
103 | %{__make} install \ | |
104 | DESTDIR=$RPM_BUILD_ROOT \ | |
105 | libdocdir=%{_gtkdocdir}/atkmm-1.6 \ | |
106 | devhelpdir=%{_gtkdocdir}/atkmm-1.6 | |
107 | ||
4f717dc9 AF |
108 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
109 | ||
5e5ed5e5 MB |
110 | %clean |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
113 | %post -p /sbin/ldconfig | |
114 | %postun -p /sbin/ldconfig | |
115 | ||
116 | %files | |
117 | %defattr(644,root,root,755) | |
b7873354 | 118 | %doc ChangeLog NEWS README.md |
5e5ed5e5 MB |
119 | %attr(755,root,root) %{_libdir}/libatkmm-1.6.so.*.*.* |
120 | %attr(755,root,root) %ghost %{_libdir}/libatkmm-1.6.so.1 | |
121 | ||
122 | %files devel | |
123 | %defattr(644,root,root,755) | |
124 | %attr(755,root,root) %{_libdir}/libatkmm-1.6.so | |
125 | %{_libdir}/atkmm-1.6 | |
5e5ed5e5 MB |
126 | %{_includedir}/atkmm-1.6 |
127 | %{_pkgconfigdir}/atkmm-1.6.pc | |
128 | ||
129 | %files apidocs | |
130 | %defattr(644,root,root,755) | |
131 | %{_gtkdocdir}/atkmm-1.6 | |
d6bcf0c9 | 132 | |
133 | %if %{with static_libs} | |
134 | %files static | |
135 | %defattr(644,root,root,755) | |
136 | %{_libdir}/libatkmm-1.6.a | |
137 | %endif |