Group :: Office
RPM: ganttproject
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Name: ganttproject
Version: 2.7.2
Release: alt2
Summary: GanttProject is a tool for creating a project schedule by means of Gantt chart and resource load chart
License: GPLv2 with library exceptions
Group: Office
Url: http://www.ganttproject.biz/
Source: %name-%version.tar
Packager: Andrey Chetepanov <cas at altlinux.org>
BuildArch: noarch
BuildRequires: rpm-build-java java-devel ant
AutoProv: yes,noosgi
Requires: java >= 1.8.0
Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils
%description
GanttProject is a tool for creating a project schedule by means
of Gantt chart and resource load chart.
With GanttProject you can break down your project into a tree of tasks
and assign human resources that have to work on each task. You can also
establish dependencies between tasks, like "this task can't start
until this one is finished". GanttProject renders your project
using two charts: Gantt chart for tasks and resource load chart
for resources. You may print your charts, generate PDF and HTML
reports, exchange data with Microsoft(R) Project(TM)
and spreadsheet applications.
%prep
%setup
cd ganttproject-builder
ant clean
%build
%install
cd ganttproject-builder
%ant -Dinstall.dir=%buildroot%_datadir/%name build
# Fix executable bit to program
chmod +x %buildroot%_datadir/%name/%name
# Make symlink to /usr/bin
install -d %buildroot%_bindir
ln -s %_datadir/%name/%name %buildroot%_bindir/%name
# Create the desktop entry
mkdir -p %buildroot%_desktopdir
cat > %buildroot%_desktopdir/%name.desktop << EOF
[Desktop Entry]
Name=GanttProject
Comment=Project Management
Exec=%name
Icon=%name
Terminal=false
Type=Application
StartupNotify=true
Categories=Office;Development;ProjectManagement;X-MandrivaLinux-Office-TasksManagement;
EOF
# Create the mime-type for GanttProject
mkdir -p %buildroot%_datadir/mimelnk/application
cat > %buildroot%_datadir/mimelnk/application/x-%name.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
MimeType=application/x-ganttproject
Comment=GanttProject File
Comment[es]=Archivo de GanttProject
Icon=%name
Type=MimeType
Patterns=*.gan;
X-KDE-AutoEmbed=false
[Property::X-KDE-NativeExtension]
Type=QString
Value=.gan
EOF
# Associate the mime-type with GanttProject
mkdir -p %buildroot%_datadir/application-registry
cat > %buildroot%_datadir/application-registry/%name.applications << EOF
ganttproject
command=ganttproject
name=GanttProject Project Managment Tool
can_open_multiple_files=true
expects_uris=non-file
requires_terminal=false
supported_uri_schemes=file,http,ftp
mime_types=application/x-ganttproject
EOF
# Copy the icon
install -D ../ganttproject/data/resources/icons/ganttproject.png %buildroot%_datadir/icons/hicolor/32x32/apps/%name.png
%files
%doc ganttproject/AUTHORS ganttproject/LICENSE ganttproject/README
%_bindir/%name
%_datadir/%name/
%_desktopdir/*
%_datadir/application-registry/*
%_datadir/mimelnk/application/*
%_datadir/icons/hicolor/32x32/apps/*
%changelog
…
Full changelog you can see here
Version: 2.7.2
Release: alt2
Summary: GanttProject is a tool for creating a project schedule by means of Gantt chart and resource load chart
License: GPLv2 with library exceptions
Group: Office
Url: http://www.ganttproject.biz/
Source: %name-%version.tar
Packager: Andrey Chetepanov <cas at altlinux.org>
BuildArch: noarch
BuildRequires: rpm-build-java java-devel ant
AutoProv: yes,noosgi
Requires: java >= 1.8.0
Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils
%description
GanttProject is a tool for creating a project schedule by means
of Gantt chart and resource load chart.
With GanttProject you can break down your project into a tree of tasks
and assign human resources that have to work on each task. You can also
establish dependencies between tasks, like "this task can't start
until this one is finished". GanttProject renders your project
using two charts: Gantt chart for tasks and resource load chart
for resources. You may print your charts, generate PDF and HTML
reports, exchange data with Microsoft(R) Project(TM)
and spreadsheet applications.
%prep
%setup
cd ganttproject-builder
ant clean
%build
%install
cd ganttproject-builder
%ant -Dinstall.dir=%buildroot%_datadir/%name build
# Fix executable bit to program
chmod +x %buildroot%_datadir/%name/%name
# Make symlink to /usr/bin
install -d %buildroot%_bindir
ln -s %_datadir/%name/%name %buildroot%_bindir/%name
# Create the desktop entry
mkdir -p %buildroot%_desktopdir
cat > %buildroot%_desktopdir/%name.desktop << EOF
[Desktop Entry]
Name=GanttProject
Comment=Project Management
Exec=%name
Icon=%name
Terminal=false
Type=Application
StartupNotify=true
Categories=Office;Development;ProjectManagement;X-MandrivaLinux-Office-TasksManagement;
EOF
# Create the mime-type for GanttProject
mkdir -p %buildroot%_datadir/mimelnk/application
cat > %buildroot%_datadir/mimelnk/application/x-%name.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
MimeType=application/x-ganttproject
Comment=GanttProject File
Comment[es]=Archivo de GanttProject
Icon=%name
Type=MimeType
Patterns=*.gan;
X-KDE-AutoEmbed=false
[Property::X-KDE-NativeExtension]
Type=QString
Value=.gan
EOF
# Associate the mime-type with GanttProject
mkdir -p %buildroot%_datadir/application-registry
cat > %buildroot%_datadir/application-registry/%name.applications << EOF
ganttproject
command=ganttproject
name=GanttProject Project Managment Tool
can_open_multiple_files=true
expects_uris=non-file
requires_terminal=false
supported_uri_schemes=file,http,ftp
mime_types=application/x-ganttproject
EOF
# Copy the icon
install -D ../ganttproject/data/resources/icons/ganttproject.png %buildroot%_datadir/icons/hicolor/32x32/apps/%name.png
%files
%doc ganttproject/AUTHORS ganttproject/LICENSE ganttproject/README
%_bindir/%name
%_datadir/%name/
%_desktopdir/*
%_datadir/application-registry/*
%_datadir/mimelnk/application/*
%_datadir/icons/hicolor/32x32/apps/*
%changelog
…
Full changelog you can see here