[unbescape] Initial import (#1199839).

gil gil at fedoraproject.org
Mon Mar 23 13:49:20 UTC 2015


commit bbea5ccb90326512e8024eed215e0177988e49cd
Author: gil <puntogil at libero.it>
Date:   Mon Mar 23 14:49:10 2015 +0100

    Initial import (#1199839).

 .gitignore     |  1 +
 sources        |  1 +
 unbescape.spec | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 81 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..8686faa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/unbescape-1.1.0.RELEASE.tar.gz
diff --git a/sources b/sources
index e69de29..7e2ba1a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d7b09e6632a1f157f7bfe9a40285535b  unbescape-1.1.0.RELEASE.tar.gz
diff --git a/unbescape.spec b/unbescape.spec
new file mode 100644
index 0000000..03c5f9c
--- /dev/null
+++ b/unbescape.spec
@@ -0,0 +1,79 @@
+%global namedreltag .RELEASE
+%global namedversion %{version}%{?namedreltag}
+Name:          unbescape
+Version:       1.1.0
+Release:       2%{?dist}
+Summary:       Advanced yet easy to use escaping library for Java
+License:       ASL 2.0
+URL:           http://www.unbescape.org/
+Source0:       https://github.com/unbescape/unbescape/archive/%{name}-%{namedversion}.tar.gz
+
+BuildRequires: maven-local
+BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
+
+BuildArch:     noarch
+
+%description
+Unbescape is a Java library aimed at performing fully-featured and
+high-performance escape and unescape operations for:
+
+° HTML (HTML5 and HTML 4)
+° XML (XML 1.0 and XML 1.1)
+° JavaScript
+° JSON
+° URI/URL (both paths and query parameters)
+° CSS (both identifiers and string literals)
+° CSV (Comma-Separated Values)
+° Java literals
+° Java .properties files (both keys and values)
+
+%package javadoc
+Summary:       Javadoc for %{name}
+
+%description javadoc
+This package contains javadoc for %{name}.
+
+%prep
+%setup -q -n %{name}-%{name}-%{namedversion}
+find -name "*.class" -delete
+find -name "*.jar" -print -delete
+rm -r src/site/*
+
+%pom_remove_plugin :maven-assembly-plugin
+%pom_remove_plugin :maven-gpg-plugin
+%pom_remove_plugin :maven-site-plugin
+%pom_remove_plugin :maven-source-plugin
+%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-javadoc-plugin']/pom:executions"
+%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-javadoc-plugin']/pom:configuration/pom:reportOutputDirectory"
+
+%pom_xpath_set "pom:properties/pom:maven.compile.source" 1.6
+%pom_xpath_set "pom:properties/pom:maven.compile.target" 1.6
+
+# Default is US-ASCII
+%pom_xpath_set "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-compiler-plugin']/pom:configuration/pom:encoding" UTF-8
+%pom_xpath_set "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-resources-plugin']/pom:configuration/pom:encoding" UTF-8
+
+chmod 644 NOTICE.txt
+
+%mvn_file : %{name}
+
+%build
+
+%mvn_build -- -Dproject.build.sourceEncoding=UTF-8
+
+%install
+%mvn_install
+
+%files -f .mfiles
+%doc ChangeLog.txt CONTRIBUTING.markdown README.markdown RELEASING.txt USAGE.txt
+%license LICENSE.txt NOTICE.txt
+
+%files javadoc -f .mfiles-javadoc
+%license LICENSE.txt NOTICE.txt
+
+%changelog
+* Thu Mar 19 2015 gil cattaneo <puntogil at libero.it> 1.1.0-2
+- remove unused files
+
+* Sun Mar 08 2015 gil cattaneo <puntogil at libero.it> 1.1.0-1
+- initial rpm


More information about the scm-commits mailing list