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