]>
Commit | Line | Data |
---|---|---|
42d9aebe JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
4 | # | |
18a79e61 | 5 | Summary: libgee - GObject collection library |
42d9aebe | 6 | Summary(pl.UTF-8): libgee - biblioteka kolekcji oparta na GObject |
18a79e61 | 7 | Name: libgee |
f7c377f8 JB |
8 | Version: 0.18.0 |
9 | Release: 1 | |
3b8ea569 | 10 | License: LGPL v2+ |
18a79e61 | 11 | Group: Libraries |
f7c377f8 JB |
12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libgee/0.18/%{name}-%{version}.tar.xz |
13 | # Source0-md5: 29ea6125e653d7e60b49a9a9544abc96 | |
3b8ea569 | 14 | URL: http://live.gnome.org/Libgee |
42d9aebe | 15 | BuildRequires: autoconf >= 2.50 |
e65876bc JB |
16 | BuildRequires: automake >= 1:1.11 |
17 | BuildRequires: glib2-devel >= 1:2.36.0 | |
ae07db21 | 18 | BuildRequires: gobject-introspection-devel >= 0.9.0 |
3b8ea569 MB |
19 | BuildRequires: libtool |
20 | BuildRequires: pkgconfig | |
ffc03a43 | 21 | BuildRequires: tar >= 1:1.22 |
ffc03a43 | 22 | BuildRequires: xz |
42d9aebe | 23 | # not required for stable releases (all generated files are included) |
571221c0 | 24 | #BuildRequires: vala >= 2:0.25.1 |
e65876bc | 25 | Requires: glib2 >= 1:2.36.0 |
18a79e61 MB |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
29 | libgee is a collection library providing GObject-based interfaces and | |
30 | classes for commonly used data structures. | |
31 | ||
32 | %description -l pl.UTF-8 | |
42d9aebe JB |
33 | libgee jest biblioteką udostępniajacą oparte na bibliotece GObject |
34 | interfejsy oraz klasy powszechnie używanych struktur danych. | |
18a79e61 MB |
35 | |
36 | %package devel | |
37 | Summary: Header files for libgee library | |
38 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgee | |
39 | Group: Development/Libraries | |
40 | Requires: %{name} = %{version}-%{release} | |
e65876bc | 41 | Requires: glib2-devel >= 1:2.36.0 |
18a79e61 MB |
42 | |
43 | %description devel | |
44 | Header files for libgee library. | |
45 | ||
46 | %description devel -l pl.UTF-8 | |
47 | Pliki nagłówkowe biblioteki libgee. | |
48 | ||
42d9aebe JB |
49 | %package static |
50 | Summary: Static libgee library | |
51 | Summary(pl.UTF-8): Statyczna biblioteka libgee | |
52 | Group: Development/Libraries | |
53 | Requires: %{name}-devel = %{version}-%{release} | |
54 | ||
55 | %description static | |
56 | Static libgee library. | |
57 | ||
58 | %description static -l pl.UTF-8 | |
59 | Statyczna biblioteka libgee. | |
60 | ||
61 | %package -n vala-libgee | |
62 | Summary: libgee API for Vala language | |
63 | Summary(pl.UTF-8): API libgee dla języka Vala | |
64 | Group: Development/Libraries | |
65 | Requires: %{name}-devel = %{version}-%{release} | |
571221c0 | 66 | Requires: vala >= 2:0.25.1 |
42d9aebe JB |
67 | |
68 | %description -n vala-libgee | |
69 | libgee API for Vala language. | |
70 | ||
71 | %description -n vala-libgee -l pl.UTF-8 | |
72 | API libgee dla języka Vala. | |
73 | ||
18a79e61 MB |
74 | %prep |
75 | %setup -q | |
76 | ||
77 | %build | |
3b8ea569 MB |
78 | %{__libtoolize} |
79 | %{__aclocal} | |
80 | %{__autoconf} | |
81 | %{__autoheader} | |
82 | %{__automake} | |
f98396b5 | 83 | %configure \ |
42d9aebe JB |
84 | --disable-silent-rules \ |
85 | %{?with_static_libs:--enable-static} | |
18a79e61 MB |
86 | %{__make} |
87 | ||
88 | %install | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %{__make} install \ | |
92 | DESTDIR=$RPM_BUILD_ROOT | |
93 | ||
905005e1 | 94 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgee-0.8.la |
3180cd8e | 95 | |
18a79e61 MB |
96 | %clean |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
99 | %post -p /sbin/ldconfig | |
100 | %postun -p /sbin/ldconfig | |
101 | ||
102 | %files | |
103 | %defattr(644,root,root,755) | |
905005e1 JB |
104 | %doc AUTHORS ChangeLog MAINTAINERS NEWS README |
105 | %attr(755,root,root) %{_libdir}/libgee-0.8.so.*.*.* | |
106 | %attr(755,root,root) %ghost %{_libdir}/libgee-0.8.so.2 | |
107 | %{_libdir}/girepository-1.0/Gee-0.8.typelib | |
18a79e61 MB |
108 | |
109 | %files devel | |
110 | %defattr(644,root,root,755) | |
905005e1 JB |
111 | %attr(755,root,root) %{_libdir}/libgee-0.8.so |
112 | %{_pkgconfigdir}/gee-0.8.pc | |
113 | %{_includedir}/gee-0.8 | |
114 | %{_datadir}/gir-1.0/Gee-0.8.gir | |
42d9aebe | 115 | |
b5418385 | 116 | %if %{with static_libs} |
42d9aebe JB |
117 | %files static |
118 | %defattr(644,root,root,755) | |
905005e1 | 119 | %{_libdir}/libgee-0.8.a |
42d9aebe JB |
120 | %endif |
121 | ||
122 | %files -n vala-libgee | |
123 | %defattr(644,root,root,755) | |
905005e1 | 124 | %{_datadir}/vala/vapi/gee-0.8.vapi |