Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ab3dc6adf0 | ||
|
|
212cce337e |
1 changed files with 17 additions and 6 deletions
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
Name: fernflower
|
||||
Version: 183.5153.8
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: JIdea's java decompiler
|
||||
Group: Development/Tools
|
||||
License: ASL 2.0
|
||||
|
|
@ -19,14 +19,14 @@ Source1: %{name}
|
|||
Source2: create-sources.sh
|
||||
Patch0: remove_main.patch
|
||||
BuildArch: noarch
|
||||
BuildRequires: javapackages-tools
|
||||
BuildRequires: jpackage-utils
|
||||
BuildRequires: java-devel
|
||||
BuildRequires: gradle-local
|
||||
%if %{with_javadoc}
|
||||
BuildRequires: zip
|
||||
%endif
|
||||
Requires: java-headless
|
||||
Requires: javapackages-tools
|
||||
Requires: jpackage-utils
|
||||
Provides: %{name}-decompiler
|
||||
|
||||
|
||||
%description
|
||||
|
|
@ -38,8 +38,9 @@ please send your bug reports and improvement suggestions to the issue tracker.
|
|||
%package javadoc
|
||||
Summary: %{name} API documentation
|
||||
Group: Documentation
|
||||
Requires: javapackages-filesystem
|
||||
Requires: jpackage-utils
|
||||
BuildArch: noarch
|
||||
Provides: %{name}-decompiler-javadoc
|
||||
|
||||
%description javadoc
|
||||
The %{name} 100% empty API documentation.
|
||||
|
|
@ -60,7 +61,13 @@ find | grep "\\.jar$" && exit 1
|
|||
%patch0
|
||||
|
||||
%build
|
||||
%gradle_build --skip-install jar
|
||||
mkdir build
|
||||
javac -d build `find src -type f`
|
||||
cd build
|
||||
jar -cf ../%{name}.jar org
|
||||
cd ..
|
||||
mkdir build/libs
|
||||
mv %{name}.jar build/libs/
|
||||
%if %{with_javadoc}
|
||||
# this is sad. Javadoc is really 100% empty
|
||||
mkdir fernflower-javadoc
|
||||
|
|
@ -95,5 +102,9 @@ cp %{name}.zip $RPM_BUILD_ROOT/%{_javadocdir}/
|
|||
%endif
|
||||
|
||||
%changelog
|
||||
* Fri Jan 18 2019 Jiri Vanek <jvanek@redhat.com> - 183.5153.8-2
|
||||
- added virtual provides of fernflower-decompiler and fernflower-decompiler-javadoc
|
||||
|
||||
* Wed Jan 09 2019 Jiri Vanek <jvanek@redhat.com> - 183.5153.8-1
|
||||
- changes for epel jpackage-utils instead of javapackages-tools; simple javac+jar instead of gradle
|
||||
- initial package
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue