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