]>
Commit | Line | Data |
---|---|---|
1 | %define apiver 1.4 | |
2 | ||
3 | %define cairomm_ver 1.12.0 | |
4 | %define glibmm_ver 2.48.0 | |
5 | %define pango_ver 1:1.45.1 | |
6 | Summary: A C++ interface for pango library | |
7 | Summary(pl.UTF-8): Interfejs C++ dla biblioteki pango | |
8 | Name: pangomm | |
9 | Version: 2.46.4 | |
10 | Release: 1 | |
11 | License: LGPL v2+ | |
12 | Group: X11/Libraries | |
13 | Source0: https://download.gnome.org/sources/pangomm/2.46/%{name}-%{version}.tar.xz | |
14 | # Source0-md5: 5947d35899db62813531d7ea8faee60c | |
15 | URL: https://www.gtkmm.org/ | |
16 | BuildRequires: autoconf >= 2.59 | |
17 | BuildRequires: automake >= 1:1.11 | |
18 | BuildRequires: cairomm-devel >= %{cairomm_ver} | |
19 | BuildRequires: doxygen >= 1:1.8.9 | |
20 | BuildRequires: glibmm-devel >= %{glibmm_ver} | |
21 | BuildRequires: graphviz | |
22 | BuildRequires: libstdc++-devel >= 6:4.7 | |
23 | BuildRequires: libtool >= 2:2.0 | |
24 | BuildRequires: libxslt-progs | |
25 | BuildRequires: mm-common >= 0.9.10 | |
26 | BuildRequires: pango-devel >= %{pango_ver} | |
27 | BuildRequires: perl-base >= 1:5.6.0 | |
28 | BuildRequires: pkgconfig | |
29 | BuildRequires: rpm-build >= 4.6 | |
30 | BuildRequires: rpmbuild(macros) >= 1.752 | |
31 | BuildRequires: tar >= 1:1.22 | |
32 | BuildRequires: xz | |
33 | Requires: cairomm >= %{cairomm_ver} | |
34 | Requires: glibmm >= %{glibmm_ver} | |
35 | Requires: pango >= %{pango_ver} | |
36 | Provides: gtkmm-pango | |
37 | Obsoletes: gtkmm-pango < 2.14 | |
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} | |
51 | Requires: cairomm-devel >= %{cairomm_ver} | |
52 | Requires: glibmm-devel >= %{glibmm_ver} | |
53 | Requires: libstdc++-devel >= 6:4.7 | |
54 | Requires: pango-devel >= %{pango_ver} | |
55 | Provides: gtkmm-pango-devel | |
56 | Obsoletes: gtkmm-pango-devel < 2.14 | |
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 | |
70 | Obsoletes: gtkmm-pango-static < 2.14 | |
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 | |
83 | BuildArch: noarch | |
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 | |
95 | mm-common-prepare --copy --force | |
96 | %{__libtoolize} | |
97 | %{__aclocal} -I build | |
98 | %{__autoconf} | |
99 | %{__autoheader} | |
100 | %{__automake} | |
101 | %configure \ | |
102 | --enable-maintainer-mode \ | |
103 | --disable-silent-rules \ | |
104 | --enable-static | |
105 | %{__make} | |
106 | ||
107 | %install | |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
110 | %{__make} install \ | |
111 | DESTDIR=$RPM_BUILD_ROOT | |
112 | ||
113 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
114 | ||
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) | |
123 | %doc ChangeLog NEWS README.md | |
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} | |
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} |