File bibisco.spec of Package bibisco

#
# spec file for package bibisco
#
# Copyright (c) 2018 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#

Name:           bibisco
Version:        1.5.1
Release:        0 
License:        GPL-2.0+
Summary:        Novel writing software
Url:            http://www.bibisco.com/
Group:          Productivity/Publishing/Other
Source:         %{name}-%{version}.tar.gz
Source1:        %{name}.desktop
Source2:        bibisco-rpmlintrc
BuildRequires:  java-devel 
BuildRequires:  ant 
BuildRequires:  jpackage-utils
Requires:       jre
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%define eclipse_base %{_libdir}/eclipse/dropins/setools
%ifarch %ix86
%define arch x86
%else
%define arch %{_arch}
%endif

%description
Bibisco is an open source application for writing novels. 

With bibisco you can organize chapters and scenes, manage revisions, export
novel in pdf or rtf, and write with a fully featured text editor.

You can create a novel structure, define premise, fabula, narrative strands and
settings: geographic, temporal and social context.

And, most of all, with bibisco you can know everything about your characters.
Because your novel works only if its characters are believable, that is when
you understand their human nature's complexity.

%prep
%setup -q

%build
cd bibisco

%install
PLUGIN_VER=`grep Bundle-Version %{name}/META-INF/MANIFEST.MF | cut -d : -f 2 | tr -d " "`
FRAGMENT_VER=`grep Bundle-Version %{name}.%{_os}.%{arch}/META-INF/MANIFEST.MF | cut -d : -f 2 | tr -d " "`

mkdir -p %{buildroot}/%{_datadir}/
cp -a %{name} %{buildroot}/%{_datadir}/
# sad, but true:
chmod -R 0777 %{buildroot}/%{_datadir}/%{name}/db
install -d -m0777 %{buildroot}/%{_datadir}/%{name}/log

install -Dm0644 %{SOURCE1} %{buildroot}/%{_datadir}/applications/%{name}.desktop
install -Dm0644 %{name}/icons/branding/logo48x48.png %{buildroot}/%{_datadir}/pixmaps/%{name}.png

%files
%defattr(-,root,root)
%doc LICENSE README* *.pdf
%dir %{_datadir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
openSUSE Build Service is sponsored by