Name: swing-layout
Version: 1.0.4
Release: 19%{?dist}
Summary: Natural layout for Swing panels
License: LGPLv2
URL: https://swing-layout.dev.java.net/
# https://svn.java.net/svn/swing-layout~svn/trunk/
# the above urls are dead, since the upstream project doesn't exist anymore
Source0: %{name}-%{version}-src.zip
# from http://java.net/jira/secure/attachment/27303/pom.xml
Source1: %{name}-pom.xml
# use javac target/source 1.5
Patch0: %{name}-%{version}-project_properties.patch
Patch1: %{name}-%{version}-fix-incorrect-fsf-address.patch
BuildRequires: junit >= 3.8.2
BuildRequires: javapackages-local
BuildRequires: java-devel >= 1.3
BuildRequires: ant
BuildRequires: dos2unix
Requires: java-headless >= 1.3
BuildArch: noarch
%description
Extensions to Swing to create professional cross platform layout.
%prep
%setup -q
dos2unix releaseNotes.txt
%patch0 -p0
%patch1 -p0
sed -i 's/\r//' COPYING
cat %{SOURCE1} | sed "s|1.0.3|%{version}|" > %{name}.pom
%build
%{ant} jar
%mvn_artifact %{name}.pom dist/%{name}.jar
%install
%mvn_install -J dist/javadoc
%check
%{ant} test
%files -f .mfiles
%doc releaseNotes.txt
%license COPYING
%changelog
* Sat Jul 11 2020 Jiri Vanek - 1.0.4-19
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
* Tue Feb 18 2020 Jiri Andrlik - 1.0.4-18
- Migrated from deprecated add_maven_depmap macro https://docs.fedoraproject.org/en-US/java-packaging-howto/migration/
- renamed pom.xml to swing_layout.pom in sake of some coherence
- deleted commented javadoc chunks of code and unsatisfiable if statements
- tried to find new url of sources, but with no luck, upstream is non-existent
* Sun Feb 03 2019 Fedora Release Engineering - 1.0.4-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sat Jul 14 2018 Fedora Release Engineering - 1.0.4-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Feb 09 2018 Fedora Release Engineering - 1.0.4-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering - 1.0.4-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Sat Feb 11 2017 Fedora Release Engineering - 1.0.4-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Fri Feb 05 2016 Fedora Release Engineering - 1.0.4-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Fri Jun 19 2015 Fedora Release Engineering - 1.0.4-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Thu Feb 12 2015 gil cattaneo 1.0.4-10
- introduce license macro
* Sun Jun 08 2014 Fedora Release Engineering - 1.0.4-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sun Aug 04 2013 Fedora Release Engineering - 1.0.4-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Fri Feb 15 2013 Fedora Release Engineering - 1.0.4-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Sun Dec 09 2012 gil cattaneo 1.0.4-6
- Adapted to current guideline
- Added maven pom
- Installed license file
* Sat Jul 21 2012 Fedora Release Engineering - 1.0.4-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Sat Jan 14 2012 Fedora Release Engineering - 1.0.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Wed Feb 09 2011 Fedora Release Engineering - 1.0.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Fri Mar 5 2010 Alexander Kurtakov 1.0.4-2
- Drop gcj_support.
* Tue Jan 26 2010 Victor G. Vasilyev - 1.0.4-1
- 1.0.4
* Sun Jul 26 2009 Fedora Release Engineering - 1.0.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Wed Feb 25 2009 Fedora Release Engineering - 1.0.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Thu Apr 03 2008 Lubomir Kundrak - 1.0.3-2
- gcj bits
- no insane javadoc links
* Tue Feb 19 2008 Lubomir Kundrak - 1.0.3-1
- 1.0.3
- Major specfile cleanup for Fedora
* Tue Feb 19 2008 Lubomir Kundrak - 0:1.0-1jpp
- Shamelessly stolen this from JPackage 1.6 without proper ChangeLog entry
* Mon Nov 12 2005 Jaroslav Tulach - 0:0.9-1jpp
- First packaged release.