]>
Commit | Line | Data |
---|---|---|
02b3cfa7 | 1 | # |
40956cba MB |
2 | # Conditional build: |
3 | %bcond_without dbus # build without dbus support | |
02b3cfa7 | 4 | # |
eba86c7a | 5 | Summary: Xfmedia - lightweight media player based on the xine engine |
fd791bc7 | 6 | Summary(pl.UTF-8): Xfmedia - lekki odtwarzacz multimedialny oparty na silniku xine |
eba86c7a | 7 | Name: xfmedia |
c58f5e6b | 8 | Version: 0.9.2 |
6d97ebc2 | 9 | Release: 7 |
eba86c7a RK |
10 | License: GPL v2 |
11 | Group: X11/Applications/Multimedia | |
12 | Source0: http://spuriousinterrupt.org/projects/xfmedia/files/%{name}-%{version}.tar.bz2 | |
c58f5e6b | 13 | # Source0-md5: 6eb8bd1f67201f829e0f45e733c02bd5 |
7f7189e9 | 14 | Patch0: %{name}-desktop.patch |
099bf434 | 15 | Patch1: %{name}-exo-1.patch |
6d97ebc2 | 16 | Patch2: %{name}-ui.patch |
eba86c7a | 17 | URL: http://spuriousinterrupt.org/projects/xfmedia/index.php |
40956cba MB |
18 | BuildRequires: autoconf >= 2.50 |
19 | BuildRequires: automake >= 1:1.8 | |
c58f5e6b | 20 | %{?with_dbus:BuildRequires: dbus-glib-devel >= 0.31} |
099bf434 | 21 | BuildRequires: exo-devel >= 0.6.0 |
c58f5e6b | 22 | BuildRequires: gtk+2-devel >= 2:2.6.0 |
581b793d | 23 | BuildRequires: intltool |
40956cba | 24 | BuildRequires: libtool |
455d66ba | 25 | BuildRequires: libxfce4util-devel >= 4.2.0 |
6d97ebc2 JR |
26 | BuildRequires: libxfce4ui-devel >= 4.8.0 |
27 | BuildRequires: libwnck-devel >= 2.22 | |
74c43d5c | 28 | BuildRequires: rpmbuild(macros) >= 1.311 |
c58f5e6b MB |
29 | BuildRequires: startup-notification-devel >= 0.5 |
30 | BuildRequires: taglib-devel | |
31 | BuildRequires: xfce4-dev-tools >= 4.3.90.2 | |
eba86c7a | 32 | BuildRequires: xine-lib-devel |
c58f5e6b | 33 | BuildRequires: xorg-lib-libXScrnSaver-devel |
3c2ac021 | 34 | Requires(post,postun): gtk-update-icon-cache |
40956cba | 35 | Requires(post,postun): hicolor-icon-theme |
099bf434 | 36 | Requires: exo >= 0.6.0 |
eba86c7a RK |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
39 | %description | |
40 | Xfmedia is a lightweight media player based on the xine engine. The | |
41 | GTK+ GUI focuses on playing and managing audio files, but, being based | |
42 | on xine, supports video as well. | |
43 | ||
71e3ca29 | 44 | %description -l pl.UTF-8 |
eba86c7a | 45 | Xfmedia jest lekkim odtwarzaczem multimedialnym opartym o silnik xine. |
71e3ca29 JR |
46 | Interfejs GTK+ skupia się na zarządzaniu i odtwarzaniu plików audio, |
47 | ale, jako że jest oparty na xine, obsługuje również pliki wideo. | |
eba86c7a RK |
48 | |
49 | %package plugins | |
50 | Summary: Xfmedia plugins | |
fd791bc7 | 51 | Summary(pl.UTF-8): Wtyczki dla Xfmedia |
134b1d99 | 52 | Group: X11/Applications/Multimedia |
c97c6464 | 53 | Requires: %{name} = %{version}-%{release} |
eba86c7a RK |
54 | |
55 | %description plugins | |
f105139c RK |
56 | Xfmedia plugins: |
57 | - infopipe | |
eba86c7a | 58 | |
71e3ca29 | 59 | %description plugins -l pl.UTF-8 |
f105139c RK |
60 | Wtyczki dla Xfmedia: |
61 | - infopipe | |
eba86c7a RK |
62 | |
63 | %package devel | |
64 | Summary: Header files for Xfmedia | |
fd791bc7 | 65 | Summary(pl.UTF-8): Pliki nagłówkowe Xfmedia |
eba86c7a | 66 | Group: X11/Development/Libraries |
c97c6464 | 67 | Requires: %{name} = %{version}-%{release} |
eba86c7a RK |
68 | |
69 | %description devel | |
f105139c | 70 | Xfmedia - header files. |
eba86c7a | 71 | |
71e3ca29 JR |
72 | %description devel -l pl.UTF-8 |
73 | Xfmedia - pliki nagłówkowe. | |
eba86c7a RK |
74 | |
75 | %prep | |
76 | %setup -q | |
7f7189e9 | 77 | %patch0 -p1 |
099bf434 | 78 | %patch1 -p1 |
6d97ebc2 | 79 | %patch2 -p1 |
eba86c7a RK |
80 | |
81 | %build | |
ae31db3a | 82 | %{__intltoolize} |
40956cba MB |
83 | %{__libtoolize} |
84 | %{__aclocal} | |
85 | %{__autoconf} | |
86 | %{__autoheader} | |
87 | %{__automake} | |
02b3cfa7 RK |
88 | %configure \ |
89 | --disable-static \ | |
c58f5e6b MB |
90 | --%{?with_dbus:en}%{!?with_dbus:dis}able-dbus \ |
91 | --enable-startup-notification \ | |
92 | --with-taglib \ | |
74c43d5c RK |
93 | --x-includes=%{_includedir}/xorg \ |
94 | --x-libraries=%{_prefix}/lib/X11 | |
95 | ||
eba86c7a RK |
96 | %{__make} |
97 | ||
98 | %install | |
99 | rm -rf $RPM_BUILD_ROOT | |
eba86c7a RK |
100 | |
101 | %{__make} install \ | |
102 | DESTDIR=$RPM_BUILD_ROOT | |
103 | ||
c58f5e6b MB |
104 | rm -f $RPM_BUILD_ROOT%{_libdir}/xfmedia/plugins/xfmedia-infopipe.la |
105 | ||
a924b871 RK |
106 | %find_lang %{name} |
107 | ||
eba86c7a RK |
108 | %clean |
109 | rm -rf $RPM_BUILD_ROOT | |
110 | ||
40956cba MB |
111 | %post |
112 | %update_icon_cache hicolor | |
113 | ||
114 | %postun | |
115 | %update_icon_cache hicolor | |
116 | ||
a924b871 | 117 | %files -f %{name}.lang |
eba86c7a RK |
118 | %defattr(644,root,root,755) |
119 | %doc AUTHORS ChangeLog NEWS README* TODO | |
74c43d5c RK |
120 | %dir %{_sysconfdir}/xdg/%{name} |
121 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xdg/%{name}/* | |
eba86c7a | 122 | %attr(755,root,root) %{_bindir}/* |
8328ec29 JB |
123 | %dir %{_libdir}/%{name} |
124 | %dir %{_libdir}/%{name}/plugins | |
8328ec29 JB |
125 | %{_iconsdir}/hicolor/48x48/apps/* |
126 | %{_iconsdir}/hicolor/22x22/actions/* | |
40956cba MB |
127 | %{_desktopdir}/*.desktop |
128 | %dir %{_datadir}/%{name} | |
36ef65f1 RK |
129 | %dir %{_datadir}/%{name}/doc |
130 | %{_datadir}/%{name}/doc/xfce.css | |
02b3cfa7 RK |
131 | %dir %{_datadir}/%{name}/doc/C/ |
132 | %{_datadir}/%{name}/doc/C/* | |
eba86c7a RK |
133 | |
134 | %files plugins | |
135 | %defattr(644,root,root,755) | |
8328ec29 | 136 | %attr(755,root,root) %{_libdir}/%{name}/plugins/*.so |
eba86c7a RK |
137 | |
138 | %files devel | |
139 | %defattr(644,root,root,755) | |
8328ec29 | 140 | %{_includedir}/%{name} |
c58f5e6b | 141 | %{_pkgconfigdir}/*.pc |