Submitting a new package OBS-URL: https://build.opensuse.org/request/show/982904 OBS-URL: https://build.opensuse.org/package/show/Java:packages/jfugue?expand=0&rev=1
91 lines
2.5 KiB
RPMSpec
91 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package jfugue
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: jfugue
|
|
Version: 5.0.9
|
|
Release: 0
|
|
Summary: Music Programming for Java and JVM Languages
|
|
License: Apache-2.0
|
|
Group: Development/Libraries/Java
|
|
URL: http://www.jfugue.org
|
|
Source0: %{url}/%{name}-%{version}-src.zip
|
|
Source1: https://www.apache.org/licenses/LICENSE-2.0.txt
|
|
BuildRequires: ant
|
|
BuildRequires: ant-junit
|
|
BuildRequires: fdupes
|
|
BuildRequires: javapackages-local
|
|
BuildRequires: mvn(xom:xom)
|
|
BuildRequires: unzip
|
|
BuildRequires: xmvn-install
|
|
Requires: mvn(xom:xom)
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
JFugue encourages people of all ages to experiment with the expressive power of
|
|
music. Generate musical data interactively or algorithmically, use musical
|
|
patterns, rhythms, elements of music theory, including chords and chord
|
|
progressions, communicate to external MIDI devices, such as musical keyboards,
|
|
mixers and more.
|
|
|
|
%package javadoc
|
|
Summary: API documentation for %{name}
|
|
Group: Documentation/HTML
|
|
|
|
%description javadoc
|
|
API documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q -c
|
|
cp %{SOURCE1} .
|
|
|
|
rm {main,test}/resources/*.jar
|
|
ln -s %{_javadir}/xom.jar main/resources/xom-1.2.10.jar
|
|
|
|
rm \
|
|
test/java/org/staccato/UnknownTokenTest.java \
|
|
test/java/org/jfugue/temporal/TemporalPLPTest.java \
|
|
test/java/org/jfugue/player/PlayerTest.java
|
|
|
|
%{mvn_file} : %{name}
|
|
|
|
%build
|
|
LANG=C.UTF-8 %{ant} \
|
|
-Dfile.encoding=UTF-8 \
|
|
-Dsrc.dir=. \
|
|
-Dsrc.main.dir=main \
|
|
-Dsrc.main.resources.dir=main/resources \
|
|
-Dsrc.test.dir=test \
|
|
-Dsrc.test.resources.dir=test/resources \
|
|
-Dsrc.manualtest.dir=manualtest \
|
|
-Dsrc.demo.dir=demo \
|
|
-Dsrc.tour.dir=tour \
|
|
%{nil}
|
|
|
|
%install
|
|
%{mvn_artifact} %{name}:%{name}:%{version} %{name}-5.0.jar
|
|
%mvn_install -J doc
|
|
%fdupes %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
%files -f .mfiles
|
|
%license LICENSE-2.0.txt
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%license LICENSE-2.0.txt
|
|
|
|
%changelog
|