]>
Commit | Line | Data |
---|---|---|
42d9aebe JB |
1 | # |
2 | # Conditional build: | |
3384c4dd | 3 | %bcond_without apidocs # API documentation (valadoc) |
42d9aebe | 4 | %bcond_without static_libs # static library |
3384c4dd | 5 | %bcond_with bootstrap # bootstrap without apidocs subpackage (alias for without_apidocs) |
77b39899 | 6 | |
3384c4dd JB |
7 | %if %{with bootstrap} |
8 | %undefine with_apidocs | |
9 | %endif | |
18a79e61 | 10 | Summary: libgee - GObject collection library |
42d9aebe | 11 | Summary(pl.UTF-8): libgee - biblioteka kolekcji oparta na GObject |
18a79e61 | 12 | Name: libgee |
c3a2d38b | 13 | Version: 0.20.3 |
8222dc33 | 14 | Release: 1 |
3b8ea569 | 15 | License: LGPL v2+ |
18a79e61 | 16 | Group: Libraries |
7fc2de25 | 17 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libgee/0.20/%{name}-%{version}.tar.xz |
c3a2d38b | 18 | # Source0-md5: e574b3952b93d219b5ec7c74c5892c33 |
3384c4dd | 19 | Patch0: %{name}-doc.patch |
76b17eb4 | 20 | URL: https://wiki.gnome.org/Projects/Libgee |
42d9aebe | 21 | BuildRequires: autoconf >= 2.50 |
e65876bc JB |
22 | BuildRequires: automake >= 1:1.11 |
23 | BuildRequires: glib2-devel >= 1:2.36.0 | |
ae07db21 | 24 | BuildRequires: gobject-introspection-devel >= 0.9.0 |
3b8ea569 MB |
25 | BuildRequires: libtool |
26 | BuildRequires: pkgconfig | |
ffc03a43 | 27 | BuildRequires: tar >= 1:1.22 |
3384c4dd | 28 | %{?with_apidocs:BuildRequires: valadoc} |
ffc03a43 | 29 | BuildRequires: xz |
42d9aebe | 30 | # not required for stable releases (all generated files are included) |
571221c0 | 31 | #BuildRequires: vala >= 2:0.25.1 |
e65876bc | 32 | Requires: glib2 >= 1:2.36.0 |
18a79e61 MB |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
34 | ||
35 | %description | |
36 | libgee is a collection library providing GObject-based interfaces and | |
37 | classes for commonly used data structures. | |
38 | ||
39 | %description -l pl.UTF-8 | |
42d9aebe JB |
40 | libgee jest biblioteką udostępniajacą oparte na bibliotece GObject |
41 | interfejsy oraz klasy powszechnie używanych struktur danych. | |
18a79e61 MB |
42 | |
43 | %package devel | |
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} | |
e65876bc | 48 | Requires: glib2-devel >= 1:2.36.0 |
18a79e61 MB |
49 | |
50 | %description devel | |
51 | Header files for libgee library. | |
52 | ||
53 | %description devel -l pl.UTF-8 | |
54 | Pliki nagłówkowe biblioteki libgee. | |
55 | ||
42d9aebe JB |
56 | %package static |
57 | Summary: Static libgee library | |
58 | Summary(pl.UTF-8): Statyczna biblioteka libgee | |
59 | Group: Development/Libraries | |
60 | Requires: %{name}-devel = %{version}-%{release} | |
61 | ||
62 | %description static | |
63 | Static libgee library. | |
64 | ||
65 | %description static -l pl.UTF-8 | |
66 | Statyczna biblioteka libgee. | |
67 | ||
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} | |
571221c0 | 73 | Requires: vala >= 2:0.25.1 |
77b39899 | 74 | BuildArch: noarch |
42d9aebe JB |
75 | |
76 | %description -n vala-libgee | |
77 | libgee API for Vala language. | |
78 | ||
79 | %description -n vala-libgee -l pl.UTF-8 | |
80 | API libgee dla języka Vala. | |
81 | ||
3384c4dd JB |
82 | %package apidocs |
83 | Summary: API documentation for libgee library | |
84 | Summary(pl.UTF-8): Dokumentacja API biblioteki libgee | |
85 | Group: Documentation | |
9c5992a4 | 86 | BuildArch: noarch |
3384c4dd JB |
87 | |
88 | %description apidocs | |
89 | API documentation for libgee library. | |
90 | ||
91 | %description apidocs -l pl.UTF-8 | |
92 | Dokumentacja API biblioteki libgee. | |
93 | ||
18a79e61 MB |
94 | %prep |
95 | %setup -q | |
3384c4dd | 96 | %patch0 -p1 |
18a79e61 MB |
97 | |
98 | %build | |
3b8ea569 MB |
99 | %{__libtoolize} |
100 | %{__aclocal} | |
101 | %{__autoconf} | |
102 | %{__autoheader} | |
103 | %{__automake} | |
f98396b5 | 104 | %configure \ |
3384c4dd | 105 | %{?with_apidocs:--enable-doc} \ |
42d9aebe JB |
106 | --disable-silent-rules \ |
107 | %{?with_static_libs:--enable-static} | |
18a79e61 MB |
108 | %{__make} |
109 | ||
110 | %install | |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
113 | %{__make} install \ | |
114 | DESTDIR=$RPM_BUILD_ROOT | |
115 | ||
905005e1 | 116 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgee-0.8.la |
3180cd8e | 117 | |
18a79e61 MB |
118 | %clean |
119 | rm -rf $RPM_BUILD_ROOT | |
120 | ||
121 | %post -p /sbin/ldconfig | |
122 | %postun -p /sbin/ldconfig | |
123 | ||
124 | %files | |
125 | %defattr(644,root,root,755) | |
905005e1 JB |
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 | |
18a79e61 MB |
130 | |
131 | %files devel | |
132 | %defattr(644,root,root,755) | |
905005e1 JB |
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 | |
42d9aebe | 137 | |
b5418385 | 138 | %if %{with static_libs} |
42d9aebe JB |
139 | %files static |
140 | %defattr(644,root,root,755) | |
905005e1 | 141 | %{_libdir}/libgee-0.8.a |
42d9aebe JB |
142 | %endif |
143 | ||
144 | %files -n vala-libgee | |
145 | %defattr(644,root,root,755) | |
905005e1 | 146 | %{_datadir}/vala/vapi/gee-0.8.vapi |
3384c4dd JB |
147 | |
148 | %if %{with apidocs} | |
149 | %files apidocs | |
150 | %defattr(644,root,root,755) | |
151 | %{_datadir}/devhelp/references/gee-0.8 | |
152 | %endif |