]> git.pld-linux.org Git - packages/cairomm1.16.git/blob - cairomm1.16.spec
add apidocs bcond
[packages/cairomm1.16.git] / cairomm1.16.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs         # API documentation
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:           cairomm1.16
9 Version:        1.18.0
10 Release:        1
11 License:        LGPL v2+
12 Group:          Libraries
13 Source0:        https://www.cairographics.org/releases/cairomm-%{version}.tar.xz
14 # Source0-md5:  4c7afc4ab5177655724ea4b31794db30
15 URL:            https://www.cairographics.org/
16 BuildRequires:  autoconf >= 2.62
17 BuildRequires:  automake >= 1:1.11
18 BuildRequires:  cairo-devel >= 1.14.0
19 %{?with_apidocs:BuildRequires:  doxygen >= 1:1.8.9}
20 %{?with_apidocs:BuildRequires:  graphviz}
21 BuildRequires:  libsigc++3-devel >= 1:3.0.0
22 BuildRequires:  libstdc++-devel >= 6:7
23 BuildRequires:  libtool >= 2:1.5
24 %{?with_apidocs:BuildRequires:  libxslt-progs}
25 BuildRequires:  mm-common >= 0.9.12
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.14.0
32 Requires:       libsigc++3 >= 1:3.0.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.14.0
47 Requires:       libsigc++3-devel >= 1:3.0.0
48 Requires:       libstdc++-devel >= 6:7
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 -n cairomm-%{version}
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         %{__enable_disable apidocs documentation}
94 %{__make}
95
96 %install
97 rm -rf $RPM_BUILD_ROOT
98
99 %{__make} install \
100         DESTDIR=$RPM_BUILD_ROOT
101
102 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcairomm-1.16.la
103
104 %clean
105 rm -rf $RPM_BUILD_ROOT
106
107 %post   -p /sbin/ldconfig
108 %postun -p /sbin/ldconfig
109
110 %files
111 %defattr(644,root,root,755)
112 %doc ChangeLog NEWS README.md
113 %attr(755,root,root) %{_libdir}/libcairomm-1.16.so.*.*.*
114 %attr(755,root,root) %ghost %{_libdir}/libcairomm-1.16.so.1
115
116 %files devel
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_libdir}/libcairomm-1.16.so
119 %{_libdir}/cairomm-1.16
120 %{_includedir}/cairomm-1.16
121 %{_pkgconfigdir}/cairomm-1.16.pc
122 %{_pkgconfigdir}/cairomm-ft-1.16.pc
123 %{_pkgconfigdir}/cairomm-pdf-1.16.pc
124 %{_pkgconfigdir}/cairomm-png-1.16.pc
125 %{_pkgconfigdir}/cairomm-ps-1.16.pc
126 %{_pkgconfigdir}/cairomm-svg-1.16.pc
127 %{_pkgconfigdir}/cairomm-xlib-1.16.pc
128 %{_pkgconfigdir}/cairomm-xlib-xrender-1.16.pc
129
130 %if %{with static_libs}
131 %files static
132 %defattr(644,root,root,755)
133 %{_libdir}/libcairomm-1.16.a
134 %endif
135
136 %if %{with apidocs}
137 %files apidocs
138 %defattr(644,root,root,755)
139 %{_docdir}/cairomm-1.16
140 %{_datadir}/devhelp/books/cairomm-1.16
141 %endif
This page took 0.133196 seconds and 4 git commands to generate.