6a14520
Name:		    flexdock
Clément DAVID fa02412
Version:        1.2.4
c8a85db
Release:	    14%{?dist}
6a14520
Summary:	    Docking framework for Java Swing GUI apps
f0be2ee
f0be2ee
f0be2ee
#Licence is MIT on their website
6a14520
License:	    MIT 
f7bb345
URL:		    http://forge.scilab.org/index.php/p/flexdock/
f0be2ee
Clément DAVID cefaecc
Source0:	    http://forge.scilab.org/index.php/p/flexdock/downloads/get/%{name}-%{version}.tar.gz
f0be2ee
f0be2ee
#Removes the java media framework from the demos to satisfy reqs
Clément DAVID cefaecc
Patch1:		    flexdock-0001-nojmf.patch
f0be2ee
#Modifies the build process  -- fedora specific
Clément DAVID cefaecc
Patch2:		    flexdock-0002-fedora-build.patch
73e6770
#Set javac source and target version to 1.8 to fix builds with Java 11
73e6770
Patch3:         flexdock-0003-java-1.8.patch
f0be2ee
f0be2ee
BuildRequires:	java-devel
8cbb760
BuildRequires:	ant
f0be2ee
BuildRequires:	jpackage-utils
87d826e
BuildRequires:	jgoodies-common
8cbb760
BuildRequires:	jgoodies-looks
f0be2ee
BuildRequires:	skinlf
f0be2ee
8cbb760
Requires:       java
Clément DAVID 0a4c549
Requires:       jpackage-utils
Clément DAVID 0a4c549
Requires:       jgoodies-common
Clément DAVID 0a4c549
Requires:       jgoodies-looks
Clément DAVID 0a4c549
Requires:       skinlf
f0be2ee
8cbb760
BuildArch:      noarch
8cbb760
f0be2ee
%description
f0be2ee
FlexDock is a Java docking framework for use in cross-platform
f0be2ee
Swing applications.
f0be2ee
f0be2ee
%prep
Clément DAVID cefaecc
%setup -q
a24ce99
f7bb345
%patch1 -p1
8cbb760
%patch2 -p1
73e6770
%patch3 -p1
f0be2ee
f0be2ee
#Override the build file's default hard-coded paths
4f22232
echo "sdk.home=%{java_home}" > workingcopy.properties
4f22232
4f22232
#JAR "dependency" handling
4f22232
find ./ -name \*.jar -exec rm {} \;
87d826e
build-jar-repository -s -p lib skinlf jgoodies-looks jgoodies-common
f0be2ee
mycae 3348a87
#Remove the jmf-using demo files
mycae 3348a87
rm src/java/demo/org/flexdock/demos/raw/jmf/MediaPanel.java
mycae 3348a87
rm src/java/demo/org/flexdock/demos/raw/jmf/JMFDemo.java
mycae 3348a87
f0be2ee
#Endline convert Doc files
f7bb345
for i in "LICENSE.txt README release-notes.txt" ;
f0be2ee
do
Clément DAVID 0a4c549
    %{__sed} -i 's/\r//' $i
f0be2ee
done
f0be2ee
f0be2ee
%build
8cbb760
ant jar
f0be2ee
f0be2ee
%install
4f22232
mkdir -p %{buildroot}%{_javadir}
4f22232
install -pm644 build/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
f0be2ee
f0be2ee
%files
f7bb345
%doc LICENSE.txt README release-notes.txt
4f22232
%{_javadir}/*
f0be2ee
f0be2ee
%changelog
c8a85db
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-14
c8a85db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
c8a85db
73e6770
* Sun Jul 19 2020 Fabio Valentini <decathorpe@gmail.com> - 1.2.4-13
73e6770
- Set javac source and target to 1.8 to fix Java 11 builds.
73e6770
97575b9
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 1.2.4-12
97575b9
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
97575b9
00617a9
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-11
00617a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
00617a9
6311966
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-10
6311966
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
6311966
21dde12
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-9
21dde12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
21dde12
6dfd66e
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-8
6dfd66e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
6dfd66e
d87f121
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-7
d87f121
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
d87f121
7a6a13e
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-6
7a6a13e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
7a6a13e
c3fd00d
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-5
c3fd00d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c3fd00d
c39ab11
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-4
c39ab11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c39ab11
73e786f
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.4-3
73e786f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
73e786f
80f294a
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.4-2
80f294a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
80f294a
Clément DAVID fa02412
* Mon Aug 12 2013 Clément David <c.david86@gmail.com> - 1.2.4-1
Clément DAVID fa02412
- Update version to 1.2.4
Clément DAVID fa02412
eee58d0
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-2
eee58d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
eee58d0
Clément DAVID 92295b4
* Mon Feb 25 2013 Clément David <c.david86@gmail.com> - 1.2.3-1
Clément DAVID 92295b4
- Update version
Clément DAVID 92295b4
9ece2c7
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-3
9ece2c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
9ece2c7
Clément DAVID c3d6514
* Mon Jan 21 2013 Clément David <c.david86@gmail.com> - 1.2.2-2
Clément DAVID c3d6514
- Update version to 1.2.2
Clément DAVID c3d6514
Clément DAVID cefaecc
* Thu Jan 03 2013 Clément David <c.david86@gmail.com> - 1.2.1-1
Clément DAVID cefaecc
- Update version
Clément DAVID cefaecc
87d826e
* Fri Jul 27 2012 Clément David <c.david86@gmail.com> - 1.2.0-2
87d826e
- Add the jcommons-logging dependency
87d826e
f7bb345
* Wed Jul 25 2012 Clément David <c.david86@gmail.com> - 1.2.0-1
f7bb345
- Update version
f7bb345
- Change website url
f7bb345
- Remove the generate tarball script
f7bb345
72653e0
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-2
72653e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
72653e0
6757b92
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-4
6757b92
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
6757b92
mycae 2dc14e8
* Tue Aug 16 2011 Clément David <c.david86@gmail.com> 0.5.2-1
mycae 2dc14e8
- Bump version
mycae 2dc14e8
- Normalize patches
mycae 2dc14e8
- Normalize tarball name and root
mycae 2dc14e8
f0be2ee
* Tue Sep 30 2008 <mycae(a!t)yahoo.com> 0.5.1-1
f0be2ee
- Create spec file
f0be2ee