2012-12-14 19:37:52 +00:00
|
|
|
#
|
2015-09-19 23:14:01 +00:00
|
|
|
# spec file for package projectlibre
|
2012-12-14 19:37:52 +00:00
|
|
|
#
|
2022-04-08 12:53:51 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2012-12-14 19:37:52 +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.
|
2015-09-19 23:14:01 +00:00
|
|
|
|
2019-04-21 07:28:13 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-12-14 19:37:52 +00:00
|
|
|
#
|
|
|
|
|
|
2017-11-11 12:11:28 +00:00
|
|
|
|
2015-09-19 23:14:01 +00:00
|
|
|
Name: projectlibre
|
2021-02-03 10:11:42 +00:00
|
|
|
Version: 1.9.3
|
2012-12-14 19:37:52 +00:00
|
|
|
Release: 0
|
2017-06-29 12:09:27 +00:00
|
|
|
Summary: Project Management Tool
|
2017-11-11 12:11:28 +00:00
|
|
|
License: CPAL-1.0
|
2015-09-19 23:14:01 +00:00
|
|
|
Group: Productivity/Office/Management
|
2020-07-06 19:15:38 +00:00
|
|
|
URL: https://www.projectlibre.org
|
2021-02-03 13:34:42 +00:00
|
|
|
Source0: %{name}-%{version}.tar.gz
|
2012-12-14 19:37:52 +00:00
|
|
|
Source1: %{name}.desktop
|
|
|
|
|
Source2: %{name}.png
|
|
|
|
|
Source3: x-%{name}.desktop
|
2022-04-08 12:53:51 +00:00
|
|
|
Patch0: %{name}-nosourcetarget.patch
|
2021-02-03 11:25:58 +00:00
|
|
|
BuildRequires: ant
|
2022-04-08 12:53:51 +00:00
|
|
|
BuildRequires: java-devel >= 1.8
|
2015-09-19 23:14:01 +00:00
|
|
|
BuildRequires: update-desktop-files
|
2022-04-08 12:53:51 +00:00
|
|
|
Requires: java >= 1.8
|
2015-09-19 23:14:01 +00:00
|
|
|
BuildArch: noarch
|
2012-12-14 19:37:52 +00:00
|
|
|
|
2015-09-19 23:14:01 +00:00
|
|
|
%description
|
2017-06-29 12:09:27 +00:00
|
|
|
ProjectLibre is a project manager which is compatible with Microsoft
|
|
|
|
|
Project 2003, 2007 and 2010 files. It has Gantt charts, PERT charts,
|
|
|
|
|
network diagrams and Earned Value Costing.
|
2012-12-14 19:37:52 +00:00
|
|
|
|
|
|
|
|
%prep
|
2024-02-20 17:23:01 +00:00
|
|
|
%autosetup -p1
|
2012-12-14 19:37:52 +00:00
|
|
|
|
|
|
|
|
%build
|
2021-02-03 11:25:58 +00:00
|
|
|
#Set the file encoding for source files
|
|
|
|
|
export JAVA_TOOL_OPTIONS=-Dfile.encoding=cp1252
|
|
|
|
|
cd projectlibre_build/
|
2022-04-08 12:53:51 +00:00
|
|
|
%{ant} clean
|
|
|
|
|
%{ant} -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8
|
2012-12-14 19:37:52 +00:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
export NO_BRP_CHECK_BYTECODE_VERSION=true
|
2017-05-16 10:48:23 +00:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}/lib
|
2021-02-03 11:25:58 +00:00
|
|
|
install -Dm0755 projectlibre_contrib/*.jar %{buildroot}%{_datadir}/%{name}/lib/
|
|
|
|
|
install -Dm0755 projectlibre_build/dist/%{name}.jar %{buildroot}%{_datadir}/%{name}/
|
2012-12-14 19:37:52 +00:00
|
|
|
|
|
|
|
|
# startscript
|
|
|
|
|
cat > %{name} << EOF
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
#
|
|
|
|
|
echo Starting %{name} version %{version} ...
|
|
|
|
|
echo with options : \${@}
|
|
|
|
|
|
|
|
|
|
java -jar %{_datadir}/%{name}/%{name}.jar \${@}
|
|
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
|
2017-05-09 07:41:27 +00:00
|
|
|
# Install startscript
|
|
|
|
|
install -Dm0755 %{name} %{buildroot}%{_bindir}/%{name}
|
2012-12-14 19:37:52 +00:00
|
|
|
|
2017-05-09 07:41:27 +00:00
|
|
|
# Install desktop file and icon with -i switch ;)
|
|
|
|
|
%suse_update_desktop_file -i %{name}
|
2012-12-14 19:37:52 +00:00
|
|
|
|
|
|
|
|
%files
|
2021-02-03 11:25:58 +00:00
|
|
|
%license projectlibre_build/license/*
|
|
|
|
|
%doc projectlibre_build/doc/*
|
2015-09-19 23:14:01 +00:00
|
|
|
%{_bindir}/%{name}
|
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
|
%{_datadir}/pixmaps/%{name}.png
|
2017-05-09 07:41:27 +00:00
|
|
|
%dir %{_datadir}/%{name}
|
|
|
|
|
%{_datadir}/%{name}/*
|
2012-12-14 19:37:52 +00:00
|
|
|
|
|
|
|
|
%changelog
|