Remove files with proprietary license headers
Resolves: rhbz#1986062
This commit is contained in:
parent
6f094be1ec
commit
9f249e5547
@ -1,98 +0,0 @@
|
||||
diff -up antlr-2.7.7/examples/java/unicode.IDENTs/ShowString.java.licensefix antlr-2.7.7/examples/java/unicode.IDENTs/ShowString.java
|
||||
--- antlr-2.7.7/examples/java/unicode.IDENTs/ShowString.java.licensefix 2012-08-16 10:16:12.157567962 -0400
|
||||
+++ antlr-2.7.7/examples/java/unicode.IDENTs/ShowString.java 2012-08-16 10:17:46.425574161 -0400
|
||||
@@ -1,19 +1,33 @@
|
||||
|
||||
/*
|
||||
- * Copyright (c) 1995-1998 Sun Microsystems, Inc. All Rights Reserved.
|
||||
+ * Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
- * Permission to use, copy, modify, and distribute this software
|
||||
- * and its documentation for NON-COMMERCIAL purposes and without
|
||||
- * fee is hereby granted provided that this copyright notice
|
||||
- * appears in all copies. Please refer to the file "copyright.html"
|
||||
- * for further important copyright and licensing information.
|
||||
+ * Redistribution and use in source and binary forms, with or without
|
||||
+ * modification, are permitted provided that the following conditions
|
||||
+ * are met:
|
||||
*
|
||||
- * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
|
||||
- * THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
||||
- * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
||||
- * PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR
|
||||
- * ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
|
||||
- * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
|
||||
+ * - Redistributions of source code must retain the above copyright
|
||||
+ * notice, this list of conditions and the following disclaimer.
|
||||
+ *
|
||||
+ * - Redistributions in binary form must reproduce the above copyright
|
||||
+ * notice, this list of conditions and the following disclaimer in the
|
||||
+ * documentation and/or other materials provided with the distribution.
|
||||
+ *
|
||||
+ * - Neither the name of Oracle or the names of its
|
||||
+ * contributors may be used to endorse or promote products derived
|
||||
+ * from this software without specific prior written permission.
|
||||
+ *
|
||||
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
||||
+ * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
+ * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
import java.awt.*;
|
||||
diff -up antlr-2.7.7/examples/java/unicode.IDENTs/StreamConverter.java.licensefix antlr-2.7.7/examples/java/unicode.IDENTs/StreamConverter.java
|
||||
--- antlr-2.7.7/examples/java/unicode.IDENTs/StreamConverter.java.licensefix 2012-08-16 10:18:24.649576674 -0400
|
||||
+++ antlr-2.7.7/examples/java/unicode.IDENTs/StreamConverter.java 2012-08-16 10:18:49.002578275 -0400
|
||||
@@ -1,19 +1,33 @@
|
||||
|
||||
/*
|
||||
- * Copyright (c) 1995-1998 Sun Microsystems, Inc. All Rights Reserved.
|
||||
+ * Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
- * Permission to use, copy, modify, and distribute this software
|
||||
- * and its documentation for NON-COMMERCIAL purposes and without
|
||||
- * fee is hereby granted provided that this copyright notice
|
||||
- * appears in all copies. Please refer to the file "copyright.html"
|
||||
- * for further important copyright and licensing information.
|
||||
+ * Redistribution and use in source and binary forms, with or without
|
||||
+ * modification, are permitted provided that the following conditions
|
||||
+ * are met:
|
||||
*
|
||||
- * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
|
||||
- * THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
||||
- * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
||||
- * PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR
|
||||
- * ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
|
||||
- * DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
|
||||
+ * - Redistributions of source code must retain the above copyright
|
||||
+ * notice, this list of conditions and the following disclaimer.
|
||||
+ *
|
||||
+ * - Redistributions in binary form must reproduce the above copyright
|
||||
+ * notice, this list of conditions and the following disclaimer in the
|
||||
+ * documentation and/or other materials provided with the distribution.
|
||||
+ *
|
||||
+ * - Neither the name of Oracle or the names of its
|
||||
+ * contributors may be used to endorse or promote products derived
|
||||
+ * from this software without specific prior written permission.
|
||||
+ *
|
||||
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
||||
+ * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
+ * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
import java.io.*;
|
@ -4,7 +4,7 @@
|
||||
Summary: ANother Tool for Language Recognition
|
||||
Name: antlr
|
||||
Version: 2.7.7
|
||||
Release: 66%{?dist}
|
||||
Release: 67%{?dist}
|
||||
License: ANTLR-PD
|
||||
URL: http://www.antlr2.org/
|
||||
# ./generate-tarball.sh
|
||||
@ -15,8 +15,6 @@ Source3: http://repo2.maven.org/maven2/antlr/antlr/%{version}/%{name}-%{ve
|
||||
# Repack the tarball without prebuilt binaries of unknown origin
|
||||
Source4: generate-tarball.sh
|
||||
Patch1: %{name}-%{version}-newgcc.patch
|
||||
# see BZ#848662
|
||||
Patch2: antlr-examples-license.patch
|
||||
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: make
|
||||
@ -73,7 +71,6 @@ This package provides a static C++ library for parsers generated by ANTLR2.
|
||||
find . -name "*.jar" -exec rm -f {} \;
|
||||
cp -p %{SOURCE1} build.xml
|
||||
%patch1
|
||||
%patch2 -p1
|
||||
# CRLF->LF
|
||||
sed -i 's/\r//' LICENSE.txt
|
||||
|
||||
@ -130,6 +127,9 @@ install -p -m 755 scripts/antlr-config $RPM_BUILD_ROOT%{_bindir}
|
||||
%license LICENSE.txt
|
||||
|
||||
%changelog
|
||||
* Thu Jul 29 2021 Marian Koncek <mkoncek@redhat.com> - 2.7.7-67
|
||||
- Remove files with proprietary license headers
|
||||
|
||||
* Mon Jun 28 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.7.7-66
|
||||
- Remove Python runtime
|
||||
|
||||
|
@ -20,6 +20,10 @@ find -name '*.exe' -delete
|
||||
find -name '*.dll' -delete
|
||||
find -name '*.so' -delete
|
||||
|
||||
# rhbz#1986062
|
||||
rm "antlr-${version}/examples/java/unicode.IDENTs/StreamConverter.java"
|
||||
rm "antlr-${version}/examples/java/unicode.IDENTs/ShowString.java"
|
||||
|
||||
tar -czf "../${name}-${version}.tar.gz" *
|
||||
cd ..
|
||||
rm -r tarball-tmp "${name}-${version}.orig.tar.gz"
|
||||
|
2
sources
2
sources
@ -1,2 +1,2 @@
|
||||
SHA512 (antlr-2.7.7.tar.gz) = 7e05d440513663dab1960974ac61694552583bdd20d6eac2bff27f5142b118a26022d910b44312cdac9164b087c7cd4d1c8325e1ec914f9704b3cdd5f4b2b166
|
||||
SHA512 (antlr-2.7.7.tar.gz) = 61bde2df9e7dc369974c1af60db9ed37116d69ada24689e0ddd831edc99c759edc13b8db5f52a00d794c7c7133481ccecbdbb49152cfb73d05a72470fd81834b
|
||||
SHA512 (antlr-2.7.7.pom) = 4a34de18bee216852f43efddcd3bced1708548ebff7372b4ec4ecb6c289b36190b4d0d5588b86f9b65b3bc64756290b66bf1d6d9ed49d0cb8b972921829cba9e
|
||||
|
Loading…
Reference in New Issue
Block a user