Commit graph

24 commits

Author SHA1 Message Date
Andras Timar
a178d445cd loolwsd: setcap loolkit 2016-02-17 10:42:00 +01:00
Andras Timar
3ec262e01b loolwsd: add loolbroker, loolkit and loolmap to rpm 2016-01-14 13:45:33 +01:00
Jan Holesovsky
f74db161dd loolwsd: Change the group too. 2016-01-08 09:25:21 +01:00
Jan Holesovsky
475436e66b loolwsd: Remove the cache content after installation.
The new versions may change the behaviour substantially, let's be on the safe
side.
2016-01-08 09:25:21 +01:00
Andras Timar
0902a21a5e loolwsd: setcap loolbroker 2016-01-05 14:33:11 +01:00
Andras Timar
87554d1be9 Collabora Office as requirement 2015-10-30 13:19:45 +01:00
Andras Timar
2d37bbcc20 skip make check for rpmbuild 2015-10-29 16:32:03 +01:00
Mihai Varga
47a96e8dee loolwsd: remove cron job when uninstalling the rpm package 2015-08-04 10:09:47 +03:00
Mihai Varga
eff724bda7 loolwsd: fixed poorly placed cronjob 2015-08-03 22:01:11 +03:00
Mihai Varga
eceb977186 loolwsd: cron job to delete old tiles from rpm packages
place a cronjob file in /etc/cron.d/ which is removed when
the loolwsd rpm packages is uninstalled
2015-08-03 21:50:41 +03:00
Tor Lillqvist
e29c773879 Include loolwsd.service and sysconfig.loolwsd in the tarball
(Instead of having them as separate SOURCEn in the loolwsd.spec.)

Both are related to systemd. The latter probably is relevant only for
openSUSE. (And I actually couldn't get what I tried doing in it to work, see
739edf9dcf464f407dfe663fb2f497b866e73333.)
(cherry picked from commit f8b29d666d52a3f18b0125aaed309fa3e4d719fb)
2015-07-07 10:11:34 +03:00
Tor Lillqvist
f1b4f72278 Adapt to the CP LO 5.0 beta1
(cherry picked from commit 9be670309fd107d29c4c54c58d2927968d777745)
2015-07-07 10:11:03 +03:00
Tor Lillqvist
baeeb92d1c Add cap_mknod here, too 2015-07-07 09:57:43 +03:00
Tor Lillqvist
2312d9a962 Just use Requires instead of PreReq
They mean the same.
2015-06-03 09:13:22 +03:00
Tor Lillqvist
7848cca80c Try to make this handled by systemd 2015-06-01 19:53:29 +03:00
Tor Lillqvist
a8bbebb4b2 Drop more too specific dependencies 2015-06-01 18:32:04 +03:00
Tor Lillqvist
74b5227dec Drop a few too specific dependencies 2015-06-01 17:55:12 +03:00
Tor Lillqvist
b317bfb9a0 Add the packages that the TDF build of LO should require (but doesn't)
LibreOffice from TDF, packaged in RPM, does not have proper dependencies as it
is supposed to be usable on different distros and can't know what names are
used for packages for system libraries used, like the one containing
libdbus-glib. But we must have all dependent libraries installed when running
the loolwsd-systemplate-setup command in the %post phase. As this spec file de
facto is for openSUSE 13.2 only anyway, we can find out the package names and
depend on them...

Add the list from running:

rpm -qf --queryformat '%{NAME} ' `find /opt/libreofficedev5.1 -name '*.so' -o -name '*.so.[0-9]*' | while read file; do ldd $file; done | grep -v dynamic | cut -d " " -f 3 | grep -E '^(/lib|/usr)/' | sort -u`
2015-06-01 16:34:58 +03:00
Tor Lillqvist
b54731fdce We do need to require the LO packages
They need to be installed before loolwsd is installed, because our %post
action needs to know where LO is installed so that it can create the
systemplate and child-roots directories on the same file system where LO
is. Oh this is crazy and over-engineered. I wonder if it makes sense at all to
even consider packaging this loolwsd in some generically useful way, or if it
should be considered a manual thing for customers / users to install and
configure.

Sadly the TDF builds of LO use the version number in the package names, so we
can't depend on *some* TDF build of LO (like >= 5.0), but must have a specific
version in this spec file. Sigh.
2015-05-29 18:31:53 +03:00
Tor Lillqvist
775603a736 Don't use sudo to run setcap when building from rpmbuild
Not a good idea to run an interactive command during a non-interactive
make. We do the setcap in the %post step in the spec file anyway.
2015-05-29 10:05:37 +03:00
Tor Lillqvist
5150db06b9 Adapt to work with either 5.0 or 5.1 packages from TDF 2015-05-28 10:31:39 +03:00
Tor Lillqvist
2e6719faaf Tweak where the systemplate and child-root directories are put
They must be on the same file system where LO is installed, and the TDF
tarballs puts that in /opt, and on some Linuxes in default configuration /opt
is on a different file system from /home, so we should not really use
/home/lool.
2015-05-27 16:28:36 +03:00
Tor Lillqvist
4109d1cb5d Avoid "cannot create directory: File exists" issues 2015-05-27 15:12:21 +03:00
Tor Lillqvist
2721706168 Generate the "upstream" loolwsd.spec here from an .in file
So that the version doesn't need to be manually maintained. Downstream
packagers will then have to add release information etc.
2015-05-20 20:12:54 +03:00
Renamed from loolwsd/loolwsd.spec (Browse further)