]>
Commit | Line | Data |
---|---|---|
009da11d AF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
4 | %bcond_without static_libs # don't build static libraries | |
cd4c2164 | 5 | %bcond_without vala # do not build Vala API |
8ade5615 | 6 | |
009da11d | 7 | Summary: Framework for access to sources of multimedia content |
b389ca4e | 8 | Summary(pl.UTF-8): Szkielet dostępu do źródeł treści multimedialnych |
009da11d | 9 | Name: grilo |
05826d76 | 10 | Version: 0.3.4 |
ed35f17b | 11 | Release: 1 |
009da11d AF |
12 | License: LGPL v2.1+ |
13 | Group: Libraries | |
f76d5485 | 14 | Source0: http://ftp.gnome.org/pub/GNOME/sources/grilo/0.3/%{name}-%{version}.tar.xz |
05826d76 | 15 | # Source0-md5: a15a92a903aeb7579e1b0f6e8b4b0fb1 |
b389ca4e | 16 | Patch0: %{name}-sh.patch |
8bfd2e39 | 17 | URL: http://live.gnome.org/Grilo |
b389ca4e | 18 | BuildRequires: autoconf >= 2.50 |
009da11d | 19 | BuildRequires: automake |
f76d5485 | 20 | BuildRequires: glib2-devel >= 1:2.44.0 |
68cfda87 | 21 | BuildRequires: gnome-common |
8bfd2e39 | 22 | BuildRequires: gobject-introspection-devel >= 0.9 |
009da11d | 23 | BuildRequires: gtk+3-devel >= 3.0.0 |
8bfd2e39 | 24 | BuildRequires: gtk-doc >= 1.10 |
87587768 JB |
25 | BuildRequires: intltool >= 0.40.0 |
26 | BuildRequires: liboauth-devel | |
f76d5485 | 27 | BuildRequires: libsoup-devel >= 2.42.0 |
b389ca4e JB |
28 | BuildRequires: libtool >= 2:2.2.6 |
29 | BuildRequires: libxml2-devel >= 2 | |
30 | BuildRequires: pkgconfig | |
8bfd2e39 | 31 | BuildRequires: tar >= 1:1.22 |
7a98ae06 | 32 | BuildRequires: totem-pl-parser-devel >= 3.4.1 |
18455642 | 33 | %{?with_vala:BuildRequires: vala >= 2:0.27.0} |
8bfd2e39 | 34 | BuildRequires: xz |
f76d5485 MB |
35 | Requires: glib2 >= 1:2.44.0 |
36 | Requires: libsoup >= 2.42.0 | |
7a98ae06 | 37 | Requires: totem-pl-parser >= 3.4.1 |
009da11d AF |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
39 | ||
40 | %description | |
41 | Grilo is a framework that provides access to various sources of | |
42 | multimedia content, using a pluggable system. | |
43 | ||
b389ca4e JB |
44 | %description -l pl.UTF-8 |
45 | Grilo to szkielet zapewniający dostęp do różnych źródeł treści | |
46 | multimedialnych przy użyciu systemu wtyczek. | |
47 | ||
009da11d | 48 | %package devel |
b389ca4e JB |
49 | Summary: Header files for grilo libraries |
50 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek grilo | |
009da11d AF |
51 | Group: Development/Libraries |
52 | Requires: %{name} = %{version}-%{release} | |
f76d5485 | 53 | Requires: glib2-devel >= 1:2.44.0 |
b389ca4e | 54 | Requires: libxml2-devel >= 2 |
009da11d AF |
55 | |
56 | %description devel | |
b389ca4e | 57 | Header files for grilo libraries. |
009da11d AF |
58 | |
59 | %description devel -l pl.UTF-8 | |
b389ca4e | 60 | Pliki nagłówkowe bibliotek grilo. |
009da11d AF |
61 | |
62 | %package static | |
b389ca4e JB |
63 | Summary: Static grilo libraries |
64 | Summary(pl.UTF-8): Statyczne biblioteki grilo | |
009da11d AF |
65 | Group: Development/Libraries |
66 | Requires: %{name}-devel = %{version}-%{release} | |
67 | ||
68 | %description static | |
b389ca4e | 69 | Static grilo libraries. |
009da11d AF |
70 | |
71 | %description static -l pl.UTF-8 | |
b389ca4e | 72 | Statyczne biblioteki grilo. |
009da11d AF |
73 | |
74 | %package apidocs | |
75 | Summary: grilo API documentation | |
b389ca4e | 76 | Summary(pl.UTF-8): Dokumentacja API bibliotek grilo |
009da11d | 77 | Group: Documentation |
f76d5485 MB |
78 | Requires: gtk-doc-common |
79 | %if "%{_rpmversion}" >= "5" | |
80 | BuildArch: noarch | |
81 | %endif | |
009da11d AF |
82 | |
83 | %description apidocs | |
84 | API and internal documentation for grilo library. | |
85 | ||
86 | %description apidocs -l pl.UTF-8 | |
87 | Dokumentacja API biblioteki grilo. | |
88 | ||
cd4c2164 | 89 | %package -n vala-grilo |
b389ca4e JB |
90 | Summary: Vala API for grilo libraries |
91 | Summary(pl.UTF-8): API języka Vala do bibliotek grilo | |
cd4c2164 ŁK |
92 | Group: Development/Libraries |
93 | Requires: %{name}-devel = %{version}-%{release} | |
b389ca4e | 94 | Requires: vala >= 2:0.16.0 |
8ade5615 ER |
95 | %if "%{_rpmversion}" >= "5" |
96 | BuildArch: noarch | |
97 | %endif | |
cd4c2164 ŁK |
98 | |
99 | %description -n vala-grilo | |
b389ca4e | 100 | Vala API for grilo libraries. |
cd4c2164 ŁK |
101 | |
102 | %description -n vala-grilo -l pl.UTF-8 | |
b389ca4e | 103 | API języka Vala do bibliotek grilo. |
cd4c2164 | 104 | |
009da11d AF |
105 | %prep |
106 | %setup -q | |
b389ca4e | 107 | %patch0 -p1 |
009da11d AF |
108 | |
109 | %build | |
8bfd2e39 | 110 | %{__libtoolize} |
b389ca4e | 111 | %{__aclocal} -I m4 |
8bfd2e39 MB |
112 | %{__autoconf} |
113 | %{__autoheader} | |
114 | %{__automake} | |
009da11d | 115 | %configure \ |
68cfda87 | 116 | --disable-debug \ |
009da11d | 117 | %{__enable_disable apidocs gtk-doc} \ |
b389ca4e JB |
118 | --disable-silent-rules \ |
119 | %{__enable_disable static_libs static} \ | |
009da11d AF |
120 | --with-html-dir=%{_gtkdocdir} |
121 | %{__make} | |
122 | ||
123 | %install | |
124 | rm -rf $RPM_BUILD_ROOT | |
f76d5485 | 125 | install -d $RPM_BUILD_ROOT%{_libdir}/grilo-0.3 |
009da11d AF |
126 | |
127 | %{__make} install \ | |
128 | DESTDIR=$RPM_BUILD_ROOT | |
129 | ||
130 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
131 | ||
14797454 MB |
132 | %find_lang %{name} |
133 | ||
009da11d AF |
134 | %clean |
135 | rm -rf $RPM_BUILD_ROOT | |
136 | ||
137 | %post -p /sbin/ldconfig | |
138 | %postun -p /sbin/ldconfig | |
139 | ||
14797454 | 140 | %files -f %{name}.lang |
009da11d AF |
141 | %defattr(644,root,root,755) |
142 | %doc AUTHORS ChangeLog NEWS README TODO | |
f76d5485 MB |
143 | %attr(755,root,root) %{_bindir}/grilo-test-ui-0.3 |
144 | %attr(755,root,root) %{_bindir}/grl-inspect-0.3 | |
145 | %attr(755,root,root) %{_bindir}/grl-launch-0.3 | |
146 | %attr(755,root,root) %{_libdir}/libgrilo-0.3.so.*.*.* | |
147 | %attr(755,root,root) %ghost %{_libdir}/libgrilo-0.3.so.0 | |
148 | %attr(755,root,root) %{_libdir}/libgrlnet-0.3.so.*.*.* | |
149 | %attr(755,root,root) %ghost %{_libdir}/libgrlnet-0.3.so.0 | |
150 | %attr(755,root,root) %{_libdir}/libgrlpls-0.3.so.*.*.* | |
151 | %attr(755,root,root) %ghost %{_libdir}/libgrlpls-0.3.so.0 | |
152 | %dir %{_libdir}/grilo-0.3 | |
153 | %{_libdir}/girepository-1.0/Grl-0.3.typelib | |
154 | %{_libdir}/girepository-1.0/GrlNet-0.3.typelib | |
155 | %{_libdir}/girepository-1.0/GrlPls-0.3.typelib | |
156 | %{_mandir}/man1/grilo-test-ui-0.3.1* | |
157 | %{_mandir}/man1/grl-inspect-0.3.1* | |
158 | %{_mandir}/man1/grl-launch-0.3.1* | |
009da11d AF |
159 | |
160 | %files devel | |
161 | %defattr(644,root,root,755) | |
f76d5485 MB |
162 | %attr(755,root,root) %{_libdir}/libgrilo-0.3.so |
163 | %attr(755,root,root) %{_libdir}/libgrlnet-0.3.so | |
164 | %attr(755,root,root) %{_libdir}/libgrlpls-0.3.so | |
165 | %{_includedir}/grilo-0.3 | |
166 | %{_pkgconfigdir}/grilo-0.3.pc | |
167 | %{_pkgconfigdir}/grilo-net-0.3.pc | |
168 | %{_pkgconfigdir}/grilo-pls-0.3.pc | |
169 | %{_datadir}/gir-1.0/Grl-0.3.gir | |
170 | %{_datadir}/gir-1.0/GrlNet-0.3.gir | |
171 | %{_datadir}/gir-1.0/GrlPls-0.3.gir | |
009da11d AF |
172 | |
173 | %if %{with static_libs} | |
174 | %files static | |
175 | %defattr(644,root,root,755) | |
f76d5485 MB |
176 | %{_libdir}/libgrilo-0.3.a |
177 | %{_libdir}/libgrlnet-0.3.a | |
178 | %{_libdir}/libgrlpls-0.3.a | |
009da11d AF |
179 | %endif |
180 | ||
181 | %if %{with apidocs} | |
182 | %files apidocs | |
183 | %defattr(644,root,root,755) | |
184 | %{_gtkdocdir}/grilo | |
185 | %endif | |
cd4c2164 ŁK |
186 | |
187 | %if %{with vala} | |
188 | %files -n vala-grilo | |
189 | %defattr(644,root,root,755) | |
f76d5485 MB |
190 | %{_datadir}/vala/vapi/grilo-0.3.deps |
191 | %{_datadir}/vala/vapi/grilo-0.3.vapi | |
192 | %{_datadir}/vala/vapi/grilo-net-0.3.deps | |
193 | %{_datadir}/vala/vapi/grilo-net-0.3.vapi | |
cd4c2164 | 194 | %endif |