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