]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
4 | ||
5 | Summary: A C++ interface for atk library | |
6 | Summary(pl.UTF-8): Interfejs C++ dla biblioteki atk | |
7 | Name: atkmm | |
8 | Version: 2.22.7 | |
9 | Release: 3 | |
10 | License: LGPL v2.1+ | |
11 | Group: Libraries | |
12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/atkmm/2.22/%{name}-%{version}.tar.xz | |
13 | # Source0-md5: fec7db3fc47ba2e0c95d130ec865a236 | |
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 | |
19 | BuildRequires: libtool >= 2:2.0 | |
20 | BuildRequires: mm-common >= 0.9.5 | |
21 | BuildRequires: pkgconfig | |
22 | BuildRequires: tar >= 1:1.22 | |
23 | BuildRequires: xz | |
24 | Requires: glibmm >= 2.24.0 | |
25 | Provides: gtkmm-atk | |
26 | Obsoletes: gtkmm-atk | |
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 | %if "%{_rpmversion}" >= "5" | |
57 | BuildArch: noarch | |
58 | %endif | |
59 | ||
60 | %description apidocs | |
61 | API documentation for atkmm library. | |
62 | ||
63 | %description apidocs -l pl.UTF-8 | |
64 | Dokumentacja API biblioteki atkmm. | |
65 | ||
66 | %package static | |
67 | Summary: atkmm static library | |
68 | Summary(pl.UTF-8): Biblioteka statyczna atkmm | |
69 | Group: Development/Libraries | |
70 | Requires: %{name}-devel = %{version}-%{release} | |
71 | Provides: gtkmm-atk-static | |
72 | Obsoletes: gtkmm-atk-static | |
73 | ||
74 | %description static | |
75 | Static atkmm library. | |
76 | ||
77 | %description static -l pl.UTF-8 | |
78 | Statyczna biblioteka atkmm. | |
79 | ||
80 | %prep | |
81 | %setup -q | |
82 | ||
83 | %build | |
84 | %{__libtoolize} | |
85 | %{__aclocal} -I build | |
86 | %{__autoconf} | |
87 | %{__autoheader} | |
88 | %{__automake} | |
89 | %configure \ | |
90 | %{?with_static_libs:--enable-static} | |
91 | %{__make} | |
92 | ||
93 | %install | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %{__make} install \ | |
97 | DESTDIR=$RPM_BUILD_ROOT \ | |
98 | libdocdir=%{_gtkdocdir}/atkmm-1.6 \ | |
99 | devhelpdir=%{_gtkdocdir}/atkmm-1.6 | |
100 | ||
101 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
102 | ||
103 | %clean | |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
106 | %post -p /sbin/ldconfig | |
107 | %postun -p /sbin/ldconfig | |
108 | ||
109 | %files | |
110 | %defattr(644,root,root,755) | |
111 | %doc AUTHORS ChangeLog NEWS README | |
112 | %attr(755,root,root) %{_libdir}/libatkmm-1.6.so.*.*.* | |
113 | %attr(755,root,root) %ghost %{_libdir}/libatkmm-1.6.so.1 | |
114 | ||
115 | %files devel | |
116 | %defattr(644,root,root,755) | |
117 | %attr(755,root,root) %{_libdir}/libatkmm-1.6.so | |
118 | %{_libdir}/atkmm-1.6 | |
119 | %{_includedir}/atkmm-1.6 | |
120 | %{_pkgconfigdir}/atkmm-1.6.pc | |
121 | ||
122 | %files apidocs | |
123 | %defattr(644,root,root,755) | |
124 | %{_gtkdocdir}/atkmm-1.6 | |
125 | ||
126 | %if %{with static_libs} | |
127 | %files static | |
128 | %defattr(644,root,root,755) | |
129 | %{_libdir}/libatkmm-1.6.a | |
130 | %endif |