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