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