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