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