rpms/python-id3/devel python-id3-setup-license.patch, NONE, 1.1 python-id3.spec, 1.5, 1.6

Michal Nowak mnowak at fedoraproject.org
Sat Sep 6 16:38:37 UTC 2008


Author: mnowak

Update of /cvs/pkgs/rpms/python-id3/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv3091

Modified Files:
	python-id3.spec 
Added Files:
	python-id3-setup-license.patch 
Log Message:
- bundled sample app id3-tagger.py as a %%doc
- explicitly set %%defattr(0644,root,root,0755) because of id3-tagger.py 
  being executable
- installed EGG info + patch to include it's GPLv2+ license in proper field
- BuildRequires: python-setuptools-devel
- package conforms to https://fedoraproject.org/wiki/Packaging/Python/Eggs
- README is now UTF-8



python-id3-setup-license.patch:

--- NEW FILE python-id3-setup-license.patch ---
--- setup.py	2008-09-06 18:23:05.334357941 +0200
+++ setup.py.new	2008-09-06 18:22:04.976358336 +0200
@@ -13,6 +13,7 @@ setup (# Distribution meta-data
        author = "Ben Gertzfield",
        author_email = "che at debian.org",
        url = "http://id3-py.sourceforge.net/",
+       license = "GPLv2+",
 
        # Description of the modules and packages in the distribution
        py_modules = ['ID3']


Index: python-id3.spec
===================================================================
RCS file: /cvs/pkgs/rpms/python-id3/devel/python-id3.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- python-id3.spec	3 Sep 2008 16:58:01 -0000	1.5
+++ python-id3.spec	6 Sep 2008 16:38:06 -0000	1.6
@@ -2,17 +2,19 @@
 
 Name:           python-id3
 Version:        1.2
-Release:        10%{?dist}
+Release:        11%{?dist}
 Summary:        ID3 tag library for Python
 
 Group:          Development/Libraries
 License:        GPLv2+
-URL:            http://id3-py.sourceforge.net/
-Source0:        http://dl.sourceforge.net/id3-py/id3-py_%{version}.tar.gz
+URL:            http://id3-py.sourceforge.net
+Source:         http://dl.sourceforge.net/id3-py/id3-py_%{version}.tar.gz
+Patch:          python-id3-setup-license.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
 BuildRequires:  python-devel
+BuildRequires:  python-setuptools-devel
 Provides:       id3-py = %{version}-%{release}
 Obsoletes:      id3-py < 1.2-8
 
@@ -24,23 +26,20 @@
 
 
 %prep
-cat<<EOT
-
-Build disabled. Package is without maintainer.
-
-EOT
-exit 1
-
 %setup -q -n id3-py-%{version}
+%patch0
 
 
 %build
-%{__python} setup.py build
+CFLAGS="$RPM_OPT_FLAGS" %{__python} -c 'import setuptools; execfile("setup.py")' build
 
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+%{__python} -c 'import setuptools; execfile("setup.py")' install --skip-build --root $RPM_BUILD_ROOT
+%{__install} -d -m 0755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+%{__install} -p -m 0644 id3-tagger.py $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/id3-tagger.py
+iconv -f ISO-8859-1 -t UTF8 README -o README
 
 
 %clean
@@ -48,12 +47,24 @@
 
 
 %files
-%defattr(-,root,root,-)
-%doc CHANGES COPYING README
-%{python_sitelib}/ID3.py*
+%defattr(0644,root,root,0755)
+%doc CHANGES COPYING README id3-tagger.py
+%{python_sitelib}/ID3.py
+%{python_sitelib}/ID3.pyc
+%{python_sitelib}/ID3.pyo
+%{python_sitelib}/*egg-info
 
 
 %changelog
+* Sat Sep 06 2008 Michal Nowak <mnowak at redhat.com> - 1.2-11
+- bundled sample app id3-tagger.py as a %%doc
+- explicitly set %%defattr(0644,root,root,0755) because of id3-tagger.py 
+  being executable
+- installed EGG info + patch to include it's GPLv2+ license in proper field
+- BuildRequires: python-setuptools-devel
+- package conforms to https://fedoraproject.org/wiki/Packaging/Python/Eggs
+- README is now UTF-8
+
 * Wed Sep  3 2008 Tom "spot" Callaway <tcallawa at redhat.com> - 1.2-10
 - fix license tag
 




More information about the fedora-extras-commits mailing list