[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/python-tag/FC-5 python-tag.spec, NONE, 1.1 tagpy-0.91-baz.patch, NONE, 1.1 tagpy-LICENSE, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2



Author: thias

Update of /cvs/extras/rpms/python-tag/FC-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv1540/FC-5

Modified Files:
	.cvsignore sources 
Added Files:
	python-tag.spec tagpy-0.91-baz.patch tagpy-LICENSE 
Log Message:
Initial import of python-tag.



--- NEW FILE python-tag.spec ---
%define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")

Summary: Python bindings for TagLib to read and write music files tags
Name: python-tag
Version: 0.91
Release: 3%{?dist}
License: BSD
Group: Development/Languages
URL: http://news.tiker.net/software/tagpy
Source0: http://news.tiker.net/news.tiker.net/download/software/tagpy/tagpy-%{version}.tar.gz
Source1: tagpy-LICENSE
Patch0: tagpy-0.91-baz.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: python-devel
BuildRequires: taglib-devel
BuildRequires: boost-devel

%description
TagPy is a Python crust (or a set of Python bindings) for TagLib, which allows
to read and write ID3 tags of version 1 and 2, access Xiph Comments in Ogg
Vorbis Files and Ogg Flac Files and access APE tags in Musepack and MP3 files.


%prep
%setup -q -n tagpy-%{version}
%patch0 -p1 -b .baz
%{__install} -p -m 0644 %{SOURCE1} LICENSE


%build
CFLAGS="%{optflags}" %{__python} setup.py build


%install
%{__rm} -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root %{buildroot}


%clean
%{__rm} -rf %{buildroot}


%files
%defattr(-,root,root,-)
%doc LICENSE README test/*.py test/tagrename
%{python_sitearch}/tagpy/
%{python_sitearch}/_tagpy.so


%changelog
* Fri May 11 2007 Matthias Saou <http://freshrpms.net/> 0.91-3
- Actually include LICENSE file.

* Thu May 10 2007 Matthias Saou <http://freshrpms.net/> 0.91-2
- Include BSD license text, copied from the debian package (Debian #417372).
- Include minor patch for upstream 0.92 backports.

* Fri Feb  9 2007 Matthias Saou <http://freshrpms.net/> 0.91-1
- Initial RPM release.


tagpy-0.91-baz.patch:

--- NEW FILE tagpy-0.91-baz.patch ---
diff -Naupr tagpy-0.91/src/basics.cpp tagpy-0.92/src/basics.cpp
--- tagpy-0.91/src/basics.cpp	2006-01-20 06:05:40.000000000 +0100
+++ tagpy-0.92/src/basics.cpp	2006-01-20 06:02:30.000000000 +0100
@@ -123,13 +123,21 @@ BOOST_PYTHON_MODULE(_tagpy)
   {
     typedef Tag cl;
     class_<TagWrap, boost::noncopyable>("Tag", no_init)
-      .add_property("title", &cl::title, &cl::setTitle)
-      .add_property("artist", &cl::artist, &cl::setArtist)
-      .add_property("album", &cl::album, &cl::setAlbum)
-      .add_property("comment", &cl::comment, &cl::setComment)
-      .add_property("genre", &cl::genre, &cl::setGenre)
-      .add_property("year", &cl::year, &cl::setYear)
-      .add_property("track", &cl::track, &cl::setTrack)
+      .DEF_VIRTUAL_METHOD(title)
+      .DEF_VIRTUAL_METHOD(artist)
+      .DEF_VIRTUAL_METHOD(album)
+      .DEF_VIRTUAL_METHOD(comment)
+      .DEF_VIRTUAL_METHOD(genre)
+      .DEF_VIRTUAL_METHOD(year)
+      .DEF_VIRTUAL_METHOD(track)
+      
+      .DEF_VIRTUAL_METHOD(setTitle)
+      .DEF_VIRTUAL_METHOD(setArtist)
+      .DEF_VIRTUAL_METHOD(setAlbum)
+      .DEF_VIRTUAL_METHOD(setComment)
+      .DEF_VIRTUAL_METHOD(setGenre)
+      .DEF_VIRTUAL_METHOD(setYear)
+      .DEF_VIRTUAL_METHOD(setTrack)
       
       .DEF_VIRTUAL_METHOD(isEmpty)
       ;
@@ -138,10 +146,10 @@ BOOST_PYTHON_MODULE(_tagpy)
   {
     typedef AudioProperties cl;
     class_<AudioPropertiesWrap, boost::noncopyable>("AudioProperties", no_init)
-      .add_property("length", &cl::length)
-      .add_property("bitrate", &cl::bitrate)
-      .add_property("sampleRate", &cl::sampleRate)
-      .add_property("channels", &cl::channels)
+      .def("length", pure_virtual(&AudioProperties::length))
+      .def("bitrate", pure_virtual(&AudioProperties::bitrate))
+      .def("sampleRate", pure_virtual(&AudioProperties::sampleRate))
+      .def("channels", pure_virtual(&AudioProperties::channels))
       ;
   }
 
diff -Naupr tagpy-0.91/test/tagprinter.py tagpy-0.92/test/tagprinter.py
--- tagpy-0.91/test/tagprinter.py	2006-01-20 06:05:40.000000000 +0100
+++ tagpy-0.92/test/tagprinter.py	2006-01-20 06:02:29.000000000 +0100
@@ -3,13 +3,13 @@ import tagpy
 f = tagpy.FileRef("la.ogg")
 t = f.tag()
 
-print t.artist
-print t.title
-print t.album
-print t.year
+print t.artist()
+print t.title()
+print t.album()
+print t.year()
 
-t.artist = "Andreas"
-t.title = "Laaa-ahh"
-t.album = "Shake what'cha got"
-t.year = 2006
+t.setArtist("Andreas")
+t.setTitle("Laaa-ahh")
+t.setAlbum("Shake what'cha got")
+t.setYear(2006)
 f.save()


--- NEW FILE tagpy-LICENSE ---
This software was downloaded from <http://news.tiker.net/software/tagpy>

Upstream Author: Andreas Kloeckner <inform tiker net>

Copyright: 2006 Andreas Kloeckner <inform tiker net>

License:
    Redistribution and use in source and binary forms, with or without
    modification, are permitted under the terms of the BSD License.

    THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    SUCH DAMAGE.



Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/python-tag/FC-5/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	14 May 2007 15:19:18 -0000	1.1
+++ .cvsignore	14 May 2007 16:23:24 -0000	1.2
@@ -0,0 +1 @@
+tagpy-0.91.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/python-tag/FC-5/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	14 May 2007 15:19:18 -0000	1.1
+++ sources	14 May 2007 16:23:24 -0000	1.2
@@ -0,0 +1 @@
+c9de0b7b3819579b5f460b20c42e03c9  tagpy-0.91.tar.gz


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]