]>
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 |
009da11d AF |
6 | # |
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 |
5acb97ce | 10 | Version: 0.2.15 |
b4058420 | 11 | Release: 1 |
009da11d AF |
12 | License: LGPL v2.1+ |
13 | Group: Libraries | |
68cfda87 | 14 | Source0: http://ftp.gnome.org/pub/GNOME/sources/grilo/0.2/%{name}-%{version}.tar.xz |
5acb97ce | 15 | # Source0-md5: 85904d51db61c1cf7a1298442b82f788 |
b389ca4e | 16 | Patch0: %{name}-sh.patch |
8bfd2e39 | 17 | URL: http://live.gnome.org/Grilo |
b389ca4e | 18 | BuildRequires: autoconf >= 2.50 |
009da11d | 19 | BuildRequires: automake |
18455642 | 20 | BuildRequires: glib2-devel >= 1:2.43.1 |
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 | |
68cfda87 | 27 | BuildRequires: libsoup-devel >= 2.34.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 |
18455642 | 35 | Requires: glib2 >= 1:2.43.1 |
b389ca4e | 36 | Requires: libsoup >= 2.34.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} | |
18455642 | 53 | Requires: glib2-devel >= 1:2.43.1 |
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 AF |
77 | Group: Documentation |
78 | ||
79 | %description apidocs | |
80 | API and internal documentation for grilo library. | |
81 | ||
82 | %description apidocs -l pl.UTF-8 | |
83 | Dokumentacja API biblioteki grilo. | |
84 | ||
cd4c2164 | 85 | %package -n vala-grilo |
b389ca4e JB |
86 | Summary: Vala API for grilo libraries |
87 | Summary(pl.UTF-8): API języka Vala do bibliotek grilo | |
cd4c2164 ŁK |
88 | Group: Development/Libraries |
89 | Requires: %{name}-devel = %{version}-%{release} | |
b389ca4e | 90 | Requires: vala >= 2:0.16.0 |
cd4c2164 ŁK |
91 | |
92 | %description -n vala-grilo | |
b389ca4e | 93 | Vala API for grilo libraries. |
cd4c2164 ŁK |
94 | |
95 | %description -n vala-grilo -l pl.UTF-8 | |
b389ca4e | 96 | API języka Vala do bibliotek grilo. |
cd4c2164 | 97 | |
009da11d AF |
98 | %prep |
99 | %setup -q | |
b389ca4e | 100 | %patch0 -p1 |
009da11d AF |
101 | |
102 | %build | |
8bfd2e39 | 103 | %{__libtoolize} |
b389ca4e | 104 | %{__aclocal} -I m4 |
8bfd2e39 MB |
105 | %{__autoconf} |
106 | %{__autoheader} | |
107 | %{__automake} | |
009da11d | 108 | %configure \ |
68cfda87 | 109 | --disable-debug \ |
009da11d | 110 | %{__enable_disable apidocs gtk-doc} \ |
b389ca4e JB |
111 | --disable-silent-rules \ |
112 | %{__enable_disable static_libs static} \ | |
009da11d AF |
113 | --with-html-dir=%{_gtkdocdir} |
114 | %{__make} | |
115 | ||
116 | %install | |
117 | rm -rf $RPM_BUILD_ROOT | |
68cfda87 | 118 | install -d $RPM_BUILD_ROOT%{_libdir}/grilo-0.2 |
009da11d AF |
119 | |
120 | %{__make} install \ | |
121 | DESTDIR=$RPM_BUILD_ROOT | |
122 | ||
123 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
124 | ||
14797454 MB |
125 | %find_lang %{name} |
126 | ||
009da11d AF |
127 | %clean |
128 | rm -rf $RPM_BUILD_ROOT | |
129 | ||
130 | %post -p /sbin/ldconfig | |
131 | %postun -p /sbin/ldconfig | |
132 | ||
14797454 | 133 | %files -f %{name}.lang |
009da11d AF |
134 | %defattr(644,root,root,755) |
135 | %doc AUTHORS ChangeLog NEWS README TODO | |
68cfda87 MB |
136 | %attr(755,root,root) %{_bindir}/grilo-test-ui-0.2 |
137 | %attr(755,root,root) %{_bindir}/grl-inspect-0.2 | |
d18ac1fd | 138 | %attr(755,root,root) %{_bindir}/grl-launch-0.2 |
68cfda87 MB |
139 | %attr(755,root,root) %{_libdir}/libgrilo-0.2.so.*.*.* |
140 | %attr(755,root,root) %ghost %{_libdir}/libgrilo-0.2.so.1 | |
141 | %attr(755,root,root) %{_libdir}/libgrlnet-0.2.so.*.*.* | |
142 | %attr(755,root,root) %ghost %{_libdir}/libgrlnet-0.2.so.0 | |
7a98ae06 JB |
143 | %attr(755,root,root) %{_libdir}/libgrlpls-0.2.so.*.*.* |
144 | %attr(755,root,root) %ghost %{_libdir}/libgrlpls-0.2.so.0 | |
68cfda87 MB |
145 | %dir %{_libdir}/grilo-0.2 |
146 | %{_libdir}/girepository-1.0/Grl-0.2.typelib | |
147 | %{_libdir}/girepository-1.0/GrlNet-0.2.typelib | |
7a98ae06 | 148 | %{_libdir}/girepository-1.0/GrlPls-0.2.typelib |
18455642 ŁK |
149 | %{_mandir}/man1/grilo-test-ui-0.2.1* |
150 | %{_mandir}/man1/grl-inspect-0.2.1* | |
151 | %{_mandir}/man1/grl-launch-0.2.1* | |
009da11d AF |
152 | |
153 | %files devel | |
154 | %defattr(644,root,root,755) | |
68cfda87 MB |
155 | %attr(755,root,root) %{_libdir}/libgrilo-0.2.so |
156 | %attr(755,root,root) %{_libdir}/libgrlnet-0.2.so | |
7a98ae06 | 157 | %attr(755,root,root) %{_libdir}/libgrlpls-0.2.so |
68cfda87 MB |
158 | %{_includedir}/grilo-0.2 |
159 | %{_pkgconfigdir}/grilo-0.2.pc | |
160 | %{_pkgconfigdir}/grilo-net-0.2.pc | |
7a98ae06 | 161 | %{_pkgconfigdir}/grilo-pls-0.2.pc |
68cfda87 MB |
162 | %{_datadir}/gir-1.0/Grl-0.2.gir |
163 | %{_datadir}/gir-1.0/GrlNet-0.2.gir | |
7a98ae06 | 164 | %{_datadir}/gir-1.0/GrlPls-0.2.gir |
009da11d AF |
165 | |
166 | %if %{with static_libs} | |
167 | %files static | |
168 | %defattr(644,root,root,755) | |
68cfda87 MB |
169 | %{_libdir}/libgrilo-0.2.a |
170 | %{_libdir}/libgrlnet-0.2.a | |
7a98ae06 | 171 | %{_libdir}/libgrlpls-0.2.a |
009da11d AF |
172 | %endif |
173 | ||
174 | %if %{with apidocs} | |
175 | %files apidocs | |
176 | %defattr(644,root,root,755) | |
177 | %{_gtkdocdir}/grilo | |
178 | %endif | |
cd4c2164 ŁK |
179 | |
180 | %if %{with vala} | |
181 | %files -n vala-grilo | |
182 | %defattr(644,root,root,755) | |
68cfda87 MB |
183 | %{_datadir}/vala/vapi/grilo-0.2.deps |
184 | %{_datadir}/vala/vapi/grilo-0.2.vapi | |
185 | %{_datadir}/vala/vapi/grilo-net-0.2.deps | |
186 | %{_datadir}/vala/vapi/grilo-net-0.2.vapi | |
cd4c2164 | 187 | %endif |