]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
4 | ||
5 | Summary: libgee - GObject collection library | |
6 | Summary(pl.UTF-8): libgee - biblioteka kolekcji oparta na GObject | |
7 | Name: libgee | |
8 | Version: 0.20.0 | |
9 | Release: 1 | |
10 | License: LGPL v2+ | |
11 | Group: Libraries | |
12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libgee/0.20/%{name}-%{version}.tar.xz | |
13 | # Source0-md5: 66a4bfb6d7b03248acb99d140aac127d | |
14 | URL: http://live.gnome.org/Libgee | |
15 | BuildRequires: autoconf >= 2.50 | |
16 | BuildRequires: automake >= 1:1.11 | |
17 | BuildRequires: glib2-devel >= 1:2.36.0 | |
18 | BuildRequires: gobject-introspection-devel >= 0.9.0 | |
19 | BuildRequires: libtool | |
20 | BuildRequires: pkgconfig | |
21 | BuildRequires: tar >= 1:1.22 | |
22 | BuildRequires: xz | |
23 | # not required for stable releases (all generated files are included) | |
24 | #BuildRequires: vala >= 2:0.25.1 | |
25 | Requires: glib2 >= 1:2.36.0 | |
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 | |
33 | libgee jest biblioteką udostępniajacą oparte na bibliotece GObject | |
34 | interfejsy oraz klasy powszechnie używanych struktur danych. | |
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} | |
41 | Requires: glib2-devel >= 1:2.36.0 | |
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 | ||
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} | |
66 | Requires: vala >= 2:0.25.1 | |
67 | %if "%{_rpmversion}" >= "5" | |
68 | BuildArch: noarch | |
69 | %endif | |
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 | ||
77 | %prep | |
78 | %setup -q | |
79 | ||
80 | %build | |
81 | %{__libtoolize} | |
82 | %{__aclocal} | |
83 | %{__autoconf} | |
84 | %{__autoheader} | |
85 | %{__automake} | |
86 | %configure \ | |
87 | --disable-silent-rules \ | |
88 | %{?with_static_libs:--enable-static} | |
89 | %{__make} | |
90 | ||
91 | %install | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %{__make} install \ | |
95 | DESTDIR=$RPM_BUILD_ROOT | |
96 | ||
97 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgee-0.8.la | |
98 | ||
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) | |
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 | |
111 | ||
112 | %files devel | |
113 | %defattr(644,root,root,755) | |
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 | |
118 | ||
119 | %if %{with static_libs} | |
120 | %files static | |
121 | %defattr(644,root,root,755) | |
122 | %{_libdir}/libgee-0.8.a | |
123 | %endif | |
124 | ||
125 | %files -n vala-libgee | |
126 | %defattr(644,root,root,755) | |
127 | %{_datadir}/vala/vapi/gee-0.8.vapi |