blob: 0688e13ab09d60f17d428bfd3e78f5e3ff9d6c3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
#
# spec file for package OpenOffice_org (Version 2.4.1.7)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
%define distro SUSE
%define piece libs_gui
Name: ooo3_%piece
Requires: ooo3_ure ooo3_libs_extern
BuildRequires: ooo3_bootstrap ooo3_libs_extern-devel
%define ooo_prefix %_libdir
%define ooo_home ooo-3
%define ooo_build_tag ooo300-m1
License: Artistic License; BSD 3-Clause; GPL v2 or later; LaTeX Public License (LPPL); LGPL v2.1 or later; MOZILLA PUBLIC LICENSE (MPL/NPL); X11/MIT
Group: Productivity/Office/Suite
Version: 3
Release: 8
AutoReqProv: on
Summary: A Free Office Suite (Framework)
Url: http://www.openoffice.org/
Source: %ooo_build_tag-%piece.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
ure
%package devel
Requires: ooo3_ure-devel ooo3_libs_extern-devel
License: Artistic License; BSD 3-Clause; GPL v2 or later; LaTeX Public License (LPPL); LGPL v2.1 or later; MOZILLA PUBLIC LICENSE (MPL/NPL); X11/MIT
Summary: A Free Office Suite (Framework)
Group: Productivity/Office/Suite
AutoReqProv: off
%description devel
devel package
%prep
%setup -q -n %ooo_build_tag-%piece
%build
# setup env.
export OO_INSTDIR=%{_libdir}/%ooo_home
export OO_TOOLSDIR=$OO_INSTDIR/ooo-build/bin
export VERBOSE=1
export EXTRA_BUILD_FLAGS=%{?jobs:-P%jobs}
export EXTRA_DMAKE_FLAGS="%{?jobs:-- -P%jobs}"
$OO_TOOLSDIR/piece/build-generic %piece %ooo_build_tag %distro
%install
# setup env.
export OO_INSTDIR=%{_libdir}/%ooo_home
export OO_TOOLSDIR=$OO_INSTDIR/ooo-build/bin
export DESTDIR=$RPM_BUILD_ROOT
$OO_TOOLSDIR/piece/install-generic %piece %ooo_build_tag %distro
# prune redundant files the scp2 likes to make for us
rm -Rf \
"$DESTDIR/$OO_INSTDIR/basis-link" \
"$DESTDIR/$OO_INSTDIR/ure"
%clean
%post
%post devel
%files
%defattr(-,root,root)
%dir %ooo_prefix/%ooo_home/basis3.0
%dir %ooo_prefix/%ooo_home/program
%dir %ooo_prefix/%ooo_home/share
%ooo_prefix/%ooo_home/basis3.0/*
%ooo_prefix/%ooo_home/program/*
%ooo_prefix/%ooo_home/share/*
%files devel
%defattr(-,root,root)
%dir %ooo_prefix/%ooo_home/solver
%ooo_prefix/%ooo_home/solver/*
%changelog
|