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