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