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