rpms/scribes/devel scribes.spec, NONE, 1.1 setup-install-gconf-schemas.patch, NONE, 1.1 setup-no-dep-check.patch, NONE, 1.1 setup-no-manual-gconf.patch, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Peter Gordon (pgordon) fedora-extras-commits at redhat.com
Sun May 7 17:42:34 UTC 2006


Author: pgordon

Update of /cvs/extras/rpms/scribes/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv25722/devel

Modified Files:
	.cvsignore sources 
Added Files:
	scribes.spec setup-install-gconf-schemas.patch 
	setup-no-dep-check.patch setup-no-manual-gconf.patch 
Log Message:
auto-import scribes-0.2.4.3-3 on branch devel from scribes-0.2.4.3-3.src.rpm


--- NEW FILE scribes.spec ---
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%define python_module_name	Scribes

Name:		scribes
Version:	0.2.4.3
Release:	3%{?dist}
Summary:	A sleek, simple, and powerful text editor for the GNOME desktop
Group:		Applications/Editors
License:	GPL
URL:		http://scribes.sourceforge.net/           

Source0:	http://openusability.org/download.php/93/%{name}-%{version}.tar.gz
Patch0:		setup-no-dep-check.patch
Patch1:		setup-install-gconf-schemas.patch
Patch2:		setup-no-manual-gconf.patch
BuildArch:	noarch
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:	desktop-file-utils
Requires:	gnome-python2-gtkspell >= 2.12
Requires:	gnome-python2-gtksourceview >= 2.12
Requires:	pygtk2 >= 2.8
Requires(pre):		GConf2
Requires(post):		GConf2
Requires(post):		scrollkeeper
Requires(preun):	GConf2
Requires(postun):	scrollkeeper


%description
Scribes is a simple and sleek text editor for the the GNOME desktop. It focuses
on keeping the working environment free from distractions, and providing strong
automation of mundane, repetitive tasks. 

Through this simplicity, Scribes is very powerful. Its many features include:
* A dynamic templating system (called Snippets),
* Automatic completion of indentifiers and bracketing,
* Automatic indentation and file saving,
* Bookmarks,
* Drag-and-drop functionality,
* Full support for Unicode (UTF-8) text (and many other encodings),
* Syntax highlighting for over 30 programming languages,
* Powerful GNOME integration
* Translations into several different languages,
...and more are in development!

In order to make use of its runtime documentation facilities, you will need to
install Yelp.

%prep
%setup -q
%patch0 -p0
%patch1 -p0
%patch2 -p0


%build
%{__python} setup.py build


%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


%install
rm -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
%find_lang %{name}
desktop-file-install --vendor fedora	\
	--dir %{buildroot}%{_datadir}/applications	\
	--add-category X-Fedora	\
	--delete-original	\
	%{buildroot}/%{_datadir}/applications/scribes.desktop
chmod a+x %{buildroot}/%{python_sitelib}/%{python_module_name}/findbar.py
chmod a+x %{buildroot}/%{python_sitelib}/%{python_module_name}/license.py


%post
export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source)
gconftool-2 --makefile-install-rule \
	%{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null ||:
scrollkeeper-update -q -o %{_datadir}/omf/%{name} ||:
update-desktop-database &> /dev/null ||:


%clean
rm -rf %{buildroot}


%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


%postun
update-desktop-database &> /dev/null ||:


%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS CHANGELOG README TODO TRANSLATORS COPYING
%{_bindir}/%{name}
%dir %{python_sitelib}/%{python_module_name}
%{python_sitelib}/%{python_module_name}/*.py
%{python_sitelib}/%{python_module_name}/*.pyc
%ghost %{python_sitelib}/%{python_module_name}/*.pyo
%{_datadir}/%{name}/
%{_datadir}/pixmaps/%{name}.svg
%{_datadir}/application-registry/%{name}.application
%{_datadir}/gnome/help/%{name}/
%{_datadir}/applications/fedora-%{name}.desktop
%{_datadir}/omf/%{name}/
%config(noreplace) %{_sysconfdir}/gconf/schemas/%{name}.schemas


%changelog
* Sat May 06 2006 Peter Gordon <peter at thecodergeek.com> - 0.2.4.3-3
- Removed yelp Requires; added scrollkeeper as Requires(post) and
  Requires(postun)
- Dropped gconfd-2 killall statements in the scriptlets (not needed in FC5+).
- Thanks to Brian Pepple (Bug #189727).

* Tue Apr 25 2006 Peter Gordon <peter at thecodergeek.com> - 0.2.4.3-2
- Added patch to remove unnecessary gconf foo in the setup.py script.
- Fix a few spacing inconsistencies in the .spec file.

* Sat Apr 22 2006 Peter Gordon <peter at thecodergeek.com> - 0.2.4.3-1
- Initial packaging.

setup-install-gconf-schemas.patch:

--- NEW FILE setup-install-gconf-schemas.patch ---
--- setup.py	2006-04-22 18:29:10.000000000 -0700
+++ patched-setup.py	2006-04-22 18:35:33.000000000 -0700
@@ -82,6 +82,7 @@
 	license="GNU GPL v2 and above",
 	packages=["Scribes"],
 	data_files=[
+		("/etc/gconf/schemas", ["data/scribes.schemas"]),
 		("share/applications", ["data/scribes.desktop"]),
 		("share/application-registry", ["data/scribes.application"]),
 		("share/pixmaps", ["data/scribes.svg"]),

setup-no-dep-check.patch:

--- NEW FILE setup-no-dep-check.patch ---
--- setup.py	2006-03-04 12:28:07.916137104 -0500
+++ patch.py	2006-03-26 18:54:39.614303696 -0500
@@ -42,94 +42,6 @@
 from distutils.core import setup
 from Scribes.info import version
 
-
-def check_dependencies():
-	u"""
-	Check for Scribes' runtime software dependencies.
-
-	The function aborts the installation process if runtime software
-	dependencies are not met by the host system.
-
-	"""
-
-	try:
-
-		import pygtk
-		pygtk.require("2.0")
-		import gtk
-
-		if gtk.pygtk_version < (2, 8, 0):
-
-			raise ImportError
-
-	except ImportError:
-
-		print "You need PyGTK version 2.8 or later to run Scribes."
-		exit(1)
-
-	try:
-
-		import pygtk
-		pygtk.require("2.0")
-		import gnome
-
-		if gnome.gnome_python_version < (2, 12, 0):
-
-			raise ImportError
-
-	except ImportError:
-
-		print "You need GNOME Python version 2.12 or later to run Scribes"
-		exit(1)
-
-	try:
-
-		import pygtk
-		pygtk.require("2.0")
-		import gtksourceview
-
-	except ImportError:
-
-		print "You need the gtksourceview module in GNOME Python Extras version"
-		print " 2.12 or later to run Scribes."
-		exit(1)
-
-	try:
-
-		import pygtk
-		pygtk.require("2.0")
-		import gtkspell
-
-	except ImportError:
-
-		print "You need the gtkspell module in GNOME Python Extras version"
-		print " 2.12 or later to run Scribes."
-		exit(1)
-
-	# Check to see if Yelp is installed on the host system
-
-	cmd = "which yelp"
-	err, out = getstatusoutput(cmd)
-
-	if err:
-
-		print "You need Yelp version 2.12 or later to run Scribes."
-		exit(1)
-
-	# Check to see if GConf is installed on the host system
-
-	cmd = "which gconftool-2"
-	err, out = getstatusoutput(cmd)
-
-	if err:
-
-		print "You need GConf version 2.12 or later to run Scribes."
-		exit(1)
-
-	return
-
-check_dependencies()
-
 # Trove classification
 
 classifiers = """

setup-no-manual-gconf.patch:

--- NEW FILE setup-no-manual-gconf.patch ---
--- setup.py	2006-04-25 20:55:16.000000000 -0700
+++ patch.py	2006-04-25 20:58:52.000000000 -0700
@@ -101,48 +101,3 @@
 		"data/scribes_editing.png", "data/scribes_status.png"])
 	],
 	scripts=["scribes"],)
-
-
-################################################################################
-#
-#							GConf Installation
-#
-################################################################################
-
-# Get gconf's default source
-cmd = "gconftool-2 --get-default-source"
-err, out = getstatusoutput(cmd)
-
-# Set up the gconf environment variable.
-putenv('GCONF_CONFIG_SOURCE', out)
-
-# Install gconf to the default source
-cmd = "gconftool-2 --makefile-install-rule data/scribes.schemas"
-err, out = getstatusoutput(cmd)
-
-if out:
-
-	print "installing GConf schema files"
-
-if err:
-
-    print 'Error: installation of gconf schema files failed: %s' % out
-
-# Kill the GConf daemon
-cmd = "killall gconfd-2"
-err, out = getstatusoutput(cmd)
-
-if err:
-
-	print "Problem shutting down gconf."
-
-# Start the GConf daemon
-cmd = "gconftool-2 --spawn"
-err, out = getstatusoutput(cmd)
-
-if err:
-
-	print "Problem restarting down gconf."
-
-print "scribes installation complete"
-


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/scribes/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	7 May 2006 17:40:41 -0000	1.1
+++ .cvsignore	7 May 2006 17:42:34 -0000	1.2
@@ -0,0 +1 @@
+scribes-0.2.4.3.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/scribes/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	7 May 2006 17:40:41 -0000	1.1
+++ sources	7 May 2006 17:42:34 -0000	1.2
@@ -0,0 +1 @@
+5031eaa0ef8817ea32d390fc4d26ceda  scribes-0.2.4.3.tar.gz




More information about the scm-commits mailing list