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