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