]> git.pld-linux.org Git - packages/bmpx.git/blob - bmpx.spec
- up to version 0.30.3
[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.30.3
5 Release:        0.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:  a167af1ee51db6bf797c35034d7daa20
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.197
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.10.0
41 Requires(post,postun):  shared-mime-info
42 Requires:       gstreamer-audio-effects-base >= 0.10.9
43 Requires:       gstreamer-audio-formats >= 0.10.3
44 Requires:       gstreamer-audiosink
45 Obsoletes:      bmpx-curses
46 Obsoletes:      bmpx-libs
47 Obsoletes:      bmpx-plugin-container
48 Obsoletes:      bmpx-plugin-flow
49 Obsoletes:      bmpx-plugins-base
50 Obsoletes:      bmpx-plugin-transport
51 Obsoletes:      bmpx-remote
52 Obsoletes:      bmpx-remote-gtk
53 Obsoletes:      bmpx-static
54 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55
56 %description
57 BMPx is the follow-up of the BMP project with a codebase rewritten
58 from scratch and aims to maintain a stable audio player foundation,
59 and to provide a player with a consistent and easy to understand usage
60 experience.
61
62 %description -l pl
63 BMPx jest nastêpc± projektu BMP z przepisanym od zera kodem i skupia
64 siê na utrzymaniu stabilnej podstawy odtwarzacza d¼wiêku, aby
65 udostêpniæ odtwarzacz ze spójn± i ³atw± do zrozumienia obs³ug±.
66
67 %package devel
68 Summary:        Header files for BMPx media player
69 Summary(pl):    Pliki nag³ówkowe odtwarzacza multimedialnego BMPx
70 Group:          X11/Development/Libraries
71 Requires:       dbus-glib-devel >= 0.62
72 Obsoletes:      libchroma-devel
73 Obsoletes:      libhrel-devel
74
75 %description devel
76 Header files required for compiling BMPx media player plugins.
77
78 %description devel -l pl
79 Pliki nag³ówkowe potrzebne do kompilowania wtyczek odtwarzacza
80 multimedialnego BMPx.
81
82 %prep
83 %setup -q
84 %patch0 -p1
85
86 %build
87 %{__libtoolize}
88 %{__aclocal} -I m4
89 %{__autoconf}
90 %{__autoheader}
91 %{__automake}
92 LDFLAGS="%{rpmldflags} -Wl,--as-needed"
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 umask 022
119 /usr/bin/update-mime-database %{_datadir}/mime || :
120 gtk-update-icon-cache -qf %{_datadir}/icons/hicolor
121
122 %banner %{name} -e << EOF
123 Remember to install appropriate GStreamer plugins for files
124 you want to play:
125 - gstreamer-cdparanoia (for Audio-CD)
126 - gstreamer-flac (for FLAC)
127 - gstreamer-mad (for MP3s)
128 - gstreamer-vorbis (for Ogg Vorbis)
129 EOF
130
131 %postun
132 %update_desktop_database_postun
133 gtk-update-icon-cache -qf %{_datadir}/icons/hicolor
134 if [ $1 = 0 ]; then
135         umask 022
136         /usr/bin/update-mime-database %{_datadir}/mime
137 fi
138
139 %files -f %{name}.lang
140 %defattr(644,root,root,755)
141 %doc AUTHORS ChangeLog NEWS README
142 %attr(755,root,root) %{_bindir}/beep-media-player-2
143 %attr(755,root,root) %{_bindir}/bmp-enqueue-files-2.0 
144 %attr(755,root,root) %{_bindir}/bmp-enqueue-uris-2.0
145 %attr(755,root,root) %{_bindir}/bmp-play-files-2.0
146 %attr(755,root,root) %{_bindir}/bmp-play-lastfm-2.0
147 %attr(755,root,root) %{_libexecdir}/beep-media-player-2-bin
148
149 %dir %{_libdir}/bmpx
150 %dir %{_libdir}/bmpx/plugins
151 #%dir %{_libdir}/bmpx/plugins/flow
152 %dir %{_libdir}/bmpx/plugins/vfs
153 %dir %{_libdir}/bmpx/plugins/vfs/container
154 %dir %{_libdir}/bmpx/plugins/vfs/transport
155 #%attr(755,root,root) %{_libdir}/bmpx/plugins/flow/*.so*
156 %attr(755,root,root) %{_libdir}/bmpx/plugins/vfs/container/*.so*
157 %attr(755,root,root) %{_libdir}/bmpx/plugins/vfs/transport/*.so*
158
159 %{_datadir}/bmpx
160 %{_datadir}/dbus-1/services/*.service
161 %{_datadir}/mime/packages/*.xml
162 %{_mandir}/man*/*
163 %{_desktopdir}/*
164 %{_iconsdir}/hicolor/*/*/*.png
165
166 %files devel
167 %defattr(644,root,root,755)
168 %{_includedir}/bmp-2.0
169 %{_pkgconfigdir}/*.pc
This page took 0.073774 seconds and 4 git commands to generate.