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