]> git.pld-linux.org Git - packages/bmpx.git/blob - bmpx.spec
- up to 0.32.0
[packages/bmpx.git] / bmpx.spec
1 Summary:        Sound player with the WinAmp GUI, for Unix-based systems for GTK+
2 Summary(pl):    Odtwarzacz d¼wiêku z interfejsem WinAmpa dla GTK+
3 Name:           bmpx
4 Version:        0.32.0
5 Release:        1
6 License:        GPL v2
7 Group:          X11/Applications/Sound
8 Source0:        http://files.beep-media-player.org/releases/0.30/%{name}-%{version}.tar.bz2
9 # Source0-md5:  52c5694f2702c0fc1c9b6fdba603ba7c
10 Source1:        mp3license
11 Patch0:         %{name}-desktop.patch
12 URL:            http://beep-media-player.org/
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  bison
16 BuildRequires:  boost-bind-devel
17 BuildRequires:  boost-call_traits-devel
18 BuildRequires:  boost-devel
19 BuildRequires:  boost-filesystem-devel
20 BuildRequires:  curl-devel
21 BuildRequires:  dbus-glib-devel >= 0.62
22 BuildRequires:  esound-devel >= 0.2.8
23 BuildRequires:  fam-devel
24 BuildRequires:  flex
25 BuildRequires:  gstreamer-plugins-base-devel >= 0.10.9
26 BuildRequires:  gtkmm-devel >= 2.9.8
27 BuildRequires:  hal-devel >= 0.5.7
28 BuildRequires:  libglademm-devel >= 2.6.2
29 BuildRequires:  libnotify-devel >= 0.4.2
30 BuildRequires:  libmusicbrainz-devel >= 2.1.1
31 BuildRequires:  libtool
32 BuildRequires:  libvorbis-devel >= 1:1.0
33 BuildRequires:  libxml2-devel >= 1:2.6.26
34 BuildRequires:  neon-devel >= 0.25.5
35 BuildRequires:  rpmbuild(macros) >= 1.311
36 BuildRequires:  rpm-pythonprov
37 BuildRequires:  startup-notification-devel >= 0.8
38 BuildRequires:  taglib-devel >= 1.4
39 Requires(post,postun):  desktop-file-utils
40 Requires(post,postun):  gtk+2 >= 2:2.10.0
41 Requires(post,postun):  hicolor-icon-theme
42 Requires(post,postun):  shared-mime-info
43 Requires:       gstreamer-audio-effects-base >= 0.10.9
44 Requires:       gstreamer-audio-formats >= 0.10.3
45 Requires:       gstreamer-audiosink
46 Obsoletes:      bmpx-curses
47 Obsoletes:      bmpx-libs
48 Obsoletes:      bmpx-plugin-container
49 Obsoletes:      bmpx-plugin-flow
50 Obsoletes:      bmpx-plugins-base
51 Obsoletes:      bmpx-plugin-transport
52 Obsoletes:      bmpx-remote
53 Obsoletes:      bmpx-remote-gtk
54 Obsoletes:      bmpx-static
55 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
56
57 %description
58 BMPx is the follow-up of the BMP project with a codebase rewritten
59 from scratch and aims to maintain a stable audio player foundation,
60 and to provide a player with a consistent and easy to understand usage
61 experience.
62
63 %description -l pl
64 BMPx jest nastêpc± projektu BMP z przepisanym od zera kodem i skupia
65 siê na utrzymaniu stabilnej podstawy odtwarzacza d¼wiêku, aby
66 udostêpniæ odtwarzacz ze spójn± i ³atw± do zrozumienia obs³ug±.
67
68 %package devel
69 Summary:        Header files for BMPx media player
70 Summary(pl):    Pliki nag³ówkowe odtwarzacza multimedialnego BMPx
71 Group:          X11/Development/Libraries
72 Requires:       dbus-glib-devel >= 0.62
73 Obsoletes:      libchroma-devel
74 Obsoletes:      libhrel-devel
75
76 %description devel
77 Header files required for compiling BMPx media player plugins.
78
79 %description devel -l pl
80 Pliki nag³ówkowe potrzebne do kompilowania wtyczek odtwarzacza
81 multimedialnego BMPx.
82
83 %prep
84 %setup -q
85 %patch0 -p1
86
87 %build
88 %{__libtoolize}
89 %{__aclocal} -I m4
90 %{__autoconf}
91 %{__autoheader}
92 %{__automake}
93 %configure \
94         --enable-hal \
95         --enable-shared \
96         --enable-static \
97         --with-dbus-services-dir=%{_datadir}/dbus-1/services
98 %{__make}
99
100 %install
101 rm -rf $RPM_BUILD_ROOT
102
103 %{__make} install \
104         DESTDIR=$RPM_BUILD_ROOT \
105         m4datadir=%{_aclocaldir}
106
107 rm -f $RPM_BUILD_ROOT%{_datadir}/bmpx/data/GPL.txt
108 rm -f $RPM_BUILD_ROOT%{_libdir}/bmpx/plugins/{flow,vfs/container,vfs/transport}/*.{a,la}
109 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/th_TH
110
111 %find_lang %{name}
112
113 %clean
114 rm -rf $RPM_BUILD_ROOT
115
116 %post
117 %update_desktop_database_post
118 %update_mime_database
119 %update_icon_cache hicolor
120
121 %banner %{name} -e << EOF
122 Remember to install appropriate GStreamer plugins for files
123 you want to play:
124 - gstreamer-cdparanoia (for Audio-CD)
125 - gstreamer-flac (for FLAC)
126 - gstreamer-mad (for MP3s)
127 - gstreamer-vorbis (for Ogg Vorbis)
128 EOF
129
130 %postun
131 %update_desktop_database_postun
132 %update_mime_database
133 %update_icon_cache hicolor
134
135 %files -f %{name}.lang
136 %defattr(644,root,root,755)
137 %doc AUTHORS ChangeLog NEWS README
138 %attr(755,root,root) %{_bindir}/beep-media-player-2
139 %attr(755,root,root) %{_bindir}/bmp-enqueue-files-2.0 
140 %attr(755,root,root) %{_bindir}/bmp-enqueue-uris-2.0
141 %attr(755,root,root) %{_bindir}/bmp-play-files-2.0
142 %attr(755,root,root) %{_bindir}/bmp-play-lastfm-2.0
143 %attr(755,root,root) %{_libexecdir}/beep-media-player-2-bin
144
145 %dir %{_libdir}/bmpx
146 %dir %{_libdir}/bmpx/plugins
147 #%dir %{_libdir}/bmpx/plugins/flow
148 %dir %{_libdir}/bmpx/plugins/vfs
149 %dir %{_libdir}/bmpx/plugins/vfs/container
150 %dir %{_libdir}/bmpx/plugins/vfs/transport
151 #%attr(755,root,root) %{_libdir}/bmpx/plugins/flow/*.so*
152 %attr(755,root,root) %{_libdir}/bmpx/plugins/vfs/container/*.so*
153 %attr(755,root,root) %{_libdir}/bmpx/plugins/vfs/transport/*.so*
154
155 %{_datadir}/bmpx
156 %{_datadir}/dbus-1/services/*.service
157 %{_datadir}/mime/packages/*.xml
158 %{_mandir}/man*/*
159 %{_desktopdir}/*
160 %{_iconsdir}/hicolor/*/*/*.png
161
162 %files devel
163 %defattr(644,root,root,755)
164 %{_includedir}/bmp-2.0
165 %{_pkgconfigdir}/*.pc
This page took 1.373238 seconds and 4 git commands to generate.