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