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