Compare commits

..

No commits in common. "rawhide" and "f22" have entirely different histories.

4 changed files with 81 additions and 1 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/unbescape-1.1.0.RELEASE.tar.gz

View file

@ -1 +0,0 @@
Orphaned for 6+ weeks

1
sources Normal file
View file

@ -0,0 +1 @@
d7b09e6632a1f157f7bfe9a40285535b unbescape-1.1.0.RELEASE.tar.gz

79
unbescape.spec Normal file
View file

@ -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@libero.it> 1.1.0-2
- remove unused files
* Sun Mar 08 2015 gil cattaneo <puntogil@libero.it> 1.1.0-1
- initial rpm