PageRenderTime 53ms CodeModel.GetById 50ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-2-pre4/jedit.spec

#
Unknown | 77 lines | 56 code | 21 blank | 0 comment | 0 complexity | 49904ec1b98560c9bec302efe6a48221 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.1pre9
16Release: 1
17# REMIND: bump this with each RPM; 32 == 4.1pre9
18Serial: 32
19Copyright: GPL
20Group: Applications/Editors
21Source0: http://prdownloads.sourceforge.net/jedit/jedit41pre9source.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 javadoc 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
64sed -e "s^@JEDIT_HOME@^"%{_datadir}"/jedit/"%{version}"^g" < %{SOURCE1} > \
65	$RPM_BUILD_ROOT%{_bindir}/jedit
66
67chmod +x $RPM_BUILD_ROOT%{_bindir}/jedit
68
69cp jedit.1 %{_mandir}/man1/jedit.1
70
71%clean
72[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
73
74%files
75%{_bindir}/jedit
76%{_datadir}/jedit/%{version}
77%{_mandir}/man1/jedit.1