2015-05-20 08:36:04 +00:00
|
|
|
#
|
|
|
|
# spec file for package libreoffice-share-linker
|
|
|
|
#
|
2023-03-22 16:13:01 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2015-05-20 08:36:04 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-07-02 08:12:38 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-05-20 08:36:04 +00:00
|
|
|
#
|
|
|
|
|
2015-05-20 08:39:57 +00:00
|
|
|
|
2015-05-20 08:36:04 +00:00
|
|
|
Name: libreoffice-share-linker
|
2015-05-20 08:39:57 +00:00
|
|
|
Version: 1
|
|
|
|
Release: 0
|
|
|
|
Summary: Script to link/unlink files to libreoffice home
|
2015-05-20 08:36:04 +00:00
|
|
|
License: MIT
|
2015-05-20 08:39:57 +00:00
|
|
|
Group: Productivity/Office/Suite
|
2023-03-22 16:13:01 +00:00
|
|
|
URL: http://www.opensuse.org/
|
|
|
|
Source0: libreoffice-share-linker.py
|
2015-05-20 08:36:04 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2023-03-22 16:13:01 +00:00
|
|
|
Requires: python3
|
2015-05-20 08:39:57 +00:00
|
|
|
BuildArch: noarch
|
2015-05-20 08:36:04 +00:00
|
|
|
|
|
|
|
%description
|
2015-05-20 08:39:57 +00:00
|
|
|
Script that links and unlinks files from %{_datadir} to libreoffice
|
2015-05-20 08:36:04 +00:00
|
|
|
home as libreoffice layout is not set up for noarch packages otherwise.
|
|
|
|
|
|
|
|
%prep
|
2015-05-20 08:39:57 +00:00
|
|
|
:
|
2015-05-20 08:36:04 +00:00
|
|
|
|
|
|
|
%build
|
2015-05-20 08:39:57 +00:00
|
|
|
:
|
2015-05-20 08:36:04 +00:00
|
|
|
|
|
|
|
%install
|
2015-05-20 08:39:57 +00:00
|
|
|
install -Dm 755 %{SOURCE0} %{buildroot}%{_bindir}/%{name}
|
2017-04-21 11:21:08 +00:00
|
|
|
# compat for migration from older releases openSUSE-13.1 and older
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/libreoffice
|
|
|
|
pushd %{buildroot}%{_datadir}/libreoffice > /dev/null
|
2023-03-22 16:13:01 +00:00
|
|
|
ln -s %{_bindir}/%{name} libreoffice-share-linker.py
|
2017-04-21 11:21:08 +00:00
|
|
|
popd > /dev/null
|
2015-05-20 08:36:04 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/%{name}
|
2017-04-21 11:21:08 +00:00
|
|
|
%dir %{_datadir}/libreoffice/
|
2023-03-22 16:13:01 +00:00
|
|
|
%{_datadir}/libreoffice/libreoffice-share-linker.py
|
2015-05-20 08:36:04 +00:00
|
|
|
|
|
|
|
%changelog
|