|
|
edb6fa7 |
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
edb6fa7 |
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
edb6fa7 |
|
|
|
edb6fa7 |
%define prerelease beta1
|
|
|
edb6fa7 |
|
|
|
edb6fa7 |
Name: picard
|
|
|
edb6fa7 |
Version: 0.9.0
|
|
|
4941bb0 |
Release: 5%{?dist}
|
|
|
edb6fa7 |
Summary: MusicBrainz-based audio tagger
|
|
|
edb6fa7 |
Group: Applications/Multimedia
|
|
|
edb6fa7 |
|
|
|
4941bb0 |
Source0: http://ftp.musicbrainz.org/pub/musicbrainz/picard/picard-%{version}.tar.gz
|
|
|
57043f4 |
|
|
|
57043f4 |
# plugins
|
|
|
57043f4 |
Source1: http://users.musicbrainz.org/~luks/picard-qt/plugins/discnumber.py
|
|
|
57043f4 |
Source2: http://users.musicbrainz.org/~luks/picard-qt/plugins/featartist.py
|
|
|
57043f4 |
Source3: http://users.musicbrainz.org/~luks/picard-qt/plugins/coverart.py
|
|
|
57043f4 |
Source4: http://dispuut-ivv.nl/~jan/bonusdisc.py
|
|
|
57043f4 |
Source5: http://users.musicbrainz.org/~luks/picard-qt/plugins/lastfm/__init__.py
|
|
|
57043f4 |
Source6: http://users.musicbrainz.org/~luks/picard-qt/plugins/lastfm/ui_options_lastfm.py
|
|
|
57043f4 |
|
|
|
57043f4 |
# search plugins
|
|
|
57043f4 |
|
|
|
57043f4 |
Source10: SearchAMG.py
|
|
|
57043f4 |
## actual URL http://wiki.musicbrainz.org/PicardQt/Plugins?action=AttachFile&do=get&target=SearchAMG.py
|
|
|
57043f4 |
Source11: http://users.musicbrainz.org/~brianfreud/SearchAmazon3.py
|
|
|
57043f4 |
Source12: http://users.musicbrainz.org/~brianfreud/SearchCastAlbums3.py
|
|
|
57043f4 |
Source13: http://users.musicbrainz.org/~brianfreud/SearchDiscogs3.py
|
|
|
57043f4 |
Source13: http://users.musicbrainz.org/~brianfreud/SearchFilmMusziek3.py
|
|
|
57043f4 |
Source14: http://users.musicbrainz.org/~brianfreud/SearchGMR.py
|
|
|
57043f4 |
Source15: http://users.musicbrainz.org/~brianfreud/SearchGoogle3.py
|
|
|
57043f4 |
Source16: http://users.musicbrainz.org/~brianfreud/SearchLortelArchives3.py
|
|
|
57043f4 |
Source17: http://users.musicbrainz.org/~brianfreud/SearchSoundtrackCollector3.py
|
|
|
57043f4 |
Source18: http://users.musicbrainz.org/~brianfreud/SearchSoundtrackINFO3.py
|
|
|
57043f4 |
|
|
|
edb6fa7 |
License: GPLv2+
|
|
|
edb6fa7 |
Url: http://musicbrainz.org/doc/PicardTagger
|
|
|
edb6fa7 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
edb6fa7 |
BuildRequires: python-devel
|
|
|
edb6fa7 |
BuildRequires: gettext
|
|
|
edb6fa7 |
BuildRequires: desktop-file-utils
|
|
|
edb6fa7 |
BuildRequires: PyQt4 >= 4.3
|
|
|
edb6fa7 |
BuildRequires: python-mutagen > 1.9
|
|
|
edb6fa7 |
BuildRequires: libofa-devel
|
|
|
edb6fa7 |
Requires: PyQt4 >= 4.3
|
|
|
edb6fa7 |
Requires: python-mutagen > 1.9
|
|
|
57043f4 |
Requires: libdiscid
|
|
|
edb6fa7 |
|
|
|
edb6fa7 |
|
|
|
edb6fa7 |
%description
|
|
|
edb6fa7 |
Picard is an audio tagging application using data from the MusicBrainz
|
|
|
edb6fa7 |
database. The tagger is album or release oriented, rather than
|
|
|
edb6fa7 |
track-oriented.
|
|
|
edb6fa7 |
|
|
|
edb6fa7 |
%prep
|
|
|
4941bb0 |
%setup -q -n picard-%{version}
|
|
|
edb6fa7 |
|
|
|
edb6fa7 |
%build
|
|
|
edb6fa7 |
env %{__python} setup.py config
|
|
|
edb6fa7 |
env CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
|
|
|
edb6fa7 |
|
|
|
edb6fa7 |
%install
|
|
|
edb6fa7 |
rm -rf $RPM_BUILD_ROOT
|
|
|
edb6fa7 |
%{__python} setup.py install -O1 --skip-build --root=$RPM_BUILD_ROOT
|
|
|
57043f4 |
# strip out png extension from .desktop file
|
|
|
57043f4 |
sed -e 's/picard-32.png/picard-32/' picard.desktop > $RPM_BUILD_ROOT/%{_datadir}/applications/picard.desktop
|
|
|
57043f4 |
|
|
|
edb6fa7 |
%find_lang %{name}
|
|
|
edb6fa7 |
desktop-file-install --vendor="fedora" \
|
|
|
edb6fa7 |
--delete-original --remove-category="Application" \
|
|
|
edb6fa7 |
--dir=$RPM_BUILD_ROOT/%{_datadir}/applications \
|
|
|
edb6fa7 |
$RPM_BUILD_ROOT/%{_datadir}/applications/*
|
|
|
edb6fa7 |
# move from icons/ to pixmaps/
|
|
|
edb6fa7 |
mkdir $RPM_BUILD_ROOT/%{_datadir}/pixmaps
|
|
|
edb6fa7 |
install -pm 0644 $RPM_BUILD_ROOT%{_datadir}/icons/picard-*.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/
|
|
|
edb6fa7 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/icons
|
|
|
edb6fa7 |
|
|
|
57043f4 |
# install plugins
|
|
|
57043f4 |
PLUGINDIR=$RPM_BUILD_ROOT%{python_sitearch}/picard/plugins/
|
|
|
57043f4 |
install -pm 0644 %{SOURCE1} ${PLUGINDIR}
|
|
|
57043f4 |
install -pm 0644 %{SOURCE2} ${PLUGINDIR}
|
|
|
57043f4 |
install -pm 0644 %{SOURCE3} ${PLUGINDIR}
|
|
|
57043f4 |
install -pm 0644 %{SOURCE4} ${PLUGINDIR}
|
|
|
57043f4 |
mkdir ${PLUGINDIR}/lastfm/
|
|
|
57043f4 |
install -pm 0644 %{SOURCE5} ${PLUGINDIR}/lastfm/
|
|
|
57043f4 |
install -pm 0644 %{SOURCE6} ${PLUGINDIR}/lastfm/
|
|
|
57043f4 |
|
|
|
57043f4 |
# install search plugins
|
|
|
57043f4 |
install -pm 0644 %{SOURCE10} ${PLUGINDIR}
|
|
|
57043f4 |
install -pm 0644 %{SOURCE11} ${PLUGINDIR}
|
|
|
57043f4 |
install -pm 0644 %{SOURCE12} ${PLUGINDIR}
|
|
|
57043f4 |
install -pm 0644 %{SOURCE13} ${PLUGINDIR}
|
|
|
57043f4 |
install -pm 0644 %{SOURCE14} ${PLUGINDIR}
|
|
|
57043f4 |
install -pm 0644 %{SOURCE15} ${PLUGINDIR}
|
|
|
57043f4 |
install -pm 0644 %{SOURCE16} ${PLUGINDIR}
|
|
|
57043f4 |
install -pm 0644 %{SOURCE17} ${PLUGINDIR}
|
|
|
57043f4 |
install -pm 0644 %{SOURCE18} ${PLUGINDIR}
|
|
|
57043f4 |
|
|
|
edb6fa7 |
## disable tests for the moment
|
|
|
edb6fa7 |
%check
|
|
|
edb6fa7 |
%{?_with_check:%{__python} setup.py test || :}
|
|
|
edb6fa7 |
|
|
|
edb6fa7 |
%clean
|
|
|
edb6fa7 |
rm -rf $RPM_BUILD_ROOT
|
|
|
edb6fa7 |
|
|
|
edb6fa7 |
%files -f %{name}.lang
|
|
|
edb6fa7 |
%defattr(-,root,root,-)
|
|
|
edb6fa7 |
%doc AUTHORS.txt COPYING.txt NEWS.txt INSTALL.txt
|
|
|
edb6fa7 |
%{_bindir}/picard
|
|
|
edb6fa7 |
%{_datadir}/applications/fedora-picard.desktop
|
|
|
edb6fa7 |
%{_datadir}/pixmaps/*
|
|
|
4941bb0 |
%if 0%{?fedora} >= 9
|
|
|
4941bb0 |
%{python_sitearch}/*egg-info
|
|
|
4941bb0 |
%endif
|
|
|
edb6fa7 |
%dir %{python_sitearch}/picard
|
|
|
edb6fa7 |
%{python_sitearch}/picard/*
|
|
|
edb6fa7 |
|
|
|
edb6fa7 |
%changelog
|
|
|
4941bb0 |
* Wed Dec 19 2007 Alex Lancaster <alexlan@fedoraproject.org> 0.9.0-5
|
|
|
4941bb0 |
- Add support for python eggs for F9+
|
|
|
4941bb0 |
|
|
|
4941bb0 |
* Wed Dec 19 2007 Alex Lancaster <alexlan@fedoraproject.org> 0.9.0-4
|
|
|
4941bb0 |
- Update to proper release: 0.9.0
|
|
|
4941bb0 |
- Drop plugins directory patch, applied upstream
|
|
|
4941bb0 |
|
|
|
57043f4 |
* Tue Dec 04 2007 Alex Lancaster <alexlan@fedoraproject.org> 0.9.0-0.6.beta1
|
|
|
57043f4 |
- strip out png extension from .desktop file
|
|
|
57043f4 |
|
|
|
57043f4 |
* Tue Dec 04 2007 Alex Lancaster <alexlan@fedoraproject.org> 0.9.0-0.5.beta1
|
|
|
57043f4 |
- Add plugins from http://musicbrainz.org/doc/PicardQt/Plugins
|
|
|
57043f4 |
- Patch to find proper plugins directory (filed upstream:
|
|
|
57043f4 |
http://bugs.musicbrainz.org/ticket/3430)
|
|
|
57043f4 |
- Does not depend on python-musicbrainz2 any longer, uses libdiscid directly
|
|
|
57043f4 |
|
|
|
57043f4 |
* Wed Nov 15 2007 Alex Lancaster <alexlan@fedoraproject.org> 0.9.0-0.4.beta1
|
|
|
edb6fa7 |
- Various minor spec file cleanups to make sure timestamps stay correct
|
|
|
edb6fa7 |
|
|
|
57043f4 |
* Wed Nov 14 2007 Alex Lancaster <alexlan@fedoraproject.org> 0.9.0-0.3.beta1
|
|
|
edb6fa7 |
- Create pixmaps directory
|
|
|
edb6fa7 |
|
|
|
57043f4 |
* Wed Nov 14 2007 Alex Lancaster <alexlan@fedoraproject.org> 0.9.0-0.2.beta1
|
|
|
edb6fa7 |
- Missing BR: python-devel
|
|
|
edb6fa7 |
- Use sitearch to make sure x86_64 builds work
|
|
|
edb6fa7 |
- Install icons share/pixmaps/, rather than share/icons/
|
|
|
edb6fa7 |
|
|
|
57043f4 |
* Wed Nov 14 2007 Alex Lancaster <alexlan@fedoraproject.org> 0.9.0-0.1.beta1
|
|
|
edb6fa7 |
- Initial packaging
|