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