File ganttproject.spec of Package ganttproject

# openSUSE BUILD service build build script
# spec file for gnuaccounting
#
# spec file for package ganttproject
#
# Copyright (c) 2012 lumnis@googlemail.com
#
# 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.
 
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

%define relNo 1473 

Name:           ganttproject	
Summary:        Project Management Tool
Version:        2.8.10
Release:        0
Group:          Productivity/Office/Management
License:        GPL-3.0
URL:            http://www.ganttproject.biz
Requires:       java >= 1.7.0
BuildRequires:  update-alternatives
BuildRequires:  java-devel
BuildRequires:  ant >= 1.7.1
BuildRequires:  ant-nodeps
BuildRequires:  unzip, xz
#BuildRequires:  dos2unix
BuildRequires:  update-desktop-files
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
#Source0:       http://www.ganttproject.biz/
Source0:        http://ganttproject.googlecode.com/files/%{name}-%{version}-src.tar.xz
Source1:        %{name}.desktop
Source2:        %{name}.png
#Source3:        %{name}.sh
#BuildArch:	 noarch

%description
GanttProject is a cross-platform desktop tool for project scheduling and management. 
It runs on Windows, Linux and MacOSX, it is free and its code is opensource.

What can it do?
* Gantt chart.
  Create work breakdown structure, draw dependencies, define milestones.
 
* Resources.
  Assign human resources to work on tasks, see their allocation on the Resource Load chart.

* PERT chart.
  Generate PERT chart from Gantt chart.

* Export.
  Save charts as PNG images, generate PDF and HTML reports.
  
* Interoperate.
  Import projects from and export them to Microsoft Project formats. Export to spreadsheets with CSV.

* Collaborate.
  Share projects with your colleagues using WebDAV.

Authors:
--------
Dmitry Barashev 
GanttProject administrator and main developer. He joined GanttProject in 2003 and wrote most of the current GanttProject code.

Alexandre Thomas 
is the author of the original GanttProject which he started during his study at university and published in 2003. He is not working on GanttProject anymore.



#%package doc
#Summary:        GNUaccounting documentation package
#License:        GPL
#Requires:       gnuaccounting
#Group:          Productivity/Office/Management
#BuildArch:	noarch

#%description doc
#This package contains documentation for ganttproject

%package samples
Summary:        Sample project files for Ganttproject
License:        GPL
Group:          Productivity/Office/Management
BuildArch:      noarch

%description samples
Contains the following sample files
* House Building

%prep
#%setup -n %{name}-%{buildNo}
#%setup -n %{name}-%{version}-r1216-src
%setup -n %{name}-%{version}-src

%build
cd %{name}-builder
%ant

#clean unused files
%__rm dist-bin/*.bat
%__rm dist-bin/*.exe


%install
export NO_BRP_CHECK_BYTECODE_VERSION=true
cd ganttproject-builder
%__install -d -m 755 %{buildroot}%{_datadir}/%{name}
%__install -d -m 755 %{buildroot}%{_datadir}/%{name}/samples
mv dist-bin/*.gan %{buildroot}%{_datadir}/%{name}/samples/
cp -R dist-bin/* %{buildroot}%{_datadir}/%{name}/
chmod 755 %{buildroot}%{_datadir}/%{name}/ganttproject

# startscript
%__install -d -m 755 %{buildroot}%{_bindir}
#%__install -m 755 %{SOURCE3} %{buildroot}%{_bindir}/%{name}
#%__install -m 755 %{name}.sh %{buildroot}%{_datadir}/%{name}/%{name}
ln -sf %{_datadir}/%{name}/%{name} %{buildroot}%{_bindir}/%{name}

#$RPM_BUILD_ROOT/usr/local/bin/gnuaccounting.sh
# install -m 644 tac_plus.1 $RPM_BUILD_ROOT/usr/local/man/man1/tac_plus.1
# install -m 644 tac_plus.confg $RPM_BUILD_ROOT/etc/tac_plus.confg 

# Icon
%__install -d -m 755 %{buildroot}%{_datadir}/pixmaps/
#%__install -D -p -m 644 %{name}_16.ico %{buildroot}%{_datadir}/pixmaps/
%__install -D -p -m 644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/


# Desktop menu entry
%__install -d -m 755 %{buildroot}%{_datadir}/applications
%__install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
%suse_update_desktop_file %{name}

# Documentation
#%__install -d -m 755 %{buildroot}%{_docdir}/%{name}
#cp -R docs/* %{buildroot}%{_docdir}/%{name}/

%files
%defattr(-,root,root,-)
%{_bindir}/*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%attr(755,root,root) %{_datadir}/%{name}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/*

#%doc LICENSE

%exclude %{_datadir}/%{name}/samples

#%files doc
#%defattr(-,root,root,-)
#%dir %{_docdir}/%{name}
#%{_docdir}/%{name}/*

%files samples
%defattr(-,root,root,-)
%{_datadir}/%{name}/samples

%changelog
* Thu May 30 2019 napobear@gmail.com
- Updated to latest version (2.8.10)
openSUSE Build Service is sponsored by