]>
Commit | Line | Data |
---|---|---|
ba9348f2 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
4 | # | |
fb75a820 | 5 | Summary: C++ bindings for gdl library |
ba9348f2 | 6 | Summary(pl.UTF-8): Wiązania C++ do biblioteki gdl |
fb75a820 | 7 | Name: gdlmm |
87670517 JR |
8 | Version: 3.7.3 |
9 | Release: 1 | |
ba9348f2 | 10 | License: LGPL v2.1+ |
fb75a820 | 11 | Group: Libraries |
87670517 JR |
12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gdlmm/3.7/%{name}-%{version}.tar.xz |
13 | # Source0-md5: 518623e187d8bbe4c40c1d0dc3663e05 | |
ba9348f2 JB |
14 | URL: https://github.com/GNOME/gdlmm |
15 | BuildRequires: autoconf >= 2.59 | |
fb75a820 | 16 | BuildRequires: automake >= 1:1.9 |
ba9348f2 | 17 | BuildRequires: gdl-devel >= 3.7 |
fb75a820 JK |
18 | BuildRequires: glibmm-devel >= 2.16.0 |
19 | BuildRequires: gtkmm3-devel >= 3.0.0 | |
ba9348f2 JB |
20 | BuildRequires: libstdc++-devel |
21 | BuildRequires: libtool >= 2:1.5 | |
22 | BuildRequires: mm-common >= 0.8 | |
fb75a820 | 23 | BuildRequires: pkgconfig |
ba9348f2 JB |
24 | Requires: gdl >= 3.7 |
25 | Requires: glibmm >= 2.16.0 | |
fb75a820 JK |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
29 | C++ bindings for gdl library. | |
30 | ||
31 | %description -l pl.UTF-8 | |
247d8c9a | 32 | Wiązania C++ do biblioteki gdl. |
fb75a820 JK |
33 | |
34 | %package devel | |
35 | Summary: Header files for gdlmm library | |
36 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gdlmm | |
37 | Group: Development/Libraries | |
38 | Requires: %{name} = %{version}-%{release} | |
ba9348f2 JB |
39 | Requires: gdl-devel >= 3.7 |
40 | Requires: glibmm-devel >= 2.16.0 | |
fb75a820 JK |
41 | Requires: gtkmm3-devel >= 3.0.0 |
42 | ||
43 | %description devel | |
44 | Header files for gdlmm library. | |
45 | ||
46 | %description devel -l pl.UTF-8 | |
47 | Pliki nagłówkowe biblioteki gdlmm. | |
48 | ||
49 | %package static | |
50 | Summary: Static gdlmm library | |
51 | Summary(pl.UTF-8): Statyczna biblioteka gdlmm | |
52 | Group: Development/Libraries | |
53 | Requires: %{name}-devel = %{version}-%{release} | |
54 | ||
55 | %description static | |
56 | Static gdlmm library. | |
57 | ||
58 | %description static -l pl.UTF-8 | |
59 | Statyczna biblioteka gdlmm. | |
60 | ||
61 | %package apidocs | |
62 | Summary: gdlmm API documentation | |
63 | Summary(pl.UTF-8): Dokumentacja API biblioteki gdlmm | |
64 | Group: Documentation | |
cd41ff88 ER |
65 | %if "%{_rpmversion}" >= "5" |
66 | BuildArch: noarch | |
67 | %endif | |
fb75a820 JK |
68 | |
69 | %description apidocs | |
70 | API and internal documentation for gdlmm library. | |
71 | ||
72 | %description apidocs -l pl.UTF-8 | |
73 | Dokumentacja API biblioteki gdlmm. | |
74 | ||
75 | %prep | |
76 | %setup -q | |
77 | ||
78 | %build | |
79 | %configure \ | |
ba9348f2 | 80 | %{?with_static_libs:--enable-static} \ |
247d8c9a | 81 | --disable-silent-rules |
fb75a820 JK |
82 | |
83 | %{__make} | |
84 | ||
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %{__make} install \ | |
89 | DESTDIR=$RPM_BUILD_ROOT | |
90 | ||
ba9348f2 | 91 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgdlmm-3.0.la |
247d8c9a | 92 | |
fb75a820 JK |
93 | %clean |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %post -p /sbin/ldconfig | |
97 | %postun -p /sbin/ldconfig | |
98 | ||
99 | %files | |
100 | %defattr(644,root,root,755) | |
101 | %doc AUTHORS ChangeLog NEWS README | |
102 | %attr(755,root,root) %{_libdir}/libgdlmm-3.0.so.*.*.* | |
87670517 | 103 | %attr(755,root,root) %ghost %{_libdir}/libgdlmm-3.0.so.2 |
fb75a820 JK |
104 | |
105 | %files devel | |
106 | %defattr(644,root,root,755) | |
107 | %attr(755,root,root) %{_libdir}/libgdlmm-3.0.so | |
108 | %{_libdir}/gdlmm-3.0 | |
fb75a820 JK |
109 | %{_includedir}/gdlmm-3.0 |
110 | %{_pkgconfigdir}/gdlmm-3.0.pc | |
111 | ||
ba9348f2 | 112 | %if %{with static_libs} |
fb75a820 JK |
113 | %files static |
114 | %defattr(644,root,root,755) | |
115 | %{_libdir}/libgdlmm-3.0.a | |
ba9348f2 | 116 | %endif |
fb75a820 JK |
117 | |
118 | %files apidocs | |
119 | %defattr(644,root,root,755) | |
120 | %{_docdir}/gdlmm-3.0 | |
121 | %{_datadir}/devhelp/books/gdlmm-3.0 |