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