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