|
Eric Smith |
ccd49fd |
Name: miglayout
|
|
Eric Smith |
35f7875 |
Version: 4.0
|
|
|
90d7408 |
Release: 3%{?dist}
|
|
Eric Smith |
ccd49fd |
Summary: Versatile and flexible Swing and SWT layout manager
|
|
Eric Smith |
ccd49fd |
URL: http://www.miglayout.com/
|
|
Eric Smith |
ccd49fd |
License: BSD
|
|
Eric Smith |
ccd49fd |
Group: System Environment/Libraries
|
|
Eric Smith |
ccd49fd |
|
|
Eric Smith |
ccd49fd |
Source0: http://www.migcalendar.com/miglayout/versions/%{version}/miglayout-%{version}-sources.jar
|
|
Eric Smith |
ccd49fd |
|
|
Eric Smith |
ccd49fd |
BuildArch: noarch
|
|
Eric Smith |
ccd49fd |
BuildRequires: eclipse-swt dos2unix jpackage-utils java-devel
|
|
Eric Smith |
ccd49fd |
|
|
Eric Smith |
ccd49fd |
Requires: java jpackage-utils
|
|
Eric Smith |
ccd49fd |
|
|
Eric Smith |
ccd49fd |
%description
|
|
Eric Smith |
ccd49fd |
MiGLayout is a versatile SWT/Swing layout manager. It uses String or
|
|
Eric Smith |
ccd49fd |
API type-checked constraints to format the layout. MiGLayout can
|
|
Eric Smith |
ccd49fd |
produce flowing, grid based, absolute (with links), grouped and
|
|
Eric Smith |
ccd49fd |
docking layouts. MiGLayout is created to be to manually coded layouts
|
|
Eric Smith |
ccd49fd |
what Matisse/GroupLayout is to IDE supported visual layouts.
|
|
Eric Smith |
ccd49fd |
|
|
Eric Smith |
ccd49fd |
%package javadoc
|
|
Eric Smith |
ccd49fd |
Summary: Javadocs for MiGLayout
|
|
Eric Smith |
ccd49fd |
Group: Documentation
|
|
Eric Smith |
ccd49fd |
Requires: %{name} = %{version}-%{release}
|
|
Eric Smith |
ccd49fd |
|
|
Eric Smith |
ccd49fd |
%description javadoc
|
|
Eric Smith |
ccd49fd |
This package contains the API documentation for MiGLayout.
|
|
Eric Smith |
ccd49fd |
|
|
Eric Smith |
ccd49fd |
%package examples
|
|
Eric Smith |
ccd49fd |
Summary: Examples and demo code for MiGLayout
|
|
Eric Smith |
ccd49fd |
Group: Documentation
|
|
Eric Smith |
ccd49fd |
Requires: %{name} = %{version}-%{release}
|
|
Eric Smith |
ccd49fd |
|
|
Eric Smith |
ccd49fd |
%description examples
|
|
Eric Smith |
ccd49fd |
This package contains examples and demos code for MiGLayout.
|
|
Eric Smith |
ccd49fd |
|
|
Eric Smith |
ccd49fd |
%prep
|
|
Eric Smith |
ccd49fd |
%setup -q -c %{name}
|
|
Eric Smith |
ccd49fd |
# Fix line endings in some demo and example source files.
|
|
Eric Smith |
ccd49fd |
dos2unix net/miginfocom/demo/{CallbackDemo,SwingDemo,SwtDemo}.java
|
|
Eric Smith |
ccd49fd |
dos2unix net/miginfocom/examples/{Example01,Example,ExampleGood}.java
|
|
Eric Smith |
638d706 |
# Convert Windows codepage 1251 quotes in SwtDemo.java to UTF-8.
|
|
Eric Smith |
ccd49fd |
iconv --from=windows-1251 --to=UTF-8 net/miginfocom/demo/SwtDemo.java >net/miginfocom/demo/SwtDemo.java.new
|
|
Eric Smith |
ccd49fd |
touch -r net/miginfocom/demo/SwtDemo.java{,.new}
|
|
Eric Smith |
ccd49fd |
mv net/miginfocom/demo/SwtDemo.java{.new,}
|
|
Eric Smith |
ccd49fd |
|
|
Eric Smith |
ccd49fd |
%build
|
|
Eric Smith |
ccd49fd |
export CLASSPATH=%{_libdir}/java/swt.jar:.
|
|
Eric Smith |
638d706 |
javac -encoding utf8 net/miginfocom/{layout,swing,swt}/*.java
|
|
Eric Smith |
ccd49fd |
|
|
Eric Smith |
ccd49fd |
# We'll build the demos and examples just to ensure that they compile,
|
|
Eric Smith |
ccd49fd |
# but we're not going to package the binaries.
|
|
Eric Smith |
ccd49fd |
# We can't build demo/HiDPISimulator.java due to a missing prerequisite
|
|
Eric Smith |
ccd49fd |
# (org.jvnet.substance).
|
|
Eric Smith |
638d706 |
javac -encoding utf8 net/miginfocom/demo/[CS]*.java
|
|
Eric Smith |
638d706 |
javac -encoding utf8 net/miginfocom/examples/*.java
|
|
Eric Smith |
ccd49fd |
|
|
Eric Smith |
ccd49fd |
jar cmf META-INF/MANIFEST.MF \
|
|
Eric Smith |
ccd49fd |
%{name}-%{version}.jar \
|
|
Eric Smith |
ccd49fd |
net/miginfocom/{layout,swing,swt}/*.class
|
|
Eric Smith |
ccd49fd |
javadoc -d doc net.miginfocom.{layout,swing,swt}
|
|
Eric Smith |
ccd49fd |
|
|
Eric Smith |
ccd49fd |
%install
|
|
Eric Smith |
ccd49fd |
mkdir -p %{buildroot}%{_javadir}
|
|
Eric Smith |
ccd49fd |
mkdir -p %{buildroot}%{_javadocdir}
|
|
Eric Smith |
ccd49fd |
cp -a %{name}-%{version}.jar %{buildroot}%{_javadir}/
|
|
Eric Smith |
ccd49fd |
ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
|
Eric Smith |
ccd49fd |
cp -a doc %{buildroot}%{_javadocdir}/%{name}
|
|
Eric Smith |
ccd49fd |
|
|
Eric Smith |
ccd49fd |
%files
|
|
Eric Smith |
ccd49fd |
%{_javadir}/*.jar
|
|
Eric Smith |
ccd49fd |
|
|
Eric Smith |
ccd49fd |
%files javadoc
|
|
Eric Smith |
ccd49fd |
%doc %{_javadocdir}/%{name}
|
|
Eric Smith |
ccd49fd |
|
|
Eric Smith |
ccd49fd |
%files examples
|
|
Eric Smith |
ccd49fd |
%doc net/miginfocom/demo/*.java
|
|
Eric Smith |
ccd49fd |
%doc net/miginfocom/examples/*.java
|
|
Eric Smith |
ccd49fd |
|
|
Eric Smith |
ccd49fd |
%changelog
|
|
|
90d7408 |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0-3
|
|
|
90d7408 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
90d7408 |
|
|
|
b083322 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0-2
|
|
|
b083322 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
b083322 |
|
|
Eric Smith |
35f7875 |
* Sat Oct 08 2011 Eric Smith <eric@brouhaha.com> - 4.0-1
|
|
Eric Smith |
35f7875 |
- Update to latest upstream.
|
|
Eric Smith |
35f7875 |
- Removed BuildRoot, clean, defattr, etc.
|
|
Eric Smith |
35f7875 |
|
|
|
199fcd4 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.7.3.1-2
|
|
|
199fcd4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
199fcd4 |
|
|
Eric Smith |
ccd49fd |
* Mon Oct 18 2010 Eric Smith <eric@brouhaha.com> - 3.7.3.1-1
|
|
Eric Smith |
ccd49fd |
- initial version
|