%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %global beta rc1 Name: pytagsfs Version: 0.9.1 Release: 0.%{beta}.n0i.1%{?dist} Summary: FUSE filesystem that arranges media files Group: Development/Languages License: GPLv2 URL: http://www.pytagsfs.org/ Source0: http://www.alittletooquiet.net/media/release/%{name}-%{version}%{?beta}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel BuildRequires: fuse-python Requires: fuse-python >= 0.2 Requires: python-mutagen Requires: python-sclapp >= 0.5.2 %description pytagsfs is a FUSE filesystem that arranges media files in a virtual directory structure based on the file tags. For instance, a set of audio files could be mapped to a new directory structure organizing them hierarchically by album, genre, release date, etc. File tags can be changed by moving and renaming virtual files and directories. The virtual files can also be modified directly, and, of course, can be opened and played just like regular files. %prep %setup -q -n %{name}-%{version}%{?beta} %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc AUTHORS BUGS COPYING NEWS README TODO %{python_sitelib}/* %{_bindir}/* %{_mandir}/man*/* %changelog * Fri Aug 28 2009 Marius FERARU - 0.9.1-0.rc1.n0i.1 - version 0.9.1rc1 * Fri Aug 28 2009 Marius FERARU - 0.9.0-1.n0i.1 - initial packaging