PageRenderTime 47ms CodeModel.GetById 45ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/jEdit/tags/jedit-4-1-pre5/jedit.spec

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