Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:maw
gconf2-rpm-macros
macros.gconf2
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File macros.gconf2 of Package gconf2-rpm-macros
# # RPM macros for gconf applications. # # (c) 2006-2007 SUSE LINUX # Author: Stanislav Brabec <sbrabec@suse.cz> # # Usage: # # Preamble: # %gconf_schemas_prereq # # %install # ... # %find_gconf_schemas # or # %def_gconf_schemas subpackage1 # %add_gconf_schemas schemas_name1 # %add_gconf_schemas schemas_name2 # %def_gconf_schemas subpackage2 # %add_gconf_schemas schemas_name3 # %add_gconf_schemas schemas_name4 # %end_gconf_schemas # schemas names are without path and suffix # # %pre -f %{name}.schemas_pre # # %preun -f %{name}.schemas_preun # # %posttrans -f %{name}.schemas_posttrans # # %files -f %{name}.schemas_list # or # %files -f subpackage.schemas_list # # # In case of more -f needed for one %files: # # %install # ... # %find_gconf_schemas # %find_lang %{name} # cat %{name}.schemas_list %{name}.lang >%{name}.lst # # %files -f %{name}.lst # %gconf_schemas_prereq PreReq: /opt/gnome/bin/gconftool-2 coreutils %end_gconf_schemas() \ echo 'rmdir etc/opt/gnome/gconf/schemas/outdated 2>/dev/null || true' >>$GCONF_SCHEMAS_NAME.schemas_posttrans\ echo 'rmdir etc/opt/gnome/gconf/schemas/outdated 2>/dev/null || true' >>$GCONF_SCHEMAS_NAME.schemas_preun\ %{nil} %def_gconf_schemas() \ if test -n "$GCONF_SCHEMAS_NAME" ; then\ %end_gconf_schemas\ fi\ GCONF_SCHEMAS_NAME=%1\ echo '%defattr (644, root, root, 755)' >%1.schemas_list\ echo 'mkdir -p etc/opt/gnome/gconf/schemas/outdated' >%1.schemas_pre\ echo 'export GCONF_CONFIG_SOURCE=`opt/gnome/bin/gconftool-2 --get-default-source`' >%1.schemas_posttrans\ echo 'if test -x opt/gnome/bin/gconftool-2 ; then\ export GCONF_CONFIG_SOURCE=`opt/gnome/bin/gconftool-2 --get-default-source`\ fi' >%1.schemas_preun\ %{nil} %_add_gconf_schemas() \ echo $SCHEMAS >>$GCONF_SCHEMAS_NAME.schemas_list\ echo "if test -f ${SCHEMAS#/} ; then\ ln -f ${SCHEMAS#/} etc/opt/gnome/gconf/schemas/outdated/\ fi" >>$GCONF_SCHEMAS_NAME.schemas_pre\ echo "rm -f etc/opt/gnome/gconf/schemas/outdated/${SCHEMAS#/etc/opt/gnome/gconf/schemas/}\ opt/gnome/bin/gconftool-2 --makefile-install-rule ${SCHEMAS#/} >/dev/null" >>$GCONF_SCHEMAS_NAME.schemas_posttrans\ echo "if test -x opt/gnome/bin/gconftool-2 ; then\ if test -f etc/opt/gnome/gconf/schemas/outdated/${SCHEMAS#/etc/opt/gnome/gconf/schemas/} ; then\ opt/gnome/bin/gconftool-2 --makefile-uninstall-rule etc/opt/gnome/gconf/schemas/outdated/${SCHEMAS#/etc/opt/gnome/gconf/schemas/} >/dev/null\ elif test -f ${SCHEMAS#/} ; then\ opt/gnome/bin/gconftool-2 --makefile-uninstall-rule ${SCHEMAS#/} >/dev/null\ fi\ fi\ rm -f etc/opt/gnome/gconf/schemas/outdated/${SCHEMAS#/etc/opt/gnome/gconf/schemas/}" >>$GCONF_SCHEMAS_NAME.schemas_preun\ %{nil} %add_gconf_schemas() \ SCHEMAS=/etc/opt/gnome/gconf/schemas/%1.schemas\ %_add_gconf_schemas\ %{nil} %find_gconf_schemas() \ test -d $RPM_BUILD_ROOT/etc/opt/gnome/gconf/schemas\ %def_gconf_schemas %{name}\ for SCHEMAS in $RPM_BUILD_ROOT/etc/opt/gnome/gconf/schemas/*.schemas ; do\ SCHEMAS=${SCHEMAS#$RPM_BUILD_ROOT}\ %_add_gconf_schemas\ done\ %end_gconf_schemas\ %{nil}
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor