rpms/postr/devel nautilus-ext-dir.patch, NONE, 1.1 postr.spec, 1.19, 1.20
Tim Lauridsen
timlau at fedoraproject.org
Tue Aug 25 13:50:43 UTC 2009
- Previous message (by thread): rpms/doxygen/F-11 doxygen-1.6.0-config.patch, NONE, 1.1 doxygen-1.6.0-timestamp.patch, NONE, 1.1 doxygen.spec, 1.65, 1.66 sources, 1.30, 1.31 doxygen-1.5.5-system-png.patch, 1.2, NONE doxygen-1.5.8-config.patch, 1.1, NONE doxygen-1.5.8-qt4.patch, 1.2, NONE
- Next message (by thread): rpms/GConf2/devel .cvsignore, 1.43, 1.44 GConf2.spec, 1.111, 1.112 sources, 1.43, 1.44
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: timlau
Update of /cvs/pkgs/rpms/postr/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv16534
Modified Files:
postr.spec
Added Files:
nautilus-ext-dir.patch
Log Message:
fix build on multi archs
nautilus-ext-dir.patch:
setup.py | 26 ++++++++++++++++++++++----
1 file changed, 22 insertions(+), 4 deletions(-)
--- NEW FILE nautilus-ext-dir.patch ---
--- postr-0.12.3/setup.py 2008-12-19 15:51:01.000000000 +0100
+++ postr-0.12.3.new/setup.py 2009-08-25 15:44:58.123732748 +0200
@@ -1,9 +1,30 @@
#!/usr/bin/env python
+import os
from distutils.core import setup
+from distutils.command.install_data import install_data
from glob import glob
from src.version import __version__
+
+class InstallData(install_data):
+ def run(self):
+ self.data_files.extend(self._nautilus_plugin())
+ install_data.run(self)
+
+ def _nautilus_plugin(self):
+ files = []
+ cmd = os.popen('pkg-config --variable=pythondir nautilus-python', 'r')
+ res = cmd.readline().strip()
+ ret = cmd.close()
+
+ if ret is None:
+ dest = res[5:]
+ files.append((dest, ['nautilus/postrExtension.py']))
+
+ return files
+
+
setup(name='Postr',
version=__version__,
description='Flickr Uploader',
@@ -21,10 +42,7 @@
('share/icons/hicolor/24x24/apps', glob('data/24x24/*.png')),
('share/icons/hicolor/32x32/apps', glob('data/32x32/*.png')),
('share/icons/hicolor/scalable/apps', glob('data/scalable/*.svg')),
- # TODO: inspect nautilus-python.pc to get path
- ('lib/nautilus/extensions-1.0/python', ['nautilus/postrExtension.py']),
- ('lib/nautilus/extensions-2.0/python', ['nautilus/postrExtension.py']),
- ],
+ ], cmdclass={'install_data': InstallData}
)
Index: postr.spec
===================================================================
RCS file: /cvs/pkgs/rpms/postr/devel/postr.spec,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -p -r1.19 -r1.20
--- postr.spec 25 Aug 2009 12:42:18 -0000 1.19
+++ postr.spec 25 Aug 2009 13:50:43 -0000 1.20
@@ -2,7 +2,7 @@
Name: postr
Version: 0.12.3
-Release: 6%{?dist}
+Release: 7%{?dist}
Summary: Flickr uploader
Group: Applications/Multimedia
@@ -10,10 +10,12 @@ License: GPLv2+
URL: http://www.burtonini.com/blog/computers/postr
Source0: http://burtonini.com/computing/%{name}-%{version}.tar.gz
Patch0: fix_upload_button.patch
+Patch1: nautilus-ext-dir.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: python-devel
BuildRequires: desktop-file-utils
+BuildRequires: nautilus-python-devel
Requires: python-twisted-core
Requires: python-twisted-web
Requires: pygtk2
@@ -30,6 +32,7 @@ Tool for uploading photos to the photo-s
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
@@ -64,7 +67,6 @@ touch --no-create %{_datadir}/icons/hico
%doc AUTHORS COPYING README TODO
%{_bindir}/%{name}
%{_libdir}/nautilus/extensions-2.0/python/postrExtension.py*
-%{_libdir}/nautilus/extensions-1.0/python/postrExtension.py*
%{python_sitelib}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*
@@ -72,6 +74,12 @@ touch --no-create %{_datadir}/icons/hico
%changelog
+* Thu Aug 25 2009 Tim Lauridsen <timlau at fedoraproject.org> - 0.12.3-7
+- Added nautilus-ext-dir.patch to upstrem setup.py to install nautilus extentions
+- in the right directory
+- Added BuildRequires: nautilus-python-devel because we need the .pc file to
+- detect the right nautilus python extention dir
+
* Thu Aug 25 2009 Tim Lauridsen <timlau at fedoraproject.org> - 0.12.3-6
- removed BuildArch: noarch to get it to build for each arch
- Previous message (by thread): rpms/doxygen/F-11 doxygen-1.6.0-config.patch, NONE, 1.1 doxygen-1.6.0-timestamp.patch, NONE, 1.1 doxygen.spec, 1.65, 1.66 sources, 1.30, 1.31 doxygen-1.5.5-system-png.patch, 1.2, NONE doxygen-1.5.8-config.patch, 1.1, NONE doxygen-1.5.8-qt4.patch, 1.2, NONE
- Next message (by thread): rpms/GConf2/devel .cvsignore, 1.43, 1.44 GConf2.spec, 1.111, 1.112 sources, 1.43, 1.44
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list