[ec2eb2]: jedit.spec Maximize Restore History

Download this file

jedit.spec    77 lines (56 with data), 1.9 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
###
### RPM spec file for jEdit
###
### To create the RPM, put the source tarball in the RPM SOURCES
### directory, and invoke:
### rpm -ba jedit.spec
### You will need to have ant, xsltproc, and DocBook-XML 4.1.2 installed
### for this to work.
Summary: Programmer's text editor written in Java
Name: jedit
Version: 4.0.1
Release: 1
# REMIND: bump this with each RPM
Serial: 29
Copyright: GPL
Group: Applications/Editors
Source0: http://prdownloads.sourceforge.net/jedit/jedit40source.tar.gz
Source1: jedit.sh.in
URL: http://www.jedit.org
Vendor: Slava Pestov <slava@jedit.org>
Packager: Slava Pestov <slava@jedit.org>
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
jEdit is an Open Source, cross platform text editor written in Java. It
has an extensive feature set that includes syntax highlighting, auto indent,
folding, word wrap, abbreviation expansion, multiple clipboards, powerful search
and replace, and much more.
Futhermore, jEdit is extremely customizable, and extensible, using either macros
written in the BeanShell scripting language, or plugins written in Java.
jEdit requires Java 2 version 1.3.
%prep
%setup -n jEdit
%build
export CLASSPATH="."
jdk13 ant docs-html-xsltproc dist
jdk14 ant
# Build LatestVersion.jar
(cd jars/LatestVersion && ant)
# Build QuickNotepad.jar
(cd jars/QuickNotepad && ant)
# Create installer filelists
sh installer/mk_filelist.sh
%install
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
export CLASSPATH="."
java installer.Install auto $RPM_BUILD_ROOT%{_datadir}/jedit/%{version} \
$RPM_BUILD_ROOT%{_bindir}
sed -e "s^@JEDIT_HOME@^"%{_datadir}"/jedit/"%{version}"^g" < %{SOURCE1} > \
$RPM_BUILD_ROOT%{_bindir}/jedit
chmod +x $RPM_BUILD_ROOT%{_bindir}/jedit
%clean
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
%files
%{_bindir}/jedit
%{_datadir}/jedit/%{version}