packages: libdesktop-agnostic/gladeui.patch (NEW), libdesktop-agnostic/libd...

glen glen at pld-linux.org
Sun Jan 29 01:39:25 CET 2012


Author: glen                         Date: Sun Jan 29 00:39:24 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new, adopted from fc package

---- Files affected:
packages/libdesktop-agnostic:
   gladeui.patch (NONE -> 1.1)  (NEW), libdesktop-agnostic.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/libdesktop-agnostic/gladeui.patch
diff -u /dev/null packages/libdesktop-agnostic/gladeui.patch:1.1
--- /dev/null	Sun Jan 29 01:39:25 2012
+++ packages/libdesktop-agnostic/gladeui.patch	Sun Jan 29 01:39:19 2012
@@ -0,0 +1,14 @@
+--- a/data/wscript	2011-03-12 15:14:23.000000000 +0100
++++ b/data/wscript	2011-05-28 18:25:23.897854907 +0200
+@@ -16,9 +16,9 @@
+ def configure(conf):
+     conf.env['GLADE_SUPPORT'] = Options.options.glade
+     if conf.env['GLADE_SUPPORT']:
+-        conf.check_cfg(package='gladeui-1.0', uselib_store='GLADEUI',
++        conf.check_cfg(package='gladeui-2.0', uselib_store='GLADEUI',
+                        mandatory=True, args='--cflags --libs')
+-        pkgconfig = 'pkg-config --variable catalogdir gladeui-1.0'
++        pkgconfig = 'pkg-config --variable catalogdir gladeui-2.0'
+         conf.env['GLADEUI_CATALOGDIR'] = \
+                 Utils.cmd_output(pkgconfig, silent=1).strip()
+ 

================================================================
Index: packages/libdesktop-agnostic/libdesktop-agnostic.spec
diff -u /dev/null packages/libdesktop-agnostic/libdesktop-agnostic.spec:1.1
--- /dev/null	Sun Jan 29 01:39:25 2012
+++ packages/libdesktop-agnostic/libdesktop-agnostic.spec	Sun Jan 29 01:39:19 2012
@@ -0,0 +1,153 @@
+# $Revision$, $Date$
+Summary:	Provides an extensible configuration API
+Name:		libdesktop-agnostic
+Version:	0.3.92
+Release:	1
+License:	GPL v2+ and LGPL v2+
+Group:		Libraries
+URL:		https://launchpad.net/libdesktop-agnostic
+Source0:	http://launchpad.net/libdesktop-agnostic/0.4/%{version}/+download/%{name}-%{version}.tar.gz
+Patch0:		gladeui.patch
+BuildRequires:	GConf2-devel
+BuildRequires:	gettext
+BuildRequires:	rpmbuild(macros) >= 1.219
+BuildRequires:	glade-devel >= 3
+BuildRequires:	gnome-desktop-devel
+BuildRequires:	gobject-introspection-devel
+BuildRequires:	gtk+-devel
+BuildRequires:	intltool
+BuildRequires:	python-devel
+BuildRequires:	python-pygtk-devel
+BuildRequires:	vala
+#BuildRequires:  waf
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This library provides an extensible configuration API. A unified
+virtual file system API, and a desktop item editor.
+
+%package progs
+Summary:	Helper applications for %{name}
+Group:		Applications/System
+Requires:	%{name} = %{version}-%{release}
+
+%description progs
+This package contains helper applications for libdesktop-agnostic,
+such as a schema converter.
+
+%package -n python-desktop-agnostic
+Summary:	Python bindings for %{name}
+Group:		Development/Languages
+Requires:	%{name} = %{version}-%{release}
+
+%description -n python-desktop-agnostic
+This package contains the Python bindings for the core library.
+
+
+%package devel
+Summary:	Development files for %{name}
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+%prep
+%setup -q
+#Use gladeui-2.0, not glade-1.0
+%patch0 -p1
+
+%build
+export CFLAGS="%{rpmfcflags}"
+PYTHONDIR=%{py_sitedir} ./waf configure \
+	  --prefix=%{_prefix} \
+	  --libdir=%{_libdir} \
+	  --sysconfdir=%{_sysconfdir} \
+	  --enable-debug \
+	  --config-backends=gconf \
+	  --vfs-backends=gio \
+	  --desktop-entry-backends=glib \
+	  --with-glade
+#	  --disable-gi
+
+./waf -v build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+DESTDIR=$RPM_BUILD_ROOT ./waf install
+
+# install man files
+#install -d $RPM_BUILD_ROOT%{_mandir}/man1/
+#install -D -p -m 0644 debian/lda*1 $RPM_BUILD_ROOT%{_mandir}/man1
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+%py_postclean
+
+# fix permissions so debuginfo is stripped from .so files
+find $RPM_BUILD_ROOT%{_libdir} -name *.so -exec chmod 755 {} \;
+
+%find_lang %{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%dir /etc/xdg/libdesktop-agnostic
+%config(noreplace) /etc/xdg/libdesktop-agnostic/desktop-agnostic.ini
+%attr(755,root,root) %{_libdir}/libdesktop-agnostic.so.*.*.*
+%ghost %{_libdir}/libdesktop-agnostic.so.0
+%attr(755,root,root) %{_libdir}/libdesktop-agnostic-cfg.so.*.*.*
+%ghost %{_libdir}/libdesktop-agnostic-cfg.so.0
+%attr(755,root,root) %{_libdir}/libdesktop-agnostic-fdo.so.*.*.*
+%ghost %{_libdir}/libdesktop-agnostic-fdo.so.0
+%attr(755,root,root) %{_libdir}/libdesktop-agnostic-ui.so.*.*.*
+%ghost %{_libdir}/libdesktop-agnostic-ui.so.0
+%attr(755,root,root) %{_libdir}/libdesktop-agnostic-vfs.so.*.*.*
+%ghost %{_libdir}/libdesktop-agnostic-vfs.so.0
+
+%dir %{_libdir}/desktop-agnostic
+%dir %{_libdir}/desktop-agnostic/modules
+%attr(755,root,root) %{_libdir}/desktop-agnostic/modules/libda-cfg-gconf.so
+%attr(755,root,root) %{_libdir}/desktop-agnostic/modules/libda-cfg-type-color.so
+%attr(755,root,root) %{_libdir}/desktop-agnostic/modules/libda-fdo-glib.so
+%attr(755,root,root) %{_libdir}/desktop-agnostic/modules/libda-module-guesser.so
+%attr(755,root,root) %{_libdir}/desktop-agnostic/modules/libda-vfs-gio.so
+
+%files progs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/lda-desktop-entry-editor
+%attr(755,root,root) %{_bindir}/lda-schema-to-gconf
+#%{_mandir}/man1/lda*1.gz
+
+%files -n python-desktop-agnostic
+%defattr(644,root,root,755)
+%dir %{py_sitedir}/desktopagnostic
+%{py_sitedir}/desktopagnostic/*.py[co]
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/libdesktop-agnostic-1.0
+%{_datadir}/pygtk/2.0/defs/desktopagnostic*defs
+%{_datadir}/vala/vapi/desktop-agnostic*
+%{_datadir}/glade/catalogs/desktop-agnostic.xml
+%{_pkgconfigdir}/desktop-agnostic.pc
+%{_libdir}/libdesktop-agnostic-ui.so
+%{_libdir}/libdesktop-agnostic-cfg.so
+%{_libdir}/libdesktop-agnostic-fdo.so
+%{_libdir}/libdesktop-agnostic-vfs.so
+%{_libdir}/libdesktop-agnostic.so
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2012/01/29 00:39:19  glen
+- new, adopted from fc package
================================================================


More information about the pld-cvs-commit mailing list