Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:11.4
picard
picard.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File picard.spec of Package picard
# # spec file for package picard # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: picard Version: 0.12.1+bzr1043 Release: 2 Summary: The Next Generation MusicBrainz Tagger License: GPLv2+ Group: Productivity/Multimedia/Sound/Utilities Url: http://musicbrainz.org/doc/PicardTagger Source0: %{name}-%{version}.tar.bz2 Source1: addrelease.py Source2: bonusdisc.py Source3: coverart.py Source4: discnumber.py Source5: featartist.py Source6: lastfm/__init__.py Source7: lastfm/ui_options_lastfm.py Source8: SearchAmazon3.py Source9: SearchAMG.py Source10: SearchCastAlbums3.py Source11: SearchDiscogs3.py Source12: SearchFilmMusziek3.py Source13: SearchGMR.py Source14: SearchGoogle3.py Source15: SearchLortelArchives3.py Source16: SearchSoundtrackCollector3.py Source17: SearchSoundtrackINFO3.py BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: desktop-file-utils gcc-c++ libofa-devel python-devel %if 0%{!?sles_version} BuildRequires: libdiscid-devel %endif %if 0%{?suse_version} %py_requires BuildRequires: hicolor-icon-theme python-mutagen python-qt4 update-desktop-files Requires: python-mutagen %endif %if 0%{?fedora} BuildRequires: PyQt4 python-mutagen Requires: python-mutagen %endif %if 0%{?mandriva_version} BuildRequires: python-qt4 %endif %{!?py_sitedir: %define py_sitedir %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %{!?py_ver_int: %define py_ver_int %(%{__python} -c "import sys; v=sys.version_info[:2]; print '%%d%%d'%%v" 2>/dev/null)} %if 0%{?py_ver_int} == 24 Requires: python-ctypes %endif %description MusicBrainz Picard is a cross-platform MusicBrainz tag editor written in Python. Picard Tagger is intended to be the next generation of tagger for MusicBrainz, with a focus on album oriented tagging as opposed to track based tagging and cross platform compatibility. Authors: ------- Lukáš Lalinský <lalinsky@gmail.com> Robert Kaye <rob@eorbit.net> %lang_package %prep %setup -q %build export CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py config %{__python} setup.py build %install %{__python} setup.py install --skip-build --prefix=%{_prefix} --root=$RPM_BUILD_ROOT # install plugins PLUGINDIR=$RPM_BUILD_ROOT%{py_sitedir}/picard/plugins/ install -d ${PLUGINDIR}/lastfm install -m 0644 %{SOURCE1} ${PLUGINDIR} install -m 0644 %{SOURCE2} ${PLUGINDIR} install -m 0644 %{SOURCE3} ${PLUGINDIR} install -m 0644 %{SOURCE4} ${PLUGINDIR} install -m 0644 %{SOURCE5} ${PLUGINDIR} install -m 0644 %{SOURCE6} ${PLUGINDIR}/lastfm install -m 0644 %{SOURCE7} ${PLUGINDIR}/lastfm install -m 0644 %{SOURCE8} ${PLUGINDIR} install -m 0644 %{SOURCE9} ${PLUGINDIR} install -m 0644 %{SOURCE10} ${PLUGINDIR} install -m 0644 %{SOURCE11} ${PLUGINDIR} install -m 0644 %{SOURCE12} ${PLUGINDIR} install -m 0644 %{SOURCE13} ${PLUGINDIR} install -m 0644 %{SOURCE14} ${PLUGINDIR} install -m 0644 %{SOURCE15} ${PLUGINDIR} install -m 0644 %{SOURCE16} ${PLUGINDIR} install -m 0644 %{SOURCE17} ${PLUGINDIR} %if 0%{?fedora} desktop-file-install --delete-original --remove-category="Application" \ --dir=$RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop %endif %if 0%{?suse_version} %suse_update_desktop_file -G "Music Tagger" -N "picard" picard %endif %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %if 0%{?mandriva_version} > 2006 %post %update_menus %postun %clean_menus %endif %if 0%{?suse_version} > 1020 %files lang -f %{name}.lang %defattr(-,root,root) %if 0%{?suse_version} && 0%{?suse_version} < 1130 %lang(sco) %dir %{_datadir}/locale/sco %lang(sco) %dir %{_datadir}/locale/sco/LC_MESSAGES %endif %files %defattr(-,root,root) %else %files -f %{name}.lang %defattr(-,root,root) %endif %doc AUTHORS.txt COPYING.txt NEWS.txt %{_bindir}/picard %{_datadir}/applications/%{name}.desktop %{py_sitedir}/picard* %{_datadir}/icons/hicolor/16x16/apps/picard.png %{_datadir}/icons/hicolor/24x24/apps/picard.png %{_datadir}/icons/hicolor/32x32/apps/picard.png %{_datadir}/icons/hicolor/48x48/apps/picard.png %{_datadir}/icons/hicolor/128x128/apps/picard.png %{_datadir}/icons/hicolor/256x256/apps/picard.png %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor