|
1 | 1 | Vendor: Microsoft Corporation |
2 | 2 | Distribution: Azure Linux |
| 3 | +# Copyright (c) 2000-2005, JPackage Project |
| 4 | +# All rights reserved. |
3 | 5 | # |
4 | | -# spec file for package jlex |
| 6 | +# Redistribution and use in source and binary forms, with or without |
| 7 | +# modification, are permitted provided that the following conditions |
| 8 | +# are met: |
5 | 9 | # |
6 | | -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. |
| 10 | +# 1. Redistributions of source code must retain the above copyright |
| 11 | +# notice, this list of conditions and the following disclaimer. |
| 12 | +# 2. Redistributions in binary form must reproduce the above copyright |
| 13 | +# notice, this list of conditions and the following disclaimer in the |
| 14 | +# documentation and/or other materials provided with the |
| 15 | +# distribution. |
| 16 | +# 3. Neither the name of the JPackage Project nor the names of its |
| 17 | +# contributors may be used to endorse or promote products derived |
| 18 | +# from this software without specific prior written permission. |
7 | 19 | # |
8 | | -# All modifications and additions to the file contributed by third parties |
9 | | -# remain the property of their copyright owners, unless otherwise agreed |
10 | | -# upon. The license for this file, and modifications and additions to the |
11 | | -# file, is the same license as for the pristine package itself (unless the |
12 | | -# license for the pristine package is not an Open Source License, in which |
13 | | -# case the license is the MIT License). An "Open Source License" is a |
14 | | -# license that conforms to the Open Source Definition (Version 1.9) |
15 | | -# published by the Open Source Initiative. |
16 | | - |
17 | | -# Please submit bugfixes or comments via http://bugs.opensuse.org/ |
| 20 | +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 21 | +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 22 | +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 23 | +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 24 | +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 25 | +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 26 | +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 27 | +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 28 | +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 29 | +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 30 | +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
18 | 31 | # |
19 | 32 |
|
20 | | - |
21 | | -%define section free |
22 | 33 | Name: jlex |
23 | 34 | Version: 1.2.6 |
24 | | -Release: 285%{?dist} |
| 35 | +Release: 286%{?dist} |
25 | 36 | Summary: A Lexical Analyzer Generator for Java |
26 | | -License: MIT |
27 | | -Group: Development/Libraries/Java |
28 | | -Url: http://www.cs.princeton.edu/~appel/modern/java/JLex/ |
29 | | -Source0: http://www.cs.princeton.edu/~appel/modern/java/JLex/Archive/1.2.5/Main.java |
| 37 | +License: BSD |
| 38 | +Group: Development/Libraries |
| 39 | +URL: http://www.cs.princeton.edu/~appel/modern/java/JLex |
| 40 | +Source0: %{url}/Archive/%{version}/Main.java |
30 | 41 | Source1: %{name}-%{version}.build.xml |
| 42 | +Source2: %{url}/Archive/%{version}/manual.html |
| 43 | +Source3: %{url}/Archive/%{version}/sample.lex |
31 | 44 | Patch0: %{name}-%{version}.static.patch |
32 | | -BuildRequires: ant |
33 | | -BuildRequires: java-devel |
34 | | -BuildRequires: javapackages-tools |
35 | | -BuildRequires: xml-commons-apis-bootstrap |
36 | | -#!BuildIgnore: xerces-j2 |
37 | | -#!BuildIgnore: xml-commons |
38 | | -#!BuildIgnore: xml-commons-apis |
39 | | -#!BuildIgnore: xml-commons-jaxp-1.3-apis |
40 | | -#!BuildIgnore: xml-commons-resolver |
41 | | -#!BuildIgnore: xml-commons-resolver12 |
42 | | -BuildArch: noarch |
| 45 | + |
| 46 | +BuildRequires: ant |
| 47 | +BuildRequires: java-devel |
| 48 | +BuildRequires: jpackage-utils |
| 49 | + |
| 50 | +Requires: java |
| 51 | +Requires: jpackage-utils |
| 52 | + |
| 53 | +BuildArch: noarch |
43 | 54 |
|
44 | 55 | %description |
45 | | -JLex is a lexical analyzer generator for Java. |
| 56 | +JLex is a Lexical Analyzer Generator for Java. |
| 57 | + |
| 58 | +%package javadoc |
| 59 | +Group: Documentation |
| 60 | +Summary: Javadoc for %{name} |
| 61 | +Requires: jpackage-utils |
| 62 | + |
| 63 | +%description javadoc |
| 64 | +Javadoc for %{name}. |
46 | 65 |
|
47 | 66 | %prep |
48 | | -%setup -q -c -T |
| 67 | +%setup -c -T |
49 | 68 | cp %{SOURCE0} . |
| 69 | +cp %{SOURCE2} . |
| 70 | +cp %{SOURCE3} . |
50 | 71 | %patch 0 |
51 | 72 | cp %{SOURCE1} build.xml |
52 | 73 |
|
53 | 74 | %build |
54 | | -unset CLASSPATH |
55 | | -ant -Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 |
| 75 | +ant |
56 | 76 |
|
57 | 77 | %install |
58 | 78 | # jar |
59 | | -install -d -m 755 %{buildroot}%{_javadir} |
60 | | -install -m 644 dist/lib/%{name}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar |
61 | | -(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done) |
| 79 | +install -pD -T dist/lib/%{name}.jar \ |
| 80 | + %{buildroot}%{_javadir}/%{name}.jar |
| 81 | + |
| 82 | +# javadoc |
| 83 | +install -d -m 755 %{buildroot}%{_javadocdir}/%{name} |
| 84 | +cp -pr dist/docs/api/* %{buildroot}%{_javadocdir}/%{name} |
| 85 | + |
| 86 | +%pre javadoc |
| 87 | +# workaround for rpm bug, can be removed in F-17 |
| 88 | +[ $1 -gt 1 ] && [ -L %{_javadocdir}/%{name} ] && \ |
| 89 | +rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || : |
62 | 90 |
|
63 | 91 | %files |
64 | | -%license Main.java |
65 | | -%{_javadir}/* |
| 92 | +%defattr(-,root,root,-) |
| 93 | +%{_javadir}/%{name}.jar |
| 94 | +%doc manual.html sample.lex |
| 95 | + |
| 96 | +%files javadoc |
| 97 | +%defattr(-,root,root,-) |
| 98 | +%{_javadocdir}/%{name} |
66 | 99 |
|
67 | 100 | %changelog |
| 101 | +* Mon Feb 24 2025 Sumit Jena <v-sumitjena@microsoft.com> - 1.2.6-286 |
| 102 | +- Build fix for 1.2.6 |
| 103 | +- License verified |
| 104 | + |
68 | 105 | * Tue Apr 12 2022 Pawel Winogrodzki <pawelwi@microsoft.com> - 1.2.6-285 |
69 | 106 | - Adding missing BR on 'javapackages-tools'. |
70 | 107 |
|
|
0 commit comments