]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without nautilus # Nautilus extension | |
4 | ||
5 | Summary: Disc burning application for GNOME | |
6 | Summary(pl.UTF-8): Program do wypalania płyt dla GNOME | |
7 | Name: brasero | |
8 | Version: 3.12.2 | |
9 | Release: 2 | |
10 | License: GPL v2+ | |
11 | Group: X11/Applications | |
12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/brasero/3.12/%{name}-%{version}.tar.xz | |
13 | # Source0-md5: 2dec59c179e49e37f1cfc0dd26344a2e | |
14 | Patch0: %{name}-gtkdoc.patch | |
15 | URL: https://wiki.gnome.org/Apps/Brasero | |
16 | BuildRequires: autoconf >= 2.50 | |
17 | BuildRequires: automake >= 1:1.6 | |
18 | BuildRequires: gettext-tools | |
19 | BuildRequires: glib2-devel >= 1:2.30.0 | |
20 | BuildRequires: glibc-misc | |
21 | BuildRequires: gnome-common >= 2.24.0 | |
22 | BuildRequires: gobject-introspection-devel >= 1.30.0 | |
23 | BuildRequires: gstreamer-devel >= 1.0.0 | |
24 | BuildRequires: gstreamer-plugins-base-devel >= 1.0.0 | |
25 | BuildRequires: gtk+3-devel >= 3.0.0 | |
26 | BuildRequires: gtk-doc >= 1.12 | |
27 | BuildRequires: intltool >= 0.50 | |
28 | BuildRequires: libburn-devel >= 0.4.0 | |
29 | BuildRequires: libcanberra-devel >= 0.1 | |
30 | BuildRequires: libcanberra-gtk3-devel >= 0.1 | |
31 | BuildRequires: libisofs-devel >= 0.6.4 | |
32 | BuildRequires: libnotify-devel >= 0.6.1 | |
33 | BuildRequires: libtool >= 2:2.2 | |
34 | BuildRequires: libxml2-devel >= 1:2.6.31 | |
35 | %{?with_nautilus:BuildRequires: nautilus-devel >= 3.0.0} | |
36 | BuildRequires: pkgconfig | |
37 | BuildRequires: rpmbuild(find_lang) >= 1.23 | |
38 | BuildRequires: rpmbuild(macros) >= 1.592 | |
39 | BuildRequires: tar >= 1:1.22 | |
40 | BuildRequires: totem-pl-parser-devel >= 2.30.0 | |
41 | BuildRequires: tracker-devel >= 0.16.0 | |
42 | BuildRequires: xorg-lib-libICE-devel | |
43 | BuildRequires: xorg-lib-libSM-devel | |
44 | BuildRequires: xz | |
45 | BuildRequires: yelp-tools | |
46 | Requires(post,postun): desktop-file-utils | |
47 | Requires(post,postun): glib2 >= 1:2.30.0 | |
48 | Requires(post,postun): gtk-update-icon-cache | |
49 | Requires(post,postun): shared-mime-info | |
50 | Requires: %{name}-libs = %{version}-%{release} | |
51 | Requires: hicolor-icon-theme | |
52 | Requires: libburn >= 0.4.0 | |
53 | Requires: libisofs >= 0.6.4 | |
54 | Requires: libxml2 >= 1:2.6.31 | |
55 | Suggests: cdda2wav | |
56 | Suggests: cdrdao | |
57 | Suggests: cdrecord | |
58 | Suggests: cdrtools-readcd | |
59 | Suggests: dvd+rw-tools | |
60 | Suggests: dvdauthor | |
61 | Suggests: gstreamer-audio-effects-base | |
62 | Suggests: gstreamer-audio-effects-good | |
63 | Suggests: mkisofs | |
64 | Suggests: vcdimager | |
65 | Obsoletes: bonfire | |
66 | # sr@Latn vs. sr@latin | |
67 | Conflicts: glibc-misc < 6:2.7 | |
68 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
69 | ||
70 | %description | |
71 | Brasero is a CD/DVD mastering tool for the GNOME desktop. It is | |
72 | designed to be simple and easy to use. | |
73 | ||
74 | %description -l pl.UTF-8 | |
75 | Brasero jest narzędziem do masteringu płyt CD/DVD dla biurka GNOME. | |
76 | Jest zaprojektowany by być prostym i łatwym w obsłudze. | |
77 | ||
78 | %package libs | |
79 | Summary: Brasero library | |
80 | Summary(pl.UTF-8): Biblioteka Brasero | |
81 | Group: X11/Libraries | |
82 | Requires: glib2 >= 1:2.30.0 | |
83 | Requires: libnotify >= 0.6.1 | |
84 | ||
85 | %description libs | |
86 | Brasero library. | |
87 | ||
88 | %description libs -l pl.UTF-8 | |
89 | Biblioteka Brasero. | |
90 | ||
91 | %package devel | |
92 | Summary: Header files for Brasero library | |
93 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Brasero | |
94 | Group: X11/Development/Libraries | |
95 | Requires: %{name}-libs = %{version}-%{release} | |
96 | Requires: glib2-devel >= 1:2.30.0 | |
97 | Requires: gtk+3-devel >= 3.0.0 | |
98 | ||
99 | %description devel | |
100 | Header files for Brasero library. | |
101 | ||
102 | %description devel -l pl.UTF-8 | |
103 | Pliki nagłówkowe biblioteki Brasero. | |
104 | ||
105 | %package apidocs | |
106 | Summary: Brasero library API documentation | |
107 | Summary(pl.UTF-8): Dokumentacja API biblioteki Brasero | |
108 | Group: Documentation | |
109 | Requires: gtk-doc-common | |
110 | %if "%{_rpmversion}" >= "5" | |
111 | BuildArch: noarch | |
112 | %endif | |
113 | ||
114 | %description apidocs | |
115 | Brasero library API documentation. | |
116 | ||
117 | %description apidocs -l pl.UTF-8 | |
118 | Dokumentacja API biblioteki Brasero. | |
119 | ||
120 | %package -n nautilus-extension-brasero | |
121 | Summary: Brasero extension for Nautilus | |
122 | Summary(pl.UTF-8): Rozszerzenie Brasero dla Nautilusa | |
123 | Group: X11/Applications | |
124 | Requires(post,postun): desktop-file-utils | |
125 | Requires: %{name} = %{version}-%{release} | |
126 | Requires: nautilus >= 3.0.0 | |
127 | ||
128 | %description -n nautilus-extension-brasero | |
129 | Adds Brasero integration to Nautilus. | |
130 | ||
131 | %description -n nautilus-extension-brasero -l pl.UTF-8 | |
132 | Dodaje integrację Brasero z Nautilusem. | |
133 | ||
134 | %prep | |
135 | %setup -q | |
136 | %patch0 -p1 | |
137 | ||
138 | %build | |
139 | %{__gtkdocize} | |
140 | %{__libtoolize} | |
141 | %{__intltoolize} | |
142 | %{__aclocal} | |
143 | %{__autoconf} | |
144 | %{__autoheader} | |
145 | %{__automake} | |
146 | %configure \ | |
147 | --disable-caches \ | |
148 | --enable-gtk-doc \ | |
149 | %{!?with_nautilus:--disable-nautilus} \ | |
150 | --disable-silent-rules \ | |
151 | --with-html-dir=%{_gtkdocdir} | |
152 | %{__make} -j1 | |
153 | ||
154 | %install | |
155 | rm -rf $RPM_BUILD_ROOT | |
156 | ||
157 | %{__make} install \ | |
158 | DESTDIR=$RPM_BUILD_ROOT | |
159 | ||
160 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
161 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/brasero3/plugins/lib*.la | |
162 | %if %{with nautilus} | |
163 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-3.0/*.la | |
164 | %endif | |
165 | ||
166 | %find_lang %{name} --with-gnome | |
167 | ||
168 | %clean | |
169 | rm -rf $RPM_BUILD_ROOT | |
170 | ||
171 | %post | |
172 | %update_desktop_database_post | |
173 | %update_mime_database | |
174 | %update_icon_cache hicolor | |
175 | %glib_compile_schemas | |
176 | ||
177 | %postun | |
178 | %update_desktop_database_postun | |
179 | %glib_compile_schemas | |
180 | %update_mime_database | |
181 | %update_icon_cache hicolor | |
182 | ||
183 | %post libs -p /sbin/ldconfig | |
184 | %postun libs -p /sbin/ldconfig | |
185 | ||
186 | %post -n nautilus-extension-brasero | |
187 | %update_desktop_database_post | |
188 | ||
189 | %postun -n nautilus-extension-brasero | |
190 | %update_desktop_database_postun | |
191 | ||
192 | %files -f %{name}.lang | |
193 | %defattr(644,root,root,755) | |
194 | %doc AUTHORS ChangeLog MAINTAINERS NEWS README | |
195 | %attr(755,root,root) %{_bindir}/brasero | |
196 | %{_datadir}/appdata/brasero.appdata.xml | |
197 | %{_datadir}/brasero | |
198 | %{_datadir}/mime/packages/brasero.xml | |
199 | %dir %{_libdir}/brasero3 | |
200 | %dir %{_libdir}/brasero3/plugins | |
201 | %attr(755,root,root) %{_libdir}/brasero3/plugins/libbrasero-audio2cue.so | |
202 | %attr(755,root,root) %{_libdir}/brasero3/plugins/libbrasero-burn-uri.so | |
203 | %attr(755,root,root) %{_libdir}/brasero3/plugins/libbrasero-cdda2wav.so | |
204 | %attr(755,root,root) %{_libdir}/brasero3/plugins/libbrasero-cdrdao.so | |
205 | %attr(755,root,root) %{_libdir}/brasero3/plugins/libbrasero-cdrecord.so | |
206 | %attr(755,root,root) %{_libdir}/brasero3/plugins/libbrasero-checksum-file.so | |
207 | %attr(755,root,root) %{_libdir}/brasero3/plugins/libbrasero-checksum.so | |
208 | %attr(755,root,root) %{_libdir}/brasero3/plugins/libbrasero-dvdauthor.so | |
209 | %attr(755,root,root) %{_libdir}/brasero3/plugins/libbrasero-dvdcss.so | |
210 | %attr(755,root,root) %{_libdir}/brasero3/plugins/libbrasero-dvdrwformat.so | |
211 | %attr(755,root,root) %{_libdir}/brasero3/plugins/libbrasero-genisoimage.so | |
212 | %attr(755,root,root) %{_libdir}/brasero3/plugins/libbrasero-growisofs.so | |
213 | %attr(755,root,root) %{_libdir}/brasero3/plugins/libbrasero-libburn.so | |
214 | %attr(755,root,root) %{_libdir}/brasero3/plugins/libbrasero-libisofs.so | |
215 | %attr(755,root,root) %{_libdir}/brasero3/plugins/libbrasero-local-track.so | |
216 | %attr(755,root,root) %{_libdir}/brasero3/plugins/libbrasero-mkisofs.so | |
217 | %attr(755,root,root) %{_libdir}/brasero3/plugins/libbrasero-normalize.so | |
218 | %attr(755,root,root) %{_libdir}/brasero3/plugins/libbrasero-readcd.so | |
219 | %attr(755,root,root) %{_libdir}/brasero3/plugins/libbrasero-readom.so | |
220 | %attr(755,root,root) %{_libdir}/brasero3/plugins/libbrasero-transcode.so | |
221 | %attr(755,root,root) %{_libdir}/brasero3/plugins/libbrasero-vcdimager.so | |
222 | %attr(755,root,root) %{_libdir}/brasero3/plugins/libbrasero-vob.so | |
223 | %attr(755,root,root) %{_libdir}/brasero3/plugins/libbrasero-wodim.so | |
224 | %{_datadir}/GConf/gsettings/brasero.convert | |
225 | %{_datadir}/glib-2.0/schemas/org.gnome.brasero.gschema.xml | |
226 | %{_desktopdir}/brasero.desktop | |
227 | %{_iconsdir}/hicolor/*x*/apps/brasero.png | |
228 | %{_iconsdir}/hicolor/scalable/apps/brasero-symbolic.svg | |
229 | %{_mandir}/man1/brasero.1* | |
230 | ||
231 | %files libs | |
232 | %defattr(644,root,root,755) | |
233 | %attr(755,root,root) %{_libdir}/libbrasero-burn3.so.*.*.* | |
234 | %attr(755,root,root) %ghost %{_libdir}/libbrasero-burn3.so.1 | |
235 | %attr(755,root,root) %{_libdir}/libbrasero-media3.so.*.*.* | |
236 | %attr(755,root,root) %ghost %{_libdir}/libbrasero-media3.so.1 | |
237 | %attr(755,root,root) %{_libdir}/libbrasero-utils3.so.*.*.* | |
238 | %attr(755,root,root) %ghost %{_libdir}/libbrasero-utils3.so.1 | |
239 | %{_libdir}/girepository-1.0/BraseroBurn-3.1.typelib | |
240 | %{_libdir}/girepository-1.0/BraseroMedia-3.1.typelib | |
241 | ||
242 | ||
243 | %files devel | |
244 | %defattr(644,root,root,755) | |
245 | %attr(755,root,root) %{_libdir}/libbrasero-burn3.so | |
246 | %attr(755,root,root) %{_libdir}/libbrasero-media3.so | |
247 | %attr(755,root,root) %{_libdir}/libbrasero-utils3.so | |
248 | %{_datadir}/gir-1.0/BraseroBurn-3.1.gir | |
249 | %{_datadir}/gir-1.0/BraseroMedia-3.1.gir | |
250 | %{_includedir}/brasero3 | |
251 | %{_pkgconfigdir}/libbrasero-burn3.pc | |
252 | %{_pkgconfigdir}/libbrasero-media3.pc | |
253 | ||
254 | %files apidocs | |
255 | %defattr(644,root,root,755) | |
256 | %{_gtkdocdir}/libbrasero-burn | |
257 | %{_gtkdocdir}/libbrasero-media | |
258 | ||
259 | %if %{with nautilus} | |
260 | %files -n nautilus-extension-brasero | |
261 | %defattr(644,root,root,755) | |
262 | %attr(755,root,root) %{_libdir}/nautilus/extensions-3.0/libnautilus-brasero-extension.so | |
263 | %{_desktopdir}/brasero-nautilus.desktop | |
264 | %endif |