]> git.pld-linux.org Git - packages/bmpx.git/blob - bmpx.spec
- Up to 0.14.2, removed unneeded Patch1
[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.2
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:  ae4bd51b8a345957584530a59c9dfa9f
10 Source1:        mp3license
11 Patch0:         %{name}-desktop.patch
12 URL:            http://beep-media-player.org/
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  curl-devel
16 BuildRequires:  dbus-glib-devel
17 BuildRequires:  esound-devel >= 0.2.8
18 BuildRequires:  gamin-devel
19 BuildRequires:  gstreamer-plugins-base-devel >= 0.10.4
20 BuildRequires:  gtk+2-devel >= 2:2.8.0
21 BuildRequires:  hal-devel
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.197
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
115 %build
116 %{__libtoolize}
117 %{__aclocal} -I m4
118 %{__autoconf}
119 %{__autoheader}
120 %{__automake}
121
122 %configure \
123         --enable-hal \
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 %update_desktop_database_post
151 %banner %{name} -e << EOF
152 Remember to install appropriate GStreamer plugins for files
153 you want to play:
154 - gstreamer-flac (for FLAC)
155 - gstreamer-mad (for MP3s)
156 - gstreamer-vorbis (for Ogg Vorbis)
157 EOF
158
159 %postun
160 %update_desktop_database_postun
161
162 %post   libs -p /sbin/ldconfig
163 %postun libs -p /sbin/ldconfig
164
165 %files -f %{name}.lang
166 %defattr(644,root,root,755)
167 %doc AUTHORS ChangeLog NEWS README
168 %attr(755,root,root) %{_bindir}/beep-media-player-2
169 %attr(755,root,root) %{_bindir}/bmp-enqueue-files-2.0 
170 %attr(755,root,root) %{_bindir}/bmp-enqueue-uris-2.0
171 %attr(755,root,root) %{_bindir}/bmp-play-files-2.0
172 %attr(755,root,root) %{_libexecdir}/beep-media-player-2-bin
173 %dir %{_libdir}/bmp-2.0
174 %dir %{_libdir}/bmp-2.0/plugins
175 %{_datadir}/bmpx
176 %{_datadir}/dbus-1/services/*.service
177 %{_mandir}/man*/*
178 %{_desktopdir}/*
179 %{_pixmapsdir}/*
180
181 %files libs
182 %defattr(644,root,root,755)
183 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
184
185 %files devel
186 %defattr(644,root,root,755)
187 %attr(755,root,root) %{_libdir}/lib*.so
188 %{_libdir}/lib*.la
189 %{_includedir}/bmp-2.0
190 %{_includedir}/libchroma
191 %{_includedir}/libhrel
192 %{_pkgconfigdir}/*.pc
193
194 %files static
195 %defattr(644,root,root,755)
196 %{_libdir}/lib*.a
197
198 %files plugins-base
199 %defattr(644,root,root,755)
200 %dir %{_libdir}/bmp-2.0/plugins/container
201 %dir %{_libdir}/bmp-2.0/plugins/flow
202 %dir %{_libdir}/bmp-2.0/plugins/transport
203 %attr(755,root,root) %{_libdir}/bmp-2.0/plugins/container/*.so*
204 %attr(755,root,root) %{_libdir}/bmp-2.0/plugins/flow/*.so*
205 %attr(755,root,root) %{_libdir}/bmp-2.0/plugins/transport/*.so*
This page took 0.102032 seconds and 4 git commands to generate.