Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:steffens:lvermgeo:client
libreoffice-vermkv-extensions
libreoffice-vermkv-extensions.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libreoffice-vermkv-extensions.spec of Package libreoffice-vermkv-extensions
# norootforbuild # default: store oo-ldap.xcd in extra file %define LDAP_XCD oo-ldap.xcd-vermkv %if 0%{?suse_version} >= 1310 %define libreoffice_major_version 4.1 # ldap xcd works again, so set it directly %define LDAP_XCD oo-ldap.xcd %define extension 1 %else %if 0%{?suse_version} >= 1210 #define libreoffice_major_version 3.4 %define libreoffice_major_version 3.5 %define extension 1 %else %define libreoffice_major_version 3.3 %endif %endif Name: libreoffice-vermkv-extensions # don't use flexible version, because dassbuild_prepare will fail Version: 4.1.7897 Release: 0 %define ooo_home libreoffice BuildRequires: libreoffice-bootstrap libreoffice-libs-core libreoffice-l10n-extras License: LGPLv3 Group: Productivity/Office/Suite AutoReqProv: on Requires: libreoffice Recommends: postgresql-jdbc Summary: LibreOffice Extensions/Configuration for VermKV Url: https://svn.dass-it.de/svn/lvermgeo/technical/client/konfiguration/OpenOffice/install Source: libreoffice-vermkv-extensions_4.1.7897.orig.tar.gz #BuildArch: noarch %description This package provides various VermKV specific configuration settings for LibreOffice office suite. %prep %setup -c %build %install %if 0%{?extension} != 1 %define DEST_DIR_REGISTRY %{_libdir}/%{ooo_home}/basis%{libreoffice_major_version}/share/registry/ %define DEST_DIR_SETTINGS %{DEST_DIR_REGISTRY}/data/org/openoffice/Office/ %define DEST_DIR_PRESETS %{DEST_DIR_SHARE}/basis%{libreoffice_major_version}/presets/ %define DEST_DIR_PRESETS_CONFIG %{DEST_DIR_PRESETS}/config/ %define DEST_DIR_SHARE %_datadir/%{ooo_home}/ %define DEST_FILE_LIST %{DEST_DIR_SHARE}/files-%{name}.txt mkdir -p $RPM_BUILD_ROOT/%{DEST_DIR_SETTINGS} install -m 644 install/common/*.xcu $RPM_BUILD_ROOT/%{DEST_DIR_SETTINGS} mkdir -p $RPM_BUILD_ROOT/%{DEST_DIR_SHARE} cat > $RPM_BUILD_ROOT/%{DEST_FILE_LIST} <<EOF %{DEST_DIR_PRESETS_CONFIG}/vermkv-cd-farben.soc %{DEST_DIR_PRESETS_CONFIG}/javasettings_Linux_x86.xml EOF %else %define DEST_DIR_REGISTRY %{_libdir}/%{ooo_home}/share/registry/ %define DEST_DIR_PRESETS_CONFIG %{_libdir}/%{ooo_home}/presets/config/ %define DEST_DIR_EXTENSION %{_libdir}/%{ooo_home}/share/extensions/vermkv/ # 3.5, 4.1 mkdir -p $RPM_BUILD_ROOT/%{DEST_DIR_EXTENSION}/config cp -a install/common/META-INF $RPM_BUILD_ROOT/%{DEST_DIR_EXTENSION}/. cp -a install/common/description.xml $RPM_BUILD_ROOT/%{DEST_DIR_EXTENSION}/ cp -a install/common/description*.txt $RPM_BUILD_ROOT/%{DEST_DIR_EXTENSION}/ install -m 644 install/common/*.xcu $RPM_BUILD_ROOT/%{DEST_DIR_EXTENSION}/config %endif mkdir -p $RPM_BUILD_ROOT/%{DEST_DIR_REGISTRY} install -m 644 install/%{libreoffice_major_version}/oo-ldap.xcd $RPM_BUILD_ROOT/%{DEST_DIR_REGISTRY}/%{LDAP_XCD} # # presets (are only copied to user directory if user settings are empty) # mkdir -p $RPM_BUILD_ROOT/%{DEST_DIR_PRESETS_CONFIG} # color-table. however, it is hard for the user to switch to this install -m 644 install/common/vermkv-cd-farben.soc $RPM_BUILD_ROOT/%{DEST_DIR_PRESETS_CONFIG} # java settings. there are specific for the Java and postgres jdbc driver versions install -m 644 install/%{libreoffice_major_version}/javasettings_Linux_*.xml $RPM_BUILD_ROOT/%{DEST_DIR_PRESETS_CONFIG} %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %if 0%{?extension} != 1 %posttrans %_datadir/%ooo_home/link-to-ooo-home %{DEST_FILE_LIST} || true %preun test "$1" = "0" && cp %{DEST_FILE_LIST} %{DEST_FILE_LIST}.postun || true %postun test "$1" = "0" && %_datadir/%ooo_home/link-to-ooo-home --unlink %{DEST_FILE_LIST}.postun || true rm -f %{DEST_FILE_LIST}.postun 2>/dev/null %else %posttrans /usr/sbin/unopkg-sync-bundled || true %postun /usr/sbin/unopkg-sync-bundled || true %endif %files %defattr(-,root,root) %{DEST_DIR_REGISTRY}/%{LDAP_XCD} %dir %{DEST_DIR_PRESETS_CONFIG} %{DEST_DIR_PRESETS_CONFIG}/vermkv-cd-farben.soc %{DEST_DIR_PRESETS_CONFIG}/javasettings_Linux_*.xml %if 0%{?extension} != 1 %{DEST_DIR_REGISTRY}/data/ %{DEST_FILE_LIST} %dir %{DEST_DIR_PRESETS} %else %{DEST_DIR_EXTENSION} %endif
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