rpms/nautilus-pastebin/devel import.log, NONE, 1.1 nautilus-pastebin-default.patch, NONE, 1.1 nautilus-pastebin.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Ankur Sinha
ankursinha at fedoraproject.org
Thu May 6 17:47:40 UTC 2010
Author: ankursinha
Update of /cvs/pkgs/rpms/nautilus-pastebin/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv5065/devel
Modified Files:
.cvsignore sources
Added Files:
import.log nautilus-pastebin-default.patch
nautilus-pastebin.spec
Log Message:
- initial rpm commit for nautilus-pastebin
--- NEW FILE import.log ---
nautilus-pastebin-0_4_1-6_fc12:HEAD:nautilus-pastebin-0.4.1-6.fc12.src.rpm:1273168142
nautilus-pastebin-default.patch:
nautilus-pastebin.schemas | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- NEW FILE nautilus-pastebin-default.patch ---
diff -u -r ../nautilus-pastebin-0.4.1.orig/data/nautilus-pastebin.schemas ./data/nautilus-pastebin.schemas
--- ../nautilus-pastebin-0.4.1.orig/data/nautilus-pastebin.schemas 2010-05-04 13:31:40.812499741 +0530
+++ ./data/nautilus-pastebin.schemas 2010-05-04 13:32:10.179488678 +0530
@@ -46,7 +46,7 @@
<applyto>/apps/nautilus-pastebin/preset</applyto>
<owner>nautilus-pastebin</owner>
<type>string</type>
- <default>pastebin.com</default>
+ <default>fpaste.org</default>
<gettext_domain>nautilus-pastebin</gettext_domain>
<locale name="C">
<short>Selected preset</short>
--- NEW FILE nautilus-pastebin.spec ---
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif
# The package should be a noarch, but the usage the %{_libdir} macro needs removal
# noarch
%global debug_package %{nil}
Name: nautilus-pastebin
Version: 0.4.1
Release: 6%{?dist}
Summary: Nautilus extension to send files to a pastebin
Group: User Interface/Desktops
License: GPLv2+
URL: http://launchpad.net/nautilus-pastebin/
Source0: http://launchpad.net/nautilus-pastebin/trunk/0.4.1/+download/%{name}-%{version}.tar.gz
Patch0: nautilus-pastebin-default.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gettext
BuildRequires: desktop-file-utils
BuildRequires: intltool
BuildRequires: python2-devel
BuildRequires: python-distutils-extra
Requires(pre): GConf2
Requires(post): GConf2
Requires(preun): GConf2
%description
A Nautilus extension written in Python, which allows users to
upload text-only files to a pastebin service just by
right-clicking on them. Users can also add their favorite service
just by creating new presets.
%prep
%setup -q
#removes the line from the desktop file since this is a meaningless tag for Fedora
sed -i 's|X-Ubuntu-Gettext-Domain=nautilus-pastebin||g' data/%{name}-configurator.desktop
sed -i -e '/^#!\//, 1d' pastebin/core.py
%patch0
%build
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install --root=$RPM_BUILD_ROOT --install-scripts=/usr/share/nautilus-pastebin
install -p -D -m 0755 scripts/%{name}.py $RPM_BUILD_ROOT/%{_libdir}/nautilus/extensions-2.0/python/%{name}.py
%find_lang %{name}
desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/%{name}-configurator.desktop
# pinged upstream about schema location.
# using this for the time being.
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/gconf
mv $RPM_BUILD_ROOT%{_datadir}/gconf $RPM_BUILD_ROOT%{_sysconfdir}
%clean
rm -rf $RPM_BUILD_ROOT
%pre
if [ "$1" -gt 1 ]; then
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-uninstall-rule \
%{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
fi
%post
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 \
--makefile-install-rule \
%{_sysconfdir}/gconf/schemas/%{name}.schemas >/dev/null || :
%preun
if [ "$1" -eq 0 ]; then
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-uninstall-rule \
%{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
fi
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc ChangeLog GPL-2 NEWS PKG-INFO README
%{_libdir}/nautilus/extensions-2.0/python/*
%{python_sitelib}/pastebin/*.py*
%{python_sitelib}/nautilus_pastebin-*-py?.?.egg-info
%config(noreplace) %{_sysconfdir}/gconf/schemas/*
%{_datadir}/%{name}/*
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}-configurator.desktop
%changelog
* Wed May 05 2010 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.4.1-6
- Fixes according to #583141
* Tue May 04 2010 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.4.1-5
- patched the default schema file
* Mon May 03 2010 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.4.1-4
- corrected placement of files
- removed noarch since libdir macro has to be used in package
* Sun Apr 18 2010 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.4.1-3
- remove shebang
- correct schema file location
- correct buildarch
* Sat Apr 17 2010 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.4.1-2
- changed according to review request #583141
* Fri Apr 16 2010 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.4.1-1
- initial rpm build
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/nautilus-pastebin/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore 6 May 2010 15:52:06 -0000 1.1
+++ .cvsignore 6 May 2010 17:47:40 -0000 1.2
@@ -0,0 +1 @@
+nautilus-pastebin-0.4.1.tar.gz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/nautilus-pastebin/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources 6 May 2010 15:52:06 -0000 1.1
+++ sources 6 May 2010 17:47:40 -0000 1.2
@@ -0,0 +1 @@
+ad10c5ce66a81bb2b17be31c2e07d4c7 nautilus-pastebin-0.4.1.tar.gz
More information about the scm-commits
mailing list