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