Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
d957323f50
!5 detele autoreconf in spec
Merge pull request !5 from liuyumeng/openEuler-22.03-LTS-Next
2022-01-10 14:22:52 +00:00
liuyumeng
61af182663 detele autoreconf in spec 2022-01-10 20:10:40 +08:00
openeuler-ci-bot
07403898eb !3 add yaml file in package
Merge pull request !3 from 桐小哥/master
2020-07-21 11:59:01 +08:00
zhanliwen
d2ca6a54ff update yaml file 2020-06-30 11:26:02 +08:00
tong_1001
e07ad52816 add yaml file in package 2020-06-12 10:23:52 +08:00
openeuler-ci-bot
87c82d2671 !2 optimization the spec
Merge pull request !2 from yanan-rock/test_ci
2020-01-09 13:56:51 +08:00
yanan-rock
134b8f8eb3 optimization the spec 2020-01-09 12:50:06 +08:00
openeuler-ci-bot
4e587bb63d !1 libgnome: init
Merge pull request !1 from openeuler-basic/init
2019-12-31 22:15:45 +08:00
songnannan
1ffbfea971 init 2019-12-31 22:14:04 +08:00
songnannan
995c1e2014 init 2019-12-31 22:12:02 +08:00
7 changed files with 226 additions and 0 deletions

View File

@ -0,0 +1,26 @@
From 64a0443e26a50745c8fdc02eddf60985a977275f Mon Sep 17 00:00:00 2001
From: Colin Walters <walters@verbum.org>
Date: Thu, 2 May 2013 17:58:00 -0400
Subject: [PATCH] Don't use G_DISABLE_DEPRECATED
Because really, no one cares about this code, we're not going to
stay on the GLib treadmill.
---
libgnome/Makefile.am | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/libgnome/Makefile.am b/libgnome/Makefile.am
index 9c8cd3e..aa01f6c 100644
--- a/libgnome/Makefile.am
+++ b/libgnome/Makefile.am
@@ -17,7 +17,6 @@ INCLUDES = \
-I$(srcdir)/.. \
$(WARN_CFLAGS) \
$(LIBGNOME_CFLAGS) \
- -DG_DISABLE_DEPRECATED \
-DLIBGNOME_PREFIX=\""$(prefix)"\" \
-DLIBGNOME_LIBDIR=\""$(libdir)"\" \
-DLIBGNOME_DATADIR=\""$(datadir)"\" \
--
1.7.1

View File

@ -0,0 +1,18 @@
<?xml version="1.0"?>
<gconfschemafile>
<schemalist>
<schema>
<key>/schemas/desktop/gnome/peripherals/monitor/resolution_size</key>
<applyto>/desktop/gnome/peripherals/monitor/resolution_size</applyto>
<owner>gnome</owner>
<type>string</type>
<locale name="C">
<short>The resolution of the monitor.</short>
<long>The resolution of the monitor. Stored in the form
"WIDTHxHEIGHT". If an invalid value is stored, the default
resultion is used.</long>
</locale>
</schema>
</schemalist>
</gconfschemafile>

21
im-setting.patch Normal file
View File

@ -0,0 +1,21 @@
diff -pruN libgnome-2.20.1.orig/schemas/desktop_gnome_interface.schemas.in.in libgnome-2.20.1/schemas/desktop_gnome_interface.schemas.in.in
--- libgnome-2.20.1.orig/schemas/desktop_gnome_interface.schemas.in.in 2007-12-07 22:37:02.000000000 +0900
+++ libgnome-2.20.1/schemas/desktop_gnome_interface.schemas.in.in 2007-12-07 22:39:53.000000000 +0900
@@ -192,6 +192,17 @@
</locale>
</schema>
<schema>
+ <key>/schemas/desktop/gnome/interface/gtk-im-module</key>
+ <applyto>/desktop/gnome/interface/gtk-im-module</applyto>
+ <owner>gnome</owner>
+ <type>string</type>
+ <default></default>
+ <locale name="C">
+ <short>GTK IM Module</short>
+ <long>Name of the input method module used by GTK+.</long>
+ </locale>
+ </schema>
+ <schema>
<applyto>/desktop/gnome/interface/document_font_name</applyto>
<key>/schemas/desktop/gnome/interface/document_font_name</key>
<owner>gnome</owner>

View File

@ -0,0 +1,15 @@
--- libgnome-2.11.1/libgnome/gnome-score.c.scoreloc 2005-03-28 10:45:07.000000000 -0500
+++ libgnome-2.11.1/libgnome/gnome-score.c 2005-07-11 11:56:34.233156000 -0400
@@ -91,10 +91,12 @@
{
if (level)
return g_strconcat (LIBGNOME_LOCALSTATEDIR,
+ G_DIR_SEPARATOR_S "lib"
G_DIR_SEPARATOR_S "games" G_DIR_SEPARATOR_S,
progname, ".", level, ".scores", NULL);
else
return g_strconcat (LIBGNOME_LOCALSTATEDIR,
+ G_DIR_SEPARATOR_S "lib"
G_DIR_SEPARATOR_S "games" G_DIR_SEPARATOR_S,
progname, ".scores", NULL);
}

BIN
libgnome-2.32.1.tar.bz2 Normal file

Binary file not shown.

142
libgnome.spec Normal file
View File

@ -0,0 +1,142 @@
%global _default_patch_fuzz 2
%global schemalist \\\
desktop_gnome_accessibility_keyboard \\\
desktop_gnome_accessibility_startup \\\
desktop_gnome_applications_at_mobility \\\
desktop_gnome_applications_at_visual \\\
desktop_gnome_applications_browser \\\
desktop_gnome_applications_office \\\
desktop_gnome_applications_terminal \\\
desktop_gnome_applications_window_manager \\\
desktop_gnome_background \\\
desktop_gnome_file_views \\\
desktop_gnome_interface \\\
desktop_gnome_lockdown \\\
desktop_gnome_peripherals_keyboard \\\
desktop_gnome_peripherals_monitor \\\
desktop_gnome_peripherals_mouse \\\
desktop_gnome_sound \\\
desktop_gnome_thumbnail_cache \\\
desktop_gnome_thumbnailers \\\
desktop_gnome_typing_break
Name: libgnome
Version: 2.32.1
Release: 21
Summary: Gnome 2.x desktop base library
URL: http://www.gnome.org
Source0: http://download.gnome.org/sources/libgnome/2.32/%{name}-%{version}.tar.bz2
Source1: desktop_gnome_peripherals_monitor.schemas
License: LGPLv2+
Requires: utempter GConf2
BuildRequires: zlib-devel glib2-devel libbonobo-devel GConf2-devel gnome-vfs2-devel
BuildRequires: libxml2-devel ORBit2-devel libxslt-devel libcanberra-devel intltool
BuildRequires: gnome-common autoconf automake libtool gettext popt-devel
Patch1: libgnome-2.11.1-scoreloc.patch
Patch2: im-setting.patch
Patch3: 0001-Don-t-use-G_DISABLE_DEPRECATED.patch
%description
This package contains the basic libraries for the GNOME 2.x Desktop
platform and it includes non-GUI-related libraries that are needed to run GNOME.
%package devel
Summary: Provides files and libraries for development
Requires: %{name} = %{version}-%{release}
%description devel
This package contains all necessary include files and libraries when
develop applications.
%package help
Summary: Provides help for libgnome
%description help
This package contains all help for libgnome.
%prep
%autosetup -p1
%build
%configure --disable-gtk-doc --disable-esd
%make_build
pushd po
grep -v ".*[.]desktop[.]in[.]in$\|.*[.]server[.]in[.]in$" POTFILES.in > POTFILES.keep
mv POTFILES.keep POTFILES.in
intltool-update --pot
sed -ie 's|POT-Creation-Date.*|POT-Creation-Date: 2008-10-01 00:00-0400\\n"|g' %{name}-2.0.pot
for p in *.po; do
msgmerge $p %{name}-2.0.pot > $p.out
msgfmt -o `basename $p .po`.gmo $p.out
done
popd
%install
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
%make_install
cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas/
%delete_la_and_a
for serverfile in $RPM_BUILD_ROOT%{_libdir}/bonobo/servers/*.server; do
sed -i -e 's|location *= *"/usr/lib\(64\)*/|location="/usr/$LIB/|' $serverfile
done
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome-background-properties $RPM_BUILD_ROOT%{_datadir}/pixmaps
mv COPYING.LIB COPYING
%find_lang %{name}-2.0
%post
/sbin/ldconfig
%gconf_schema_upgrade %{schemalist}
%pre
%gconf_schema_prepare %{schemalist}
%preun
%gconf_schema_remove %{schemalist}
%postun -p /sbin/ldconfig
%files -f %{name}-2.0.lang
%doc COPYING
%{_bindir}/*
%{_libdir}/lib*.so.*
%{_libdir}/bonobo/monikers/*
%{_libdir}/bonobo/servers/*
%{_sysconfdir}/gconf/schemas/*.schemas
%{_sysconfdir}/sound
%files devel
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*
%{_includedir}/*
%files help
%doc AUTHORS NEWS README
%{_mandir}/man7/*
%{_datadir}/gtk-doc
%changelog
* Mon Jan 10 2022 liuyumeng <liuyumeng5@huawei.com> - 2.32.1-21
- delete autoreconf in spec
* Thu Jan 9 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.32.1-20
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:optimization the spec
* Tue Dec 31 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.32.1-19
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:optimization the spec
* Sat Sep 14 2019 liyongqiang<liyongqiang10@huawei.com> - 2.32.1-18
- Package init

4
libgnome.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: gitlab.gnome
src_repo: libgnome
tag_prefix: LIBGNOME_
seperator: "_"