]>
Commit | Line | Data |
---|---|---|
0936e62b MB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # don't build API documentation | |
4 | %bcond_without python # don't build python libraries | |
a1d7c860 | 5 | |
0936e62b MB |
6 | Summary: Beagle C interface |
7 | Summary(pl.UTF-8): Interfejs w C do Beagle | |
8 | Name: libbeagle | |
6c7c308e | 9 | Version: 0.3.9 |
a1d7c860 | 10 | Release: 5 |
0936e62b MB |
11 | License: MIT |
12 | Group: Libraries | |
13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libbeagle/0.3/%{name}-%{version}.tar.bz2 | |
6c7c308e | 14 | # Source0-md5: af1e25bdfb704ee87047bc49a73fbb10 |
a265c034 | 15 | Patch0: %{name}-am.patch |
0936e62b MB |
16 | URL: http://beagle-project.org/ |
17 | BuildRequires: autoconf | |
18 | BuildRequires: automake | |
5dd8c650 | 19 | BuildRequires: docbook-dtd412-xml |
0936e62b MB |
20 | BuildRequires: glib2-devel >= 1:2.6.0 |
21 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.0} | |
22 | BuildRequires: libtool | |
23 | BuildRequires: libxml2-devel >= 1:2.6.19 | |
24 | BuildRequires: pkgconfig | |
25 | %if %{with python} | |
26 | BuildRequires: python-devel | |
27 | BuildRequires: python-pygobject-devel >= 2.6.0 | |
28 | BuildRequires: python-pygtk-devel >= 2:2.6.0 | |
5dd8c650 | 29 | BuildRequires: rpm-pythonprov |
0936e62b MB |
30 | %endif |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
33 | %description | |
34 | Beagle C interface. | |
35 | ||
36 | %description -l pl.UTF-8 | |
37 | Interfejs w C do Beagle. | |
38 | ||
39 | %package devel | |
40 | Summary: Header files for libbeagle library | |
41 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libbeagle | |
42 | Group: Development/Libraries | |
43 | Requires: %{name} = %{version}-%{release} | |
44 | Requires: glib2-devel >= 1:2.6.0 | |
45 | Requires: libxml2-devel >= 1:2.6.19 | |
46 | ||
47 | %description devel | |
48 | Header files for libbeagle library. | |
49 | ||
50 | %description devel -l pl.UTF-8 | |
51 | Pliki nagłówkowe biblioteki libbeagle. | |
52 | ||
53 | %package static | |
54 | Summary: Static libbeagle library | |
55 | Summary(pl.UTF-8): Statyczna biblioteka libbeagle | |
56 | Group: Development/Libraries | |
57 | Requires: %{name}-devel = %{version}-%{release} | |
58 | ||
59 | %description static | |
60 | Static libbeagle library. | |
61 | ||
62 | %description static -l pl.UTF-8 | |
63 | Statyczna biblioteka libbeagle. | |
64 | ||
65 | %package apidocs | |
66 | Summary: libbeagle API documentation | |
67 | Summary(pl.UTF-8): Dokumentacja API biblioteki libbeagle | |
68 | Group: Documentation | |
69 | Requires: gtk-doc-common | |
a1d7c860 ER |
70 | %if "%{_rpmversion}" >= "5" |
71 | BuildArch: noarch | |
72 | %endif | |
0936e62b MB |
73 | |
74 | %description apidocs | |
75 | libbeagle API documentation. | |
76 | ||
77 | %description apidocs -l pl.UTF-8 | |
78 | Dokumentacja API biblioteki libbeagle. | |
79 | ||
80 | %package examples | |
81 | Summary: libbeagle - example programs | |
82 | Summary(pl.UTF-8): libbeagle - przykładowe programy | |
83 | Group: Libraries | |
a1d7c860 ER |
84 | %if "%{_rpmversion}" >= "5" |
85 | BuildArch: noarch | |
86 | %endif | |
0936e62b MB |
87 | |
88 | %description examples | |
89 | libbeagle - example programs. | |
90 | ||
91 | %description examples -l pl.UTF-8 | |
92 | libbeagle - przykładowe programy. | |
93 | ||
94 | %package -n python-beagle | |
95 | Summary: Beagle Python bindings | |
96 | Summary(pl.UTF-8): Wiązania języka Python dla Beagle | |
97 | Group: Libraries/Python | |
98 | Requires: %{name} = %{version}-%{release} | |
a1d7c860 | 99 | Requires: python-libs |
0936e62b MB |
100 | |
101 | %description -n python-beagle | |
102 | Beagle Python bindings. | |
103 | ||
104 | %description -n python-beagle -l pl.UTF-8 | |
105 | Wiązania języka Python dla Beagle. | |
106 | ||
107 | %prep | |
108 | %setup -q | |
a265c034 | 109 | %patch0 -p1 |
0936e62b MB |
110 | |
111 | %build | |
112 | %{__libtoolize} | |
113 | %{__aclocal} | |
114 | %{__autoconf} | |
115 | %{__autoheader} | |
116 | %{__automake} | |
117 | %configure \ | |
118 | %{?with_apidocs:--enable-gtk-doc} \ | |
119 | --with-html-dir=%{_gtkdocdir} | |
120 | ||
6c7c308e MB |
121 | %{__make} \ |
122 | pythondir=%{py_sitedir} | |
0936e62b MB |
123 | |
124 | %install | |
125 | rm -rf $RPM_BUILD_ROOT | |
126 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
127 | ||
128 | %{__make} install \ | |
6c7c308e MB |
129 | DESTDIR=$RPM_BUILD_ROOT \ |
130 | pythondir=%{py_sitedir} | |
0936e62b MB |
131 | |
132 | cp examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
133 | ||
134 | %if %{with python} | |
6c7c308e MB |
135 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/beagle/beagle.{a,la} |
136 | %py_postclean | |
0936e62b MB |
137 | %endif |
138 | ||
139 | %clean | |
140 | rm -rf $RPM_BUILD_ROOT | |
141 | ||
142 | %post -p /sbin/ldconfig | |
143 | %postun -p /sbin/ldconfig | |
144 | ||
145 | %files | |
146 | %defattr(644,root,root,755) | |
147 | %doc AUTHORS COPYING ChangeLog NEWS README | |
148 | %attr(755,root,root) %{_libdir}/libbeagle.so.*.*.* | |
6c7c308e | 149 | %attr(755,root,root) %ghost %{_libdir}/libbeagle.so.1 |
0936e62b MB |
150 | |
151 | %files devel | |
152 | %defattr(644,root,root,755) | |
153 | %attr(755,root,root) %{_libdir}/libbeagle.so | |
154 | %{_libdir}/libbeagle.la | |
155 | %{_includedir}/libbeagle | |
156 | %{_pkgconfigdir}/libbeagle-1.0.pc | |
157 | ||
158 | %files static | |
159 | %defattr(644,root,root,755) | |
160 | %{_libdir}/libbeagle.a | |
161 | ||
162 | %if %{with apidocs} | |
163 | %files apidocs | |
164 | %defattr(644,root,root,755) | |
165 | %{_gtkdocdir}/beagle | |
166 | %endif | |
167 | ||
168 | %files examples | |
169 | %defattr(644,root,root,755) | |
170 | %{_examplesdir}/libbeagle-%{version} | |
171 | ||
172 | %if %{with python} | |
173 | %files -n python-beagle | |
174 | %defattr(644,root,root,755) | |
6c7c308e MB |
175 | %attr(755,root,root) %{py_sitedir}/beagle/beagle.so |
176 | %dir %{py_sitedir}/beagle | |
177 | %{py_sitedir}/beagle/*.py[co] | |
0936e62b | 178 | %endif |