]>
Commit | Line | Data |
---|---|---|
93f3b278 | 1 | %define apiver 1.4 |
82a3560f | 2 | |
e2ae5335 JB |
3 | %define cairomm_ver 1.12.0 |
4 | %define glibmm_ver 2.48.0 | |
5 | %define pango_ver 1:1.45.1 | |
93f3b278 MB |
6 | Summary: A C++ interface for pango library |
7 | Summary(pl.UTF-8): Interfejs C++ dla biblioteki pango | |
8 | Name: pangomm | |
021e6f61 | 9 | Version: 2.46.3 |
d0a5a928 | 10 | Release: 1 |
93f3b278 MB |
11 | License: LGPL v2+ |
12 | Group: X11/Libraries | |
e2ae5335 | 13 | Source0: https://download.gnome.org/sources/pangomm/2.46/%{name}-%{version}.tar.xz |
021e6f61 | 14 | # Source0-md5: 7af783bb04de766fafaaad26c9ed475a |
a3795c9b | 15 | URL: https://www.gtkmm.org/ |
93f3b278 | 16 | BuildRequires: autoconf >= 2.59 |
b780a635 | 17 | BuildRequires: automake >= 1:1.11 |
a3795c9b | 18 | BuildRequires: doxygen >= 1:1.8.9 |
e2ae5335 JB |
19 | BuildRequires: cairomm-devel >= %{cairomm_ver} |
20 | BuildRequires: glibmm-devel >= %{glibmm_ver} | |
20259a5c | 21 | BuildRequires: libstdc++-devel >= 6:4.7 |
d8ac19b0 | 22 | BuildRequires: libtool >= 2:2.0 |
20259a5c | 23 | BuildRequires: mm-common >= 0.9.10 |
e2ae5335 | 24 | BuildRequires: pango-devel >= %{pango_ver} |
1e262751 | 25 | BuildRequires: perl-base >= 1:5.6.0 |
93f3b278 | 26 | BuildRequires: pkgconfig |
34d8f89b | 27 | BuildRequires: rpm-build >= 4.6 |
a3795c9b | 28 | BuildRequires: rpmbuild(macros) >= 1.752 |
af88fe19 AF |
29 | BuildRequires: tar >= 1:1.22 |
30 | BuildRequires: xz | |
e2ae5335 JB |
31 | Requires: cairomm >= %{cairomm_ver} |
32 | Requires: glibmm >= %{glibmm_ver} | |
33 | Requires: pango >= %{pango_ver} | |
93f3b278 | 34 | Provides: gtkmm-pango |
5a9e5783 | 35 | Obsoletes: gtkmm-pango < 2.14 |
93f3b278 MB |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %description | |
39 | A C++ interface for pango library. | |
40 | ||
41 | %description -l pl.UTF-8 | |
42 | Interfejs C++ dla biblioteki pango. | |
43 | ||
44 | %package devel | |
45 | Summary: Header files for pangomm library | |
46 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki pangomm | |
47 | Group: X11/Development/Libraries | |
48 | Requires: %{name} = %{version}-%{release} | |
e2ae5335 JB |
49 | Requires: cairomm-devel >= %{cairomm_ver} |
50 | Requires: glibmm-devel >= %{glibmm_ver} | |
20259a5c | 51 | Requires: libstdc++-devel >= 6:4.7 |
e2ae5335 | 52 | Requires: pango-devel >= %{pango_ver} |
93f3b278 | 53 | Provides: gtkmm-pango-devel |
5a9e5783 | 54 | Obsoletes: gtkmm-pango-devel < 2.14 |
93f3b278 MB |
55 | |
56 | %description devel | |
57 | Header files for pangomm library. | |
58 | ||
59 | %description devel -l pl.UTF-8 | |
60 | Pliki nagłówkowe biblioteki pangomm. | |
61 | ||
62 | %package static | |
63 | Summary: Static pangomm library | |
64 | Summary(pl.UTF-8): Statyczna biblioteka pangomm | |
65 | Group: X11/Development/Libraries | |
66 | Requires: %{name}-devel = %{version}-%{release} | |
67 | Provides: gtkmm-pango-static | |
5a9e5783 | 68 | Obsoletes: gtkmm-pango-static < 2.14 |
93f3b278 MB |
69 | |
70 | %description static | |
71 | Static pangomm library. | |
72 | ||
73 | %description static -l pl.UTF-8 | |
74 | Statyczna biblioteka pangomm. | |
75 | ||
76 | %package apidocs | |
77 | Summary: pangomm library API documentation | |
78 | Summary(pl.UTF-8): Dokumentacja API biblioteki pangomm | |
79 | Group: Documentation | |
80 | Requires: devhelp | |
9977ae74 | 81 | BuildArch: noarch |
93f3b278 MB |
82 | |
83 | %description apidocs | |
84 | pangomm library API documentation. | |
85 | ||
86 | %description apidocs -l pl.UTF-8 | |
87 | Dokumentacja API biblioteki pangomm. | |
88 | ||
89 | %prep | |
90 | %setup -q | |
91 | ||
92 | %build | |
a3795c9b | 93 | mm-common-prepare --copy --force |
93f3b278 | 94 | %{__libtoolize} |
873be98e | 95 | %{__aclocal} -I build |
93f3b278 MB |
96 | %{__autoconf} |
97 | %{__autoheader} | |
98 | %{__automake} | |
99 | %configure \ | |
a3795c9b | 100 | --enable-maintainer-mode \ |
b780a635 | 101 | --disable-silent-rules \ |
93f3b278 MB |
102 | --enable-static |
103 | %{__make} | |
104 | ||
105 | %install | |
106 | rm -rf $RPM_BUILD_ROOT | |
e2ae5335 | 107 | |
93f3b278 MB |
108 | %{__make} install \ |
109 | DESTDIR=$RPM_BUILD_ROOT | |
110 | ||
b780a635 AF |
111 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
112 | ||
93f3b278 MB |
113 | %clean |
114 | rm -rf $RPM_BUILD_ROOT | |
115 | ||
116 | %post -p /sbin/ldconfig | |
117 | %postun -p /sbin/ldconfig | |
118 | ||
119 | %files | |
120 | %defattr(644,root,root,755) | |
021e6f61 | 121 | %doc AUTHORS ChangeLog NEWS README.md |
93f3b278 MB |
122 | %attr(755,root,root) %{_libdir}/libpangomm-%{apiver}.*.*.* |
123 | %attr(755,root,root) %ghost %{_libdir}/libpangomm-%{apiver}.so.1 | |
124 | ||
125 | %files devel | |
126 | %defattr(644,root,root,755) | |
127 | %attr(755,root,root) %{_libdir}/libpangomm-%{apiver}.so | |
128 | %{_includedir}/pangomm-%{apiver} | |
93f3b278 MB |
129 | %{_libdir}/pangomm-%{apiver} |
130 | %{_pkgconfigdir}/pangomm-%{apiver}.pc | |
131 | ||
132 | %files static | |
133 | %defattr(644,root,root,755) | |
134 | %{_libdir}/libpangomm-%{apiver}.a | |
135 | ||
136 | %files apidocs | |
137 | %defattr(644,root,root,755) | |
138 | %{_docdir}/pangomm-%{apiver} | |
139 | %{_datadir}/devhelp/books/pangomm-%{apiver} |