diff --git a/.gitignore b/.gitignore index e69de29..6ccaee9 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/opensaml-java-2.5.3.tar.xz diff --git a/opensaml-java.spec b/opensaml-java.spec new file mode 100644 index 0000000..82b9744 --- /dev/null +++ b/opensaml-java.spec @@ -0,0 +1,121 @@ +Name: opensaml-java +Version: 2.5.3 +Release: 2%{?dist} +Summary: Java OpenSAML library +License: ASL 2.0 +Group: Development/Libraries +URL: http://www.opensaml.org/ + +# svn export https://svn.shibboleth.net/java-opensaml2/tags/2.5.3/ opensaml-java-2.5.3 +# tar cafJ opensaml-java-2.5.3.tar.xz opensaml-java-2.5.3 +Source0: opensaml-java-%{version}.tar.xz + +BuildArch: noarch + +BuildRequires: java-devel +BuildRequires: jpackage-utils +BuildRequires: maven +BuildRequires: maven-compiler-plugin +BuildRequires: maven-install-plugin +BuildRequires: maven-jar-plugin +BuildRequires: maven-javadoc-plugin +BuildRequires: maven-release-plugin +BuildRequires: maven-resources-plugin +BuildRequires: maven-surefire-plugin +BuildRequires: opensaml-java-parent +BuildRequires: opensaml-java-openws +BuildRequires: owasp-esapi-java +BuildRequires: apache-commons-codec +BuildRequires: apache-commons-collections +BuildRequires: apache-commons-lang +BuildRequires: velocity +BuildRequires: joda-time +BuildRequires: xalan-j2 +BuildRequires: xerces-j2 +BuildRequires: xml-commons-resolver +BuildRequires: tomcat-servlet-3.0-api +BuildRequires: logback +BuildRequires: junit + +Requires: java +Requires: jpackage-utils +Requires: opensaml-java-openws +Requires: owasp-esapi-java +Requires: apache-commons-codec +Requires: apache-commons-collections +Requires: apache-commons-lang +Requires: velocity +Requires: joda-time +Requires: xalan-j2 +Requires: xerces-j2 +Requires: xml-commons-resolver +Requires: tomcat-servlet-3.0-api + +%description +OpenSAML is a set of open source C++ & Java libraries meant to support +developers working with the Security Assertion Markup Language (SAML). +OpenSAML 2, the current version, supports SAML 1.0, 1.1, and 2.0. + +%package javadoc +Summary: Javadocs for %{name} +Group: Documentation +Requires: jpackage-utils + +%description javadoc +This package contains the API documentation for %{name}. + +%prep +%setup -q -n opensaml-java-%{version} + +sed -i "s|\${xerces.groupId}|xerces|" pom.xml + +%pom_remove_dep "xerces:xml-apis" +%pom_remove_dep "xerces:serializer" +%pom_remove_dep "org.springframework:spring-mock" + +iconv -f iso8859-1 -t utf-8 doc/CREDITS.txt > doc/CREDITS.txt.conv +mv -f doc/CREDITS.txt.conv doc/CREDITS.txt + +%build +# No org.springframework:spring-mock available +mvn-rpmbuild \ + -Dproject.build.sourceEncoding=UTF-8 \ + -Dmaven.test.skip=true \ + package javadoc:aggregate + +%install + +install -d -m 755 %{buildroot}%{_javadir} +install -d -m 755 %{buildroot}%{_javadocdir}/%{name} +install -d -m 755 %{buildroot}%{_mavenpomdir} + +# jar +install -pm 644 target/opensaml-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar + +# pom +install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom + +# depmap +%add_maven_depmap JPP-%{name}.pom %{name}.jar + +# javadoc +cp -rp target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name} + +%files +%doc doc +%{_mavenpomdir}/* +%{_mavendepmapfragdir}/* +%{_javadir}/* + +%files javadoc +%doc doc +%{_javadocdir}/%{name} + +%changelog +* Mon Oct 22 2012 Marek Goldmann - 2.5.3-2 +- Removed macro in comment +- Fixed encoding + +* Tue Oct 09 2012 Marek Goldmann 2.5.3-1 +- Initial packaging + diff --git a/sources b/sources index e69de29..7e9bef3 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +eb30aff0497e9b72b11e9721b144ed4e opensaml-java-2.5.3.tar.xz