3 %bcond_without apidocs # API documentation (valadoc)
4 %bcond_without static_libs # static library
5 %bcond_with bootstrap # bootstrap without apidocs subpackage (alias for without_apidocs)
10 Summary: libgee - GObject collection library
11 Summary(pl.UTF-8): libgee - biblioteka kolekcji oparta na GObject
17 Source0: http://ftp.gnome.org/pub/GNOME/sources/libgee/0.20/%{name}-%{version}.tar.xz
18 # Source0-md5: e574b3952b93d219b5ec7c74c5892c33
19 Patch0: %{name}-doc.patch
20 URL: https://wiki.gnome.org/Projects/Libgee
21 BuildRequires: autoconf >= 2.50
22 BuildRequires: automake >= 1:1.11
23 BuildRequires: glib2-devel >= 1:2.36.0
24 BuildRequires: gobject-introspection-devel >= 0.9.0
25 BuildRequires: libtool
26 BuildRequires: pkgconfig
27 BuildRequires: tar >= 1:1.22
28 %{?with_apidocs:BuildRequires: valadoc}
30 # not required for stable releases (all generated files are included)
31 #BuildRequires: vala >= 2:0.25.1
32 Requires: glib2 >= 1:2.36.0
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 libgee is a collection library providing GObject-based interfaces and
37 classes for commonly used data structures.
39 %description -l pl.UTF-8
40 libgee jest biblioteką udostępniajacą oparte na bibliotece GObject
41 interfejsy oraz klasy powszechnie używanych struktur danych.
44 Summary: Header files for libgee library
45 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgee
46 Group: Development/Libraries
47 Requires: %{name} = %{version}-%{release}
48 Requires: glib2-devel >= 1:2.36.0
51 Header files for libgee library.
53 %description devel -l pl.UTF-8
54 Pliki nagłówkowe biblioteki libgee.
57 Summary: Static libgee library
58 Summary(pl.UTF-8): Statyczna biblioteka libgee
59 Group: Development/Libraries
60 Requires: %{name}-devel = %{version}-%{release}
63 Static libgee library.
65 %description static -l pl.UTF-8
66 Statyczna biblioteka libgee.
68 %package -n vala-libgee
69 Summary: libgee API for Vala language
70 Summary(pl.UTF-8): API libgee dla języka Vala
71 Group: Development/Libraries
72 Requires: %{name}-devel = %{version}-%{release}
73 Requires: vala >= 2:0.25.1
76 %description -n vala-libgee
77 libgee API for Vala language.
79 %description -n vala-libgee -l pl.UTF-8
80 API libgee dla języka Vala.
83 Summary: API documentation for libgee library
84 Summary(pl.UTF-8): Dokumentacja API biblioteki libgee
89 API documentation for libgee library.
91 %description apidocs -l pl.UTF-8
92 Dokumentacja API biblioteki libgee.
105 %{?with_apidocs:--enable-doc} \
106 --disable-silent-rules \
107 %{?with_static_libs:--enable-static}
111 rm -rf $RPM_BUILD_ROOT
114 DESTDIR=$RPM_BUILD_ROOT
116 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgee-0.8.la
119 rm -rf $RPM_BUILD_ROOT
121 %post -p /sbin/ldconfig
122 %postun -p /sbin/ldconfig
125 %defattr(644,root,root,755)
126 %doc AUTHORS ChangeLog MAINTAINERS NEWS README
127 %attr(755,root,root) %{_libdir}/libgee-0.8.so.*.*.*
128 %attr(755,root,root) %ghost %{_libdir}/libgee-0.8.so.2
129 %{_libdir}/girepository-1.0/Gee-0.8.typelib
132 %defattr(644,root,root,755)
133 %attr(755,root,root) %{_libdir}/libgee-0.8.so
134 %{_pkgconfigdir}/gee-0.8.pc
135 %{_includedir}/gee-0.8
136 %{_datadir}/gir-1.0/Gee-0.8.gir
138 %if %{with static_libs}
140 %defattr(644,root,root,755)
141 %{_libdir}/libgee-0.8.a
144 %files -n vala-libgee
145 %defattr(644,root,root,755)
146 %{_datadir}/vala/vapi/gee-0.8.vapi
150 %defattr(644,root,root,755)
151 %{_datadir}/devhelp/references/gee-0.8