]>
Commit | Line | Data |
---|---|---|
1 | Summary: The MusicBrainz tagging library | |
2 | Summary(pl.UTF-8): Biblioteka znakowania MusicBrainz | |
3 | Name: libtunepimp | |
4 | %define _major 0.5 | |
5 | Version: %{_major}.3 | |
6 | Release: 11 | |
7 | License: GPL | |
8 | Group: Libraries | |
9 | Source0: ftp://ftp.musicbrainz.org/pub/musicbrainz/%{name}-%{version}.tar.gz | |
10 | # Source0-md5: 09649f983acef679a548344ba7a9bb2f | |
11 | Patch0: %{name}-ltdl.patch | |
12 | Patch1: %{name}-mpeg4ip.patch | |
13 | Patch2: %{name}-gcc43.patch | |
14 | BuildRequires: autoconf >= 2.52 | |
15 | BuildRequires: automake | |
16 | BuildRequires: curl-devel | |
17 | BuildRequires: expat-devel | |
18 | BuildRequires: flac-devel | |
19 | BuildRequires: libltdl-devel | |
20 | BuildRequires: libmad-devel | |
21 | BuildRequires: libmusicbrainz-devel >= 2.1.0 | |
22 | BuildRequires: libofa-devel >= 0.4.0 | |
23 | BuildRequires: libstdc++-devel >= 2:1.4d | |
24 | BuildRequires: libtool | |
25 | BuildRequires: libvorbis-devel | |
26 | BuildRequires: mpeg4ip-devel >= 1.6 | |
27 | BuildRequires: python-devel >= 1:2.5 | |
28 | BuildRequires: rpm-pythonprov | |
29 | BuildRequires: taglib-devel >= 1.4 | |
30 | BuildRequires: zlib-devel | |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
33 | %description | |
34 | The MusicBrainz tagging library. | |
35 | ||
36 | %description -l pl.UTF-8 | |
37 | Biblioteka znakowania MusicBrainz. | |
38 | ||
39 | %package devel | |
40 | Summary: Header files for libtunepimp library | |
41 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libtunepimp | |
42 | Group: Development/Libraries | |
43 | Requires: %{name} = %{version}-%{release} | |
44 | Requires: curl-devel | |
45 | Requires: expat-devel | |
46 | Requires: libltdl-devel | |
47 | Requires: libmusicbrainz-devel >= 2.1.0 | |
48 | Requires: libofa-devel >= 0.4.0 | |
49 | Requires: libstdc++-devel >= 2:1.4d | |
50 | ||
51 | %description devel | |
52 | Header files for libtunepimp library. | |
53 | ||
54 | %description devel -l pl.UTF-8 | |
55 | Pliki nagłówkowe biblioteki libtunepimp. | |
56 | ||
57 | %package static | |
58 | Summary: Static libtunepimp library | |
59 | Summary(pl.UTF-8): Statyczna biblioteka libtunepimp | |
60 | Group: Development/Libraries | |
61 | Requires: %{name}-devel = %{version}-%{release} | |
62 | ||
63 | %description static | |
64 | Static libtunepimp library. | |
65 | ||
66 | %description static -l pl.UTF-8 | |
67 | Statyczna biblioteka libtunepimp. | |
68 | ||
69 | %package -n python-tunepimp | |
70 | Summary: Python bindings for libtunepimp library | |
71 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki libtunepimp | |
72 | Group: Libraries/Python | |
73 | %pyrequires_eq python-libs | |
74 | Requires: %{name} = %{version}-%{release} | |
75 | ||
76 | %description -n python-tunepimp | |
77 | Python bindings for libtunepimp library. | |
78 | ||
79 | %description -n python-tunepimp -l pl.UTF-8 | |
80 | Wiązania Pythona do biblioteki libtunepimp. | |
81 | ||
82 | %prep | |
83 | %setup -q | |
84 | %patch0 -p1 | |
85 | %patch1 -p1 | |
86 | %patch2 -p1 | |
87 | ||
88 | %{__sed} -i 's/ -O2//' configure.in | |
89 | %{__sed} -i 's/lt_dlhandle_struct \*/lt_dlhandle/' lib/plugins.cpp | |
90 | ||
91 | %build | |
92 | %{__libtoolize} | |
93 | %{__aclocal} | |
94 | %{__autoconf} | |
95 | %{__autoheader} | |
96 | %{__automake} | |
97 | ||
98 | %configure \ | |
99 | --enable-ltdl-install=no | |
100 | ||
101 | %{__make} | |
102 | ||
103 | # perl bindings are not updated to current API | |
104 | #cd perl/tunepimp-perl | |
105 | #%{__perl} Makefile.PL \ | |
106 | # OPTIMIZE="%{rpmcflags}" | |
107 | #%{__make} | |
108 | # cd ../.. | |
109 | ||
110 | cd python | |
111 | python setup.py build | |
112 | ||
113 | %install | |
114 | rm -rf $RPM_BUILD_ROOT | |
115 | ||
116 | %{__make} install \ | |
117 | DESTDIR=$RPM_BUILD_ROOT | |
118 | ||
119 | # not installed, but used by installed headers (track.h, tunepimp.h) | |
120 | install lib/threads/posix/mutex.h \ | |
121 | lib/{analyzer,filecache,plugins,readmeta,write}.h \ | |
122 | include/tunepimp-*/metadata.h \ | |
123 | $RPM_BUILD_ROOT%{_includedir}/tunepimp-%{_major} | |
124 | ||
125 | #cd perl/tunepimp-perl | |
126 | #%{__make} install \ | |
127 | # DESTDIR=$RPM_BUILD_ROOT | |
128 | #install -D examples/tp_tagger.pl $RPM_BUILD_ROOT%{_bindir}/tp_tagger | |
129 | # cd ../.. | |
130 | ||
131 | cd python | |
132 | python setup.py install \ | |
133 | --root=$RPM_BUILD_ROOT \ | |
134 | --optimize=2 | |
135 | %py_postclean | |
136 | install -D examples/trm.py $RPM_BUILD_ROOT%{_bindir}/trm | |
137 | ||
138 | %clean | |
139 | rm -rf $RPM_BUILD_ROOT | |
140 | ||
141 | %post -p /sbin/ldconfig | |
142 | %postun -p /sbin/ldconfig | |
143 | ||
144 | %files | |
145 | %defattr(644,root,root,755) | |
146 | %doc AUTHORS ChangeLog README.LGPL TODO | |
147 | %attr(755,root,root) %{_bindir}/puid | |
148 | %attr(755,root,root) %{_libdir}/libtunepimp.so.*.*.* | |
149 | %attr(755,root,root) %ghost %{_libdir}/libtunepimp.so.5 | |
150 | %dir %{_libdir}/tunepimp | |
151 | %dir %{_libdir}/tunepimp/plugins | |
152 | %attr(755,root,root) %{_libdir}/tunepimp/plugins/*.tpp | |
153 | ||
154 | %files devel | |
155 | %defattr(644,root,root,755) | |
156 | %attr(755,root,root) %{_libdir}/libtunepimp.so | |
157 | %{_libdir}/libtunepimp.la | |
158 | %{_includedir}/tunepimp-%{_major} | |
159 | ||
160 | %files static | |
161 | %defattr(644,root,root,755) | |
162 | %{_libdir}/libtunepimp.a | |
163 | ||
164 | %files -n python-tunepimp | |
165 | %defattr(644,root,root,755) | |
166 | %attr(755,root,root) %{_bindir}/trm | |
167 | %dir %{py_sitescriptdir}/tunepimp | |
168 | %{py_sitescriptdir}/tunepimp/*.py[co] | |
169 | %{py_sitescriptdir}/*.egg-info |