]>
Commit | Line | Data |
---|---|---|
2f94c4ac | 1 | Summary: The MusicBrainz tagging library |
1d7513e5 | 2 | Summary(pl.UTF-8): Biblioteka znakowania MusicBrainz |
2f94c4ac | 3 | Name: libtunepimp |
1576d1da | 4 | %define _major 0.5 |
b83e31ac | 5 | Version: %{_major}.3 |
284c1708 | 6 | Release: 11 |
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 |
2f94c4ac JB |
14 | BuildRequires: autoconf >= 2.52 |
15 | BuildRequires: automake | |
a40019e2 JB |
16 | BuildRequires: curl-devel |
17 | BuildRequires: expat-devel | |
640006af | 18 | BuildRequires: flac-devel |
a40019e2 | 19 | BuildRequires: libltdl-devel |
2f94c4ac | 20 | BuildRequires: libmad-devel |
a041b484 | 21 | BuildRequires: libmusicbrainz-devel >= 2.1.0 |
a40019e2 | 22 | BuildRequires: libofa-devel >= 0.4.0 |
2f94c4ac JB |
23 | BuildRequires: libstdc++-devel >= 2:1.4d |
24 | BuildRequires: libtool | |
25 | BuildRequires: libvorbis-devel | |
7e6206cd | 26 | BuildRequires: mpeg4ip-devel >= 1.6 |
dad21fdb | 27 | BuildRequires: python-devel >= 1:2.5 |
a40019e2 | 28 | BuildRequires: rpm-pythonprov |
bd146259 | 29 | BuildRequires: taglib-devel >= 1.4 |
a40019e2 | 30 | BuildRequires: zlib-devel |
2f94c4ac JB |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
33 | %description | |
34 | The MusicBrainz tagging library. | |
35 | ||
1372dcb1 | 36 | %description -l pl.UTF-8 |
2f94c4ac JB |
37 | Biblioteka znakowania MusicBrainz. |
38 | ||
39 | %package devel | |
40 | Summary: Header files for libtunepimp library | |
1d7513e5 | 41 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libtunepimp |
2f94c4ac | 42 | Group: Development/Libraries |
a041b484 | 43 | Requires: %{name} = %{version}-%{release} |
23dda988 JB |
44 | Requires: curl-devel |
45 | Requires: expat-devel | |
a40019e2 | 46 | Requires: libltdl-devel |
a041b484 | 47 | Requires: libmusicbrainz-devel >= 2.1.0 |
a62fd4a4 | 48 | Requires: libofa-devel >= 0.4.0 |
112e17ae | 49 | Requires: libstdc++-devel >= 2:1.4d |
2f94c4ac JB |
50 | |
51 | %description devel | |
52 | Header files for libtunepimp library. | |
53 | ||
1372dcb1 JR |
54 | %description devel -l pl.UTF-8 |
55 | Pliki nagłówkowe biblioteki libtunepimp. | |
2f94c4ac JB |
56 | |
57 | %package static | |
58 | Summary: Static libtunepimp library | |
1d7513e5 | 59 | Summary(pl.UTF-8): Statyczna biblioteka libtunepimp |
2f94c4ac | 60 | Group: Development/Libraries |
a041b484 | 61 | Requires: %{name}-devel = %{version}-%{release} |
2f94c4ac JB |
62 | |
63 | %description static | |
64 | Static libtunepimp library. | |
65 | ||
1372dcb1 | 66 | %description static -l pl.UTF-8 |
2f94c4ac JB |
67 | Statyczna biblioteka libtunepimp. |
68 | ||
a40019e2 JB |
69 | %package -n python-tunepimp |
70 | Summary: Python bindings for libtunepimp library | |
1d7513e5 | 71 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki libtunepimp |
a40019e2 JB |
72 | Group: Libraries/Python |
73 | %pyrequires_eq python-libs | |
74 | Requires: %{name} = %{version}-%{release} | |
a40019e2 JB |
75 | |
76 | %description -n python-tunepimp | |
77 | Python bindings for libtunepimp library. | |
78 | ||
1372dcb1 JR |
79 | %description -n python-tunepimp -l pl.UTF-8 |
80 | Wiązania Pythona do biblioteki libtunepimp. | |
a40019e2 | 81 | |
2f94c4ac JB |
82 | %prep |
83 | %setup -q | |
65af387d | 84 | %patch0 -p1 |
7e6206cd | 85 | %patch1 -p1 |
1e0007f6 | 86 | %patch2 -p1 |
2f94c4ac | 87 | |
c41f0aab PS |
88 | %{__sed} -i 's/ -O2//' configure.in |
89 | %{__sed} -i 's/lt_dlhandle_struct \*/lt_dlhandle/' lib/plugins.cpp | |
bd146259 | 90 | |
2f94c4ac JB |
91 | %build |
92 | %{__libtoolize} | |
93 | %{__aclocal} | |
94 | %{__autoconf} | |
95 | %{__autoheader} | |
96 | %{__automake} | |
c41f0aab PS |
97 | |
98 | %configure \ | |
99 | --enable-ltdl-install=no | |
100 | ||
2f94c4ac JB |
101 | %{__make} |
102 | ||
a40019e2 JB |
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 | ||
2f94c4ac JB |
113 | %install |
114 | rm -rf $RPM_BUILD_ROOT | |
115 | ||
116 | %{__make} install \ | |
117 | DESTDIR=$RPM_BUILD_ROOT | |
118 | ||
bd146259 | 119 | # not installed, but used by installed headers (track.h, tunepimp.h) |
640006af | 120 | install lib/threads/posix/mutex.h \ |
a40019e2 JB |
121 | lib/{analyzer,filecache,plugins,readmeta,write}.h \ |
122 | include/tunepimp-*/metadata.h \ | |
cb77a0a9 | 123 | $RPM_BUILD_ROOT%{_includedir}/tunepimp-%{_major} |
a40019e2 JB |
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 | |
2f94c4ac JB |
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 | |
a40019e2 JB |
147 | %attr(755,root,root) %{_bindir}/puid |
148 | %attr(755,root,root) %{_libdir}/libtunepimp.so.*.*.* | |
0c3e412c | 149 | %attr(755,root,root) %ghost %{_libdir}/libtunepimp.so.5 |
640006af PS |
150 | %dir %{_libdir}/tunepimp |
151 | %dir %{_libdir}/tunepimp/plugins | |
152 | %attr(755,root,root) %{_libdir}/tunepimp/plugins/*.tpp | |
2f94c4ac JB |
153 | |
154 | %files devel | |
155 | %defattr(644,root,root,755) | |
a40019e2 JB |
156 | %attr(755,root,root) %{_libdir}/libtunepimp.so |
157 | %{_libdir}/libtunepimp.la | |
1576d1da | 158 | %{_includedir}/tunepimp-%{_major} |
2f94c4ac JB |
159 | |
160 | %files static | |
161 | %defattr(644,root,root,755) | |
a40019e2 JB |
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] | |
753a68b7 | 169 | %{py_sitescriptdir}/*.egg-info |