]> git.pld-linux.org Git - packages/bmpx.git/blob - bmpx.spec
- added libexec patch, rel.1
[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.14
5 Release:        1
6 License:        GPL v2
7 Group:          X11/Applications/Sound
8 Source0:        http://dl.sourceforge.net/beepmp/%{name}-%{version}.tar.bz2
9 # Source0-md5:  d049ec4c59ec5a0596eab32b1a70b2a9
10 Source1:        mp3license
11 Patch0:         %{name}-desktop.patch
12 Patch1:         %{name}-libexec.patch
13 URL:            http://beep-media-player.org/
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  curl-devel
17 BuildRequires:  dbus-glib-devel
18 BuildRequires:  esound-devel >= 0.2.8
19 BuildRequires:  fam-devel
20 BuildRequires:  gstreamer-plugins-base-devel >= 0.10.4
21 BuildRequires:  gtk+2-devel >= 2:2.8.0
22 BuildRequires:  libglade2-devel >= 1:2.5.1
23 BuildRequires:  libmusicbrainz-devel >= 2.1.1
24 BuildRequires:  libtool
25 BuildRequires:  libvorbis-devel >= 1:1.0
26 BuildRequires:  libxml2-devel >= 2.6.1
27 BuildRequires:  neon-devel >= 0.25.5
28 BuildRequires:  rpmbuild(macros) >= 1.194
29 BuildRequires:  rpm-pythonprov
30 BuildRequires:  startup-notification-devel >= 0.8
31 BuildRequires:  taglib-devel >= 1.4
32 Requires:       %{name}-libs = %{version}-%{release}
33 Requires:       %{name}-plugins-base = %{version}-%{release}
34 Requires:       gstreamer-audio-effects-base
35 Requires:       gstreamer-audio-formats
36 Requires:       gstreamer-audiosink
37 Obsoletes:      bmpx-curses
38 Obsoletes:      bmpx-remote
39 Obsoletes:      bmpx-remote-gtk
40 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41
42 %description
43 BMPx is the follow-up of the BMP project with a codebase rewritten
44 from scratch and aims to maintain a stable audio player foundation,
45 and to provide a player with a consistent and easy to understand usage
46 experience.
47
48 %description -l pl
49 BMPx jest nastêpc± projektu BMP z przepisanym od zera kodem i skupia
50 siê na utrzymaniu stabilnej podstawy odtwarzacza d¼wiêku, aby
51 udostêpniæ odtwarzacz ze spójn± i ³atw± do zrozumienia obs³ug±.
52
53 %package libs
54 Summary:        BMPx player libraries
55 Summary(pl):    Biblioteki odtwarzacza BMPx
56 Group:          X11/Libraries
57 Obsoletes:      libchroma
58 Obsoletes:      libhrel
59
60 %description libs
61 BMPx player libraries.
62
63 %description libs -l pl
64 Biblioteki odtwarzacza BMPx.
65
66 %package devel
67 Summary:        Header files for BMPx media player
68 Summary(pl):    Pliki nag³ówkowe odtwarzacza multimedialnego BMPx
69 Group:          X11/Development/Libraries
70 Requires:       %{name}-libs = %{version}-%{release}
71 Requires:       gtk+2-devel >= 2:2.8.0
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 %package static
83 Summary:        Static BMPx library
84 Summary(pl):    Statyczna biblioteka BMPx
85 Group:          X11/Development/Libraries
86 Requires:       %{name}-devel = %{version}-%{release}
87 Obsoletes:      libchroma-static
88 Obsoletes:      libhrel-static
89
90 %description static
91 Static BMPx library.
92
93 %description static -l pl
94 Statyczna biblioteka BMPx.
95
96 %package plugins-base
97 Summary:        Base plugins for BMPx
98 Summary(pl):    Podstawowe wtyczki dla BMPx
99 Group:          X11/Applications/Sound
100 Requires:       %{name} = %{version}-%{release}
101 Obsoletes:      bmpx-plugin-container
102 Obsoletes:      bmpx-plugin-flow
103 Obsoletes:      bmpx-plugin-transport
104
105 %description plugins-base
106 Base plugins for BMPx.
107
108 %description plugins-base -l pl
109 Podstawowe wtyczki dla BMPx.
110
111 %prep
112 %setup -q
113 %patch0 -p1
114 %patch1 -p1
115
116 %build
117 %{__libtoolize}
118 %{__aclocal} -I m4
119 %{__autoconf}
120 %{__autoheader}
121 %{__automake}
122
123 %configure \
124         --enable-shared \
125         --enable-static \
126         --with-dbus-services-dir=%{_datadir}/dbus-1/services
127 %{__make}
128
129 %install
130 rm -rf $RPM_BUILD_ROOT
131
132 %{__make} install \
133         DESTDIR=$RPM_BUILD_ROOT \
134         m4datadir=%{_aclocaldir}
135
136 rm -f $RPM_BUILD_ROOT%{_datadir}/bmpx/data/GPL.txt
137
138 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
139 mv -f $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps/bmpx.png \
140         $RPM_BUILD_ROOT%{_pixmapsdir}
141
142 rm -f $RPM_BUILD_ROOT%{_libdir}/bmp-2.0/plugins/*/*.{a,la}
143
144 %find_lang %{name}
145
146 %clean
147 rm -rf $RPM_BUILD_ROOT
148
149 %post
150 umask 022
151 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
152
153 %banner %{name} -e << EOF
154 Remember to install appropriate GStreamer plugins for files
155 you want to play:
156 - gstreamer-flac (for FLAC)
157 - gstreamer-mad (for MP3s)
158 - gstreamer-vorbis (for Ogg Vorbis)
159 EOF
160
161 %postun
162 if [ $1 = 0 ]; then
163     umask 022
164     [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
165 fi
166
167 %post   libs -p /sbin/ldconfig
168 %postun libs -p /sbin/ldconfig
169
170 %files -f %{name}.lang
171 %defattr(644,root,root,755)
172 %doc AUTHORS ChangeLog NEWS README
173 %attr(755,root,root) %{_bindir}/beep-media-player-2
174 %attr(755,root,root) %{_bindir}/bmp-enqueue-files-2.0 
175 %attr(755,root,root) %{_bindir}/bmp-enqueue-uris-2.0
176 %attr(755,root,root) %{_bindir}/bmp-play-files-2.0
177 %attr(755,root,root) %{_libexecdir}/beep-media-player-2-bin
178 %dir %{_libdir}/bmp-2.0
179 %dir %{_libdir}/bmp-2.0/plugins
180 %{_datadir}/bmpx
181 %{_datadir}/dbus-1/services/*.service
182 %{_mandir}/man*/*
183 %{_desktopdir}/*
184 %{_pixmapsdir}/*
185
186 %files libs
187 %defattr(644,root,root,755)
188 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
189
190 %files devel
191 %defattr(644,root,root,755)
192 %attr(755,root,root) %{_libdir}/lib*.so
193 %{_libdir}/lib*.la
194 %{_includedir}/bmp-2.0
195 %{_includedir}/libchroma
196 %{_includedir}/libhrel
197 %{_pkgconfigdir}/*.pc
198
199 %files static
200 %defattr(644,root,root,755)
201 %{_libdir}/lib*.a
202
203 %files plugins-base
204 %defattr(644,root,root,755)
205 %dir %{_libdir}/bmp-2.0/plugins/container
206 %dir %{_libdir}/bmp-2.0/plugins/flow
207 %dir %{_libdir}/bmp-2.0/plugins/transport
208 %attr(755,root,root) %{_libdir}/bmp-2.0/plugins/container/*.so*
209 %attr(755,root,root) %{_libdir}/bmp-2.0/plugins/flow/*.so*
210 %attr(755,root,root) %{_libdir}/bmp-2.0/plugins/transport/*.so*
This page took 0.561908 seconds and 4 git commands to generate.