]>
Commit | Line | Data |
---|---|---|
1 | # NOTE: for versions >= 1.16 (API 1.16) see cairomm1.16.spec | |
2 | # | |
3 | # Conditional build: | |
4 | %bcond_without static_libs # static library | |
5 | ||
6 | Summary: C++ wrapper for cairo | |
7 | Summary(pl.UTF-8): Interfejs C++ do cairo | |
8 | Name: cairomm | |
9 | # keep 1.14.x here (API 1.0), see note above | |
10 | Version: 1.14.5 | |
11 | Release: 1 | |
12 | License: LGPL v2+ | |
13 | Group: Libraries | |
14 | Source0: https://www.cairographics.org/releases/%{name}-%{version}.tar.xz | |
15 | # Source0-md5: 0974ef291d491f22df287f588580677d | |
16 | URL: https://www.cairographics.org/ | |
17 | BuildRequires: autoconf >= 2.62 | |
18 | BuildRequires: automake >= 1:1.11 | |
19 | BuildRequires: cairo-devel >= 1.12.0 | |
20 | BuildRequires: doxygen >= 1:1.8.9 | |
21 | BuildRequires: graphviz | |
22 | BuildRequires: libsigc++-devel >= 1:2.6.0 | |
23 | BuildRequires: libstdc++-devel >= 6:4.6 | |
24 | BuildRequires: libtool >= 2:1.5 | |
25 | BuildRequires: mm-common >= 0.8 | |
26 | BuildRequires: pkgconfig | |
27 | BuildRequires: rpm-build >= 4.6 | |
28 | BuildRequires: rpmbuild(macros) >= 1.752 | |
29 | BuildRequires: tar >= 1:1.22 | |
30 | BuildRequires: xz | |
31 | Requires: cairo >= 1.12.0 | |
32 | Requires: libsigc++ >= 1:2.6.0 | |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
34 | ||
35 | %description | |
36 | C++ wrapper for cairo. | |
37 | ||
38 | %description -l pl.UTF-8 | |
39 | Interfejs C++ do cairo. | |
40 | ||
41 | %package devel | |
42 | Summary: Development files for cairomm library | |
43 | Summary(pl.UTF-8): Pliki programistyczne biblioteki cairomm | |
44 | Group: Development/Libraries | |
45 | Requires: %{name} = %{version}-%{release} | |
46 | Requires: cairo-devel >= 1.12.0 | |
47 | Requires: libsigc++-devel >= 1:2.6.0 | |
48 | Requires: libstdc++-devel >= 6:4.6 | |
49 | ||
50 | %description devel | |
51 | Development files for cairomm library. | |
52 | ||
53 | %description devel -l pl.UTF-8 | |
54 | Pliki programistyczne biblioteki cairomm. | |
55 | ||
56 | %package static | |
57 | Summary: Static cairomm library | |
58 | Summary(pl.UTF-8): Statyczna biblioteka cairomm | |
59 | Group: Development/Libraries | |
60 | Requires: %{name}-devel = %{version}-%{release} | |
61 | ||
62 | %description static | |
63 | Static cairomm library. | |
64 | ||
65 | %description static -l pl.UTF-8 | |
66 | Statyczna biblioteka cairomm. | |
67 | ||
68 | %package apidocs | |
69 | Summary: cairomm API documentation | |
70 | Summary(pl.UTF-8): Dokumentacja API biblioteki cairomm | |
71 | Group: Documentation | |
72 | BuildArch: noarch | |
73 | ||
74 | %description apidocs | |
75 | API and internal documentation for cairomm library. | |
76 | ||
77 | %description apidocs -l pl.UTF-8 | |
78 | Dokumentacja API biblioteki cairomm. | |
79 | ||
80 | %prep | |
81 | %setup -q | |
82 | ||
83 | %build | |
84 | mm-common-prepare --copy --force | |
85 | %{__libtoolize} | |
86 | %{__aclocal} -I build | |
87 | %{__autoconf} | |
88 | %{__autoheader} | |
89 | %{__automake} | |
90 | %configure \ | |
91 | --disable-silent-rules \ | |
92 | %{?with_static_libs:--enable-static} | |
93 | %{__make} | |
94 | ||
95 | %install | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | %{__make} install \ | |
99 | DESTDIR=$RPM_BUILD_ROOT | |
100 | ||
101 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcairomm-1.0.la | |
102 | ||
103 | %clean | |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
106 | %post -p /sbin/ldconfig | |
107 | %postun -p /sbin/ldconfig | |
108 | ||
109 | %files | |
110 | %defattr(644,root,root,755) | |
111 | %doc ChangeLog NEWS README.md | |
112 | %attr(755,root,root) %{_libdir}/libcairomm-1.0.so.*.*.* | |
113 | %attr(755,root,root) %ghost %{_libdir}/libcairomm-1.0.so.1 | |
114 | ||
115 | %files devel | |
116 | %defattr(644,root,root,755) | |
117 | %attr(755,root,root) %{_libdir}/libcairomm-1.0.so | |
118 | %{_libdir}/cairomm-1.0 | |
119 | %{_includedir}/cairomm-1.0 | |
120 | %{_pkgconfigdir}/cairomm-1.0.pc | |
121 | %{_pkgconfigdir}/cairomm-ft-1.0.pc | |
122 | %{_pkgconfigdir}/cairomm-pdf-1.0.pc | |
123 | %{_pkgconfigdir}/cairomm-png-1.0.pc | |
124 | %{_pkgconfigdir}/cairomm-ps-1.0.pc | |
125 | %{_pkgconfigdir}/cairomm-svg-1.0.pc | |
126 | %{_pkgconfigdir}/cairomm-xlib-1.0.pc | |
127 | %{_pkgconfigdir}/cairomm-xlib-xrender-1.0.pc | |
128 | ||
129 | %if %{with static_libs} | |
130 | %files static | |
131 | %defattr(644,root,root,755) | |
132 | %{_libdir}/libcairomm-1.0.a | |
133 | %endif | |
134 | ||
135 | %files apidocs | |
136 | %defattr(644,root,root,755) | |
137 | %{_docdir}/cairomm-1.0 | |
138 | %{_datadir}/devhelp/books/cairomm-1.0 |