rpms/autobuild-applet/devel autobuild-applet-schema-datatype.patch, NONE, 1.1 autobuild-applet.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Daniel P. Berrange (berrange) fedora-extras-commits at redhat.com
Tue Sep 5 00:14:31 UTC 2006


Author: berrange

Update of /cvs/extras/rpms/autobuild-applet/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv5851/devel

Modified Files:
	.cvsignore sources 
Added Files:
	autobuild-applet-schema-datatype.patch autobuild-applet.spec 
Log Message:
auto-import autobuild-applet-1.0.3-2 on branch devel from autobuild-applet-1.0.3-2.src.rpm

autobuild-applet-schema-datatype.patch:

--- NEW FILE autobuild-applet-schema-datatype.patch ---
diff -ruN autobuild-applet-1.0.3-orig/autobuild-applet.in autobuild-applet-1.0.3-new/autobuild-applet.in
--- autobuild-applet-1.0.3-orig/autobuild-applet.in	2006-09-01 19:50:37.000000000 -0400
+++ autobuild-applet-1.0.3-new/autobuild-applet.in	2006-09-02 17:56:38.000000000 -0400
@@ -198,7 +198,7 @@
             'port' : port
             }
 
-        if host == None:
+        if host == None or host == "":
             #print "No host, disabling proxy"
             opener = urllib2.build_opener(urllib2.HTTPHandler)
             urllib2.install_opener(opener)
@@ -207,7 +207,7 @@
                 #print "Setting default port 3128"
                 port = 3128
 
-            if user == None or password == None:
+            if user == None or password == None or user == "" or password == "":
                 #print "No proxy auth"
                 proxy_support = urllib2.ProxyHandler({
                     "http" :
diff -ruN autobuild-applet-1.0.3-orig/autobuild-applet.schemas.in autobuild-applet-1.0.3-new/autobuild-applet.schemas.in
--- autobuild-applet-1.0.3-orig/autobuild-applet.schemas.in	2006-09-01 19:39:05.000000000 -0400
+++ autobuild-applet-1.0.3-new/autobuild-applet.schemas.in	2006-09-02 17:40:05.000000000 -0400
@@ -70,8 +70,8 @@
       <key>/schemas/apps/::PACKAGE::/proxyPort</key>
       <applyto>/apps/::PACKAGE::/proxyPort</applyto>
       <owner>::PACKAGE::</owner>
-      <type>string</type>
-      <default></default>
+      <type>int</type>
+      <default>3128</default>
 
       <locale name="C">
         <short>HTTP proxy port</short>


--- NEW FILE autobuild-applet.spec ---
# -*- rpm-spec -*-

# This macro is used for the continuous automated builds. It just
# allows an extra fragment based on the timestamp to be appended
# to the release. This distinguishes automated builds, from formal
# Fedora RPM builds
%define _extra_release %{?dist:%{dist}}%{!?dist:%{?extra_release:%{extra_release}}}

Name: autobuild-applet
Version: 1.0.3
Release: 2%{_extra_release}
Summary: Panel applet for indication of Test-AutoBuild status
License: GPL
Group: Development/Tools
Source0: http://download.gna.org/testautobuild/sources/%{name}/%{name}-%{version}.tar.gz
Patch1: %{name}-schema-datatype.patch
URL: http://www.autobuild.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: python-devel >= 2.2.1
Requires: pygtk2 >= 1.99.12-6
BuildRequires:  pygtk2-devel >= 1.99.12-6
Requires: gnome-python2 >= 1.99.11-7
Requires: gnome-python2-gconf >= 1.99.11-7
BuildRequires: libgnomeui-devel >= 2.0.3-1
Requires(pre): GConf2
Requires(post): GConf2
Requires(preun): GConf2
BuildRequires: desktop-file-utils

%description
Panel applet for indication of Test-AutoBuild cycle status

%prep
%setup -q
%patch1 -p1

%build
CFLAGS="$RPM_OPT_FLAGS" %configure
%__make

%install
rm -fr $RPM_BUILD_ROOT
%makeinstall
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.a
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
rm -f $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
desktop-file-install --vendor fedora \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  --add-category X-Fedora \
  %{name}.desktop

%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 || :

update-desktop-database %{_datadir}/applications

%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 %{_datadir}/applications

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README TODO AUTHORS COPYING
%{_sysconfdir}/gconf/schemas/%{name}.schemas
%{_bindir}/%{name}
%{_libdir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/fedora-%{name}.desktop

%changelog
* Fri Sep 2 2006 Daniel Berrange <dan at berrange.com> 1.0.3-2
- Added preun, and pre scripts needed for GConf schemas
- Added extra requires on GConf needed by post, pre, preun scripts
- Remove redundant BuildRequires on gtk-devel
- Remove redundant Requires on python, libgnome, libgnomeui
- Remove upstream .desktop file & manually re-install it with desktop-file-install
- Change BuildRoot to match Fedora standards
- Apply patch to fix data type in GConf schema

* Fri Sep 1 2006 Daniel Berrange <dan at berrange.com> 1.0.3-1
- Fixed refresh rate bug
- Made more robust to URL fetch errors
- Tweak UI to bring close to standard HIG

* Tue May 9 2006 Matthew Booth <mbooth at redhat.com> 1.0.2-1
- Fixed build system to work on x86_64

* Sun Feb 13 2005 Daniel Berrange <dan at berrange.com> 0.0.3-1
- Changed icons for applet

* Sun Nov 21 2004 Daniel Berrange <dan at berrange.com> 0.0.2-1
- Added session management support

* Sat Nov 20 2004 Daniel Berrange <dan at berrange.com> 0.0.1-1
- Initial version based on RHN applet spec


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/autobuild-applet/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	5 Sep 2006 00:13:57 -0000	1.1
+++ .cvsignore	5 Sep 2006 00:14:31 -0000	1.2
@@ -0,0 +1 @@
+autobuild-applet-1.0.3.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/autobuild-applet/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	5 Sep 2006 00:13:57 -0000	1.1
+++ sources	5 Sep 2006 00:14:31 -0000	1.2
@@ -0,0 +1 @@
+f199953fc6db531716ede26b2a096480  autobuild-applet-1.0.3.tar.gz




More information about the fedora-extras-commits mailing list