diff --git a/exo-0.3.4-fix_broken_regexp.patch b/exo-0.3.4-fix_broken_regexp.patch new file mode 100644 index 0000000..d4740cc --- /dev/null +++ b/exo-0.3.4-fix_broken_regexp.patch @@ -0,0 +1,25 @@ +Index: exo-0.3.4/exo/exo-url.c +=================================================================== +--- exo-0.3.4.orig/exo/exo-url.c 2008-10-02 09:51:44.000000000 -0300 ++++ exo-0.3.4/exo/exo-url.c 2008-10-02 09:52:05.000000000 -0300 +@@ -56,14 +56,14 @@ + #define PASSCHARS "-A-Za-z0-9,?;.:/!%$^*&~\"#'" + #define HOSTCHARS "-A-Za-z0-9" + #define USER "[" USERCHARS "]+(:["PASSCHARS "]+)?" +-#define MATCH_BROWSER1 "((file|https?|ftps?)://(" USER "@)?)[" HOSTCHARS ".]+(:[0-9]+)?" \ +- "(/[-A-Za-z0-9_$.+!*(),;:@&=?/~#%]*[^]'.}>) \t\r\n,\\\"])?" +-#define MATCH_BROWSER2 "(www|ftp)[" HOSTCHARS "]*\\.[" HOSTCHARS ".]+(:[0-9]+)?" \ +- "(/[-A-Za-z0-9_$.+!*(),;:@&=?/~#%]*[^]'.}>) \t\r\n,\\\"])?" ++#define MATCH_BROWSER1 "^((file|https?|ftps?)://(" USER "@)?)[" HOSTCHARS ".]+(:[0-9]+)?" \ ++ "(/[-A-Za-z0-9_$.+!*(),;:@&=?/~#%]*[^]'.}>) \t\r\n,\\\"])?$" ++#define MATCH_BROWSER2 "^(www|ftp)[" HOSTCHARS "]*\\.[" HOSTCHARS ".]+(:[0-9]+)?" \ ++ "(/[-A-Za-z0-9_$.+!*(),;:@&=?/~#%]*[^]'.}>) \t\r\n,\\\"])?$" + #if !defined(__GLIBC__) +-#define MATCH_MAILER "[a-z0-9][a-z0-9_.-]*@[a-z0-9][a-z0-9-]*(\\.[a-z0-9][a-z0-9-]*)+" ++#define MATCH_MAILER "^[a-z0-9][a-z0-9_.-]*@[a-z0-9][a-z0-9-]*(\\.[a-z0-9][a-z0-9-]*)+$" + #else +-#define MATCH_MAILER "\\<[a-z0-9][a-z0-9_.-]*@[a-z0-9][a-z0-9-]*(\\.[a-z0-9][a-z0-9-]*)+\\>" ++#define MATCH_MAILER "^\\<[a-z0-9][a-z0-9_.-]*@[a-z0-9][a-z0-9-]*(\\.[a-z0-9][a-z0-9-]*)+\\>$" + #endif + + diff --git a/exo-0.3.4-gcc_hardening_fix.patch b/exo-0.3.4-gcc_hardening_fix.patch new file mode 100644 index 0000000..d92178a --- /dev/null +++ b/exo-0.3.4-gcc_hardening_fix.patch @@ -0,0 +1,13 @@ +Index: exo-0.3.4/exo/exo-utils.h +=================================================================== +--- exo-0.3.4.orig/exo/exo-utils.h 2008-06-24 06:22:05.000000000 +0200 ++++ exo-0.3.4/exo/exo-utils.h 2008-06-24 06:22:10.000000000 +0200 +@@ -35,8 +35,6 @@ + gpointer exo_noop_null (void) G_GNUC_PURE; + gboolean exo_noop_true (void) G_GNUC_PURE; + gboolean exo_noop_false (void) G_GNUC_PURE; +-G_INLINE_FUNC void exo_atomic_inc (gint *value); +-G_INLINE_FUNC gboolean exo_atomic_dec (gint *value); + + /* inline function implementations */ + #if (defined(G_CAN_INLINE) && defined(__GNUC__) && defined(__i386__) && defined(__OPTIMIZE__)) || defined(__EXO_UTILS_C__) diff --git a/exo.spec b/exo.spec index 1c086e8..f556cea 100644 --- a/exo.spec +++ b/exo.spec @@ -3,14 +3,16 @@ Summary: Application library for the Xfce desktop environment Name: exo Version: 0.3.4 -Release: 2%{?dist} +Release: 3%{?dist} # libexo-hal exo-helper mount-notify and exo-mount are all GPLv2+ # everything else is LGPLv2+ License: LGPLv2+ and GPLv2+ URL: http://xfce.org/ -Source0: http://www.xfce.org/archive/xfce-4.4.2/src/exo-0.3.4.tar.bz2 +Source0: http://www.xfce.org/archive/xfce-4.4.2/src/exo-%{version}.tar.bz2 Patch0: exo-0.3.0-x86_64-build.patch -Group: Development/Libraries +Patch1: exo-0.3.4-fix_broken_regexp.patch +Patch2: exo-0.3.4-gcc_hardening_fix.patch +Group: System Environment/Libraries Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: dbus-glib >= 0.22 BuildRequires: dbus-devel >= 0.22 @@ -48,22 +50,20 @@ Python libraries and header files for the exo library. %prep %setup -q -%patch0 -p1 -b x86_64-build +%patch0 -p1 -b .x86_64-build +%patch1 -p1 -b .broken-regex +%patch2 -p1 -b .gcc-hardening %build -%configure --enable-gtk-doc +%configure --enable-gtk-doc --disable-static make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la -rm -f $RPM_BUILD_ROOT/%{_libdir}/*.a rm -f $RPM_BUILD_ROOT/%{_libdir}/xfce4/mcs-plugins/*.la -rm -f $RPM_BUILD_ROOT/%{_libdir}/xfce4/mcs-plugins/*.a rm -f $RPM_BUILD_ROOT/%{python_sitearch}/*.la -rm -f $RPM_BUILD_ROOT/%{python_sitearch}/*.a -rm -f $RPM_BUILD_ROOT/%{python_sitearch}/*/*.a %find_lang libexo-0.3 @@ -71,13 +71,17 @@ rm -f $RPM_BUILD_ROOT/%{python_sitearch}/*/*.a rm -rf $RPM_BUILD_ROOT %post -touch --no-create %{_datadir}/icons/hicolor || : -%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{_datadir}/icons/hicolor +if [ -x %{_bindir}/gtk-update-icon-cache ] ; then + %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +fi /sbin/ldconfig %postun -touch --no-create %{_datadir}/icons/hicolor || : -%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +touch --no-create %{_datadir}/icons/hicolor +if [ -x %{_bindir}/gtk-update-icon-cache ] ; then + %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +fi /sbin/ldconfig %files -f libexo-0.3.lang @@ -123,6 +127,12 @@ touch --no-create %{_datadir}/icons/hicolor || : %{python_sitearch}/pyexo.* %changelog +* Mon Oct 27 2008 Christoph Wickert - 0.3.4-3 +- Add two Debian patches to fix broken regex and gcc_hardening +- Fix rpm group +- Update gtk-update-icon-cache scriptlets +- Configure with --disable-static + * Sun Feb 10 2008 Kevin Fenzi - 0.3.4-2 - Rebuild for gcc43