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