]> git.pld-linux.org Git - packages/atkmm.git/blob - atkmm.spec
add apidocs bcond
[packages/atkmm.git] / atkmm.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs         # API documentation
4 %bcond_without  static_libs     # static library
5
6 Summary:        A C++ interface for atk library
7 Summary(pl.UTF-8):      Interfejs C++ dla biblioteki atk
8 Name:           atkmm
9 Version:        2.28.4
10 Release:        1
11 License:        LGPL v2.1+
12 Group:          Libraries
13 Source0:        https://download.gnome.org/sources/atkmm/2.28/%{name}-%{version}.tar.xz
14 # Source0-md5:  e0f7271990c89a6c9987f215ba47bfc5
15 URL:            https://www.gtkmm.org/
16 BuildRequires:  atk-devel >= 1:2.18.0
17 BuildRequires:  autoconf >= 2.59
18 BuildRequires:  automake >= 1:1.9
19 %{?with_apidocs:BuildRequires:  doxygen >= 1:1.8.9}
20 BuildRequires:  glibmm-devel >= 2.46.2
21 %{?with_apidocs:BuildRequires:  graphviz}
22 BuildRequires:  libstdc++-devel >= 6:4.7
23 BuildRequires:  libtool >= 2:2.0
24 %{?with_apidocs:BuildRequires:  libxslt-progs}
25 BuildRequires:  mm-common >= 0.9.10
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:       atk >= 1:2.18.0
32 Requires:       glibmm >= 2.46.2
33 Provides:       gtkmm-atk
34 Obsoletes:      gtkmm-atk < 2.22.0
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 %description
38 A C++ interface for atk library.
39
40 %description -l pl.UTF-8
41 Interfejs C++ dla biblioteki atk.
42
43 %package devel
44 Summary:        Header files for atkmm library
45 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki atkmm
46 Group:          Development/Libraries
47 Requires:       %{name} = %{version}-%{release}
48 Requires:       atk-devel >= 1:2.18.0
49 Requires:       glibmm-devel >= 2.46.2
50 Requires:       libstdc++-devel >= 6:4.7
51 Provides:       gtkmm-atk-devel
52 Obsoletes:      gtkmm-atk-devel < 2.22.0
53
54 %description devel
55 Header files for atkmm library.
56
57 %description devel -l pl.UTF-8
58 Pliki nagłówkowe biblioteki atkmm.
59
60 %package apidocs
61 Summary:        atkmm API documentation
62 Summary(pl.UTF-8):      Dokumentacja API biblioteki atkmm
63 Group:          Documentation
64 Requires:       gtk-doc-common
65 BuildArch:      noarch
66
67 %description apidocs
68 API documentation for atkmm library.
69
70 %description apidocs -l pl.UTF-8
71 Dokumentacja API biblioteki atkmm.
72
73 %package static
74 Summary:        atkmm static library
75 Summary(pl.UTF-8):      Biblioteka statyczna atkmm
76 Group:          Development/Libraries
77 Requires:       %{name}-devel = %{version}-%{release}
78 Provides:       gtkmm-atk-static
79 Obsoletes:      gtkmm-atk-static < 2.22.0
80
81 %description static
82 Static atkmm library.
83
84 %description static -l pl.UTF-8
85 Statyczna biblioteka atkmm.
86
87 %prep
88 %setup -q
89
90 %build
91 mm-common-prepare --copy --force
92 %{__libtoolize}
93 %{__aclocal} -I build
94 %{__autoconf}
95 %{__autoheader}
96 %{__automake}
97 %configure \
98         %{__enable_disable apidocs documentation} \
99         --enable-maintainer-mode \
100         --disable-silent-rules \
101         %{?with_static_libs:--enable-static}
102 %{__make}
103
104 %install
105 rm -rf $RPM_BUILD_ROOT
106
107 %{__make} install \
108         DESTDIR=$RPM_BUILD_ROOT \
109         libdocdir=%{_gtkdocdir}/atkmm-1.6 \
110         devhelpdir=%{_gtkdocdir}/atkmm-1.6
111
112 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
113
114 %clean
115 rm -rf $RPM_BUILD_ROOT
116
117 %post   -p /sbin/ldconfig
118 %postun -p /sbin/ldconfig
119
120 %files
121 %defattr(644,root,root,755)
122 %doc ChangeLog NEWS README.md
123 %attr(755,root,root) %{_libdir}/libatkmm-1.6.so.*.*.*
124 %attr(755,root,root) %ghost %{_libdir}/libatkmm-1.6.so.1
125
126 %files devel
127 %defattr(644,root,root,755)
128 %attr(755,root,root) %{_libdir}/libatkmm-1.6.so
129 %{_libdir}/atkmm-1.6
130 %{_includedir}/atkmm-1.6
131 %{_pkgconfigdir}/atkmm-1.6.pc
132
133 %if %{with apidocs}
134 %files apidocs
135 %defattr(644,root,root,755)
136 %{_gtkdocdir}/atkmm-1.6
137 %endif
138
139 %if %{with static_libs}
140 %files static
141 %defattr(644,root,root,755)
142 %{_libdir}/libatkmm-1.6.a
143 %endif
This page took 0.085835 seconds and 4 git commands to generate.