]>
Commit | Line | Data |
---|---|---|
42d9aebe JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
77b39899 | 4 | |
18a79e61 | 5 | Summary: libgee - GObject collection library |
42d9aebe | 6 | Summary(pl.UTF-8): libgee - biblioteka kolekcji oparta na GObject |
18a79e61 | 7 | Name: libgee |
7fc2de25 | 8 | Version: 0.20.0 |
8222dc33 | 9 | Release: 1 |
3b8ea569 | 10 | License: LGPL v2+ |
18a79e61 | 11 | Group: Libraries |
7fc2de25 MB |
12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libgee/0.20/%{name}-%{version}.tar.xz |
13 | # Source0-md5: 66a4bfb6d7b03248acb99d140aac127d | |
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 |
77b39899 ER |
67 | %if "%{_rpmversion}" >= "5" |
68 | BuildArch: noarch | |
69 | %endif | |
42d9aebe JB |
70 | |
71 | %description -n vala-libgee | |
72 | libgee API for Vala language. | |
73 | ||
74 | %description -n vala-libgee -l pl.UTF-8 | |
75 | API libgee dla języka Vala. | |
76 | ||
18a79e61 MB |
77 | %prep |
78 | %setup -q | |
79 | ||
80 | %build | |
3b8ea569 MB |
81 | %{__libtoolize} |
82 | %{__aclocal} | |
83 | %{__autoconf} | |
84 | %{__autoheader} | |
85 | %{__automake} | |
f98396b5 | 86 | %configure \ |
42d9aebe JB |
87 | --disable-silent-rules \ |
88 | %{?with_static_libs:--enable-static} | |
18a79e61 MB |
89 | %{__make} |
90 | ||
91 | %install | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %{__make} install \ | |
95 | DESTDIR=$RPM_BUILD_ROOT | |
96 | ||
905005e1 | 97 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgee-0.8.la |
3180cd8e | 98 | |
18a79e61 MB |
99 | %clean |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
102 | %post -p /sbin/ldconfig | |
103 | %postun -p /sbin/ldconfig | |
104 | ||
105 | %files | |
106 | %defattr(644,root,root,755) | |
905005e1 JB |
107 | %doc AUTHORS ChangeLog MAINTAINERS NEWS README |
108 | %attr(755,root,root) %{_libdir}/libgee-0.8.so.*.*.* | |
109 | %attr(755,root,root) %ghost %{_libdir}/libgee-0.8.so.2 | |
110 | %{_libdir}/girepository-1.0/Gee-0.8.typelib | |
18a79e61 MB |
111 | |
112 | %files devel | |
113 | %defattr(644,root,root,755) | |
905005e1 JB |
114 | %attr(755,root,root) %{_libdir}/libgee-0.8.so |
115 | %{_pkgconfigdir}/gee-0.8.pc | |
116 | %{_includedir}/gee-0.8 | |
117 | %{_datadir}/gir-1.0/Gee-0.8.gir | |
42d9aebe | 118 | |
b5418385 | 119 | %if %{with static_libs} |
42d9aebe JB |
120 | %files static |
121 | %defattr(644,root,root,755) | |
905005e1 | 122 | %{_libdir}/libgee-0.8.a |
42d9aebe JB |
123 | %endif |
124 | ||
125 | %files -n vala-libgee | |
126 | %defattr(644,root,root,755) | |
905005e1 | 127 | %{_datadir}/vala/vapi/gee-0.8.vapi |