From: František Dvořák Date: Tue, 6 Sep 2016 12:21:37 +0000 (+0200) Subject: Initial import. X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=92a2776a5dc0605d50cc745c592f43fe13b05535;p=packaging-rpm-jOCCI.git Initial import. --- 92a2776a5dc0605d50cc745c592f43fe13b05535 diff --git a/bouncycastle1.46/bouncycastle1.46.spec b/bouncycastle1.46/bouncycastle1.46.spec new file mode 100644 index 0000000..411ae93 --- /dev/null +++ b/bouncycastle1.46/bouncycastle1.46.spec @@ -0,0 +1,110 @@ +%global ver 1.46 +%global jarver %(echo %{ver}|sed 's|\\\.||') +%global archivever jdk16-%(echo %{ver}|sed 's|\\\.||') +%global classname org.bouncycastle.jce.provider.BouncyCastleProvider + +Name: bouncycastle1.46 +Version: %{ver} +Release: 1%{?dist} +Summary: Bouncy Castle Crypto Package for Java + +Group: System Environment/Libraries +License: MIT +URL: http://www.bouncycastle.org/ +# Use original sources from here on out. +Source0: http://www.bouncycastle.org/download/bcprov-%{archivever}.tar.gz +Source1: http://repo2.maven.org/maven2/org/bouncycastle/bcprov-jdk16/%{version}/bcprov-jdk16-%{version}.pom + +BuildArch: noarch +BuildRequires: jpackage-utils +BuildRequires: java-devel +BuildRequires: junit + +Provides: bcprov = %{version}-%{release} +Provides: bcprov%{jarver} = %{version}-%{release} + +%description +The Bouncy Castle Crypto package is a Java implementation of cryptographic +algorithms. The package is organised so that it contains a light-weight API +suitable for use in any environment (including the newly released J2ME) with +the additional infrastructure to conform the algorithms to the JCE framework. + + +%package javadoc +Summary: Javadoc for %{name} +Group: Documentation +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description javadoc +API documentation for the %{name} package. + + +%prep +%setup -q -n bcprov-%{archivever} + +mkdir src +unzip -qq src.zip -d src/ + +cp -p %{SOURCE1} pom.xml + +# Remove provided binaries +find . -type f -name "*.class" -exec rm -f {} \; +find . -type f -name "*.jar" -exec rm -f {} \; + + +%build +pushd src + export CLASSPATH=$(build-classpath junit) + %javac -g -source 1.6 -target 1.6 -encoding UTF-8 $(find . -type f -name "*.java") + jarfile="../bcprov%{jarver}.jar" + # Exclude all */test/* files except org.bouncycastle.util.test, cf. upstream + files="$(find . -type f \( -name '*.class' -o -name '*.properties' \) -not -path '*/test/*')" + files="$files $(find . -type f -path '*/org/bouncycastle/util/test/*.class')" + files="$files $(find . -type f -path '*/org/bouncycastle/jce/provider/test/*.class')" + files="$files $(find . -type f -path '*/org/bouncycastle/ocsp/test/*.class')" + test ! -d classes && mf="" \ + || mf="`find classes/ -type f -name "*.mf" 2>/dev/null`" + test -n "$mf" && jar cvfm $jarfile $mf $files \ + || %jar cvf $jarfile $files +popd + + +%install +# install bouncy castle provider +install -dm 755 $RPM_BUILD_ROOT%{_javadir} +install -pm 644 bcprov%{jarver}.jar \ + $RPM_BUILD_ROOT%{_javadir}/ + +# javadoc +mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name} +cp -pr docs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name} + +# maven pom +install -dm 755 $RPM_BUILD_ROOT%{_mavenpomdir} +install -pm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-bcprov%{jarver}.pom +%add_maven_depmap JPP-bcprov%{jarver}.pom bcprov%{jarver}.jar + + +%check +pushd src + export CLASSPATH=$PWD:$(build-classpath junit4) + for test in $(find . -name AllTests.class) ; do + test=${test#./} ; test=${test%.class} ; test=${test//\//.} + # TODO: failures; get them fixed and remove || : + %java org.junit.runner.JUnitCore $test || : + done +popd + + +%files -f .mfiles +%license LICENSE.html +%doc CONTRIBUTORS.html index.html releasenotes.html specifications.html + +%files javadoc +%{_javadocdir}/%{name}/ + + +%changelog +* Wed Aug 10 2016 FrantiÅ¡ek Dvořák - 1.46-1 +- Initial package (based on Fedora/EPEL) diff --git a/httpcomponents-client4.3/httpcomponents-client4.3.spec b/httpcomponents-client4.3/httpcomponents-client4.3.spec new file mode 100644 index 0000000..bf4dbc0 --- /dev/null +++ b/httpcomponents-client4.3/httpcomponents-client4.3.spec @@ -0,0 +1,52 @@ +Name: httpcomponents-client4.3 +Version: 4.3.6 +Release: 1.maven%{?dist} +Summary: HTTP agent implementation based on httpcomponents HttpCore + +License: ASL 2.0 +URL: http://hc.apache.org/ +Source0: http://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpclient/4.3.6/httpclient-4.3.6.jar +Source1: http://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpclient/4.3.6/httpclient-4.3.6.pom + +BuildArch: noarch +BuildRequires: maven-local +BuildRequires: mvn(org.apache.httpcomponents:project:pom:) +Requires: mvn(org.apache.httpcomponents:httpcore:4.3) + +%description +HttpClient is a HTTP/1.1 compliant HTTP agent implementation based on +httpcomponents HttpCore. It also provides reusable components for client-side +authentication, HTTP state management, and HTTP connection management. +HttpComponents Client is a successor of and replacement for Commons HttpClient +3.x. Users of Commons HttpClient are strongly encouraged to upgrade. + +This is a compatibility package for version 4.3.x. + + +%prep +%setup -q -c -n %{name}-%{version} + +cp -vp %{SOURCE1} pom.xml + +%pom_remove_dep org.apache.httpcomponents:httpcore +%pom_add_dep org.apache.httpcomponents:httpcore:4.3 + +%mvn_compat_version org.apache.httpcomponents:httpclient 4.3 +%mvn_artifact pom.xml %{SOURCE0} + + +%build + + +%install +%mvn_install + + +%files -f .mfiles +%license META-INF/LICENSE META-INF/NOTICE +%dir %{_javadir}/%{name}/ + + +%changelog +* Mon Sep 05 2016 FrantiÅ¡ek Dvořák - 4.3.6-1.maven +- Initial package diff --git a/httpcomponents-core4.3/httpcomponents-core4.3.spec b/httpcomponents-core4.3/httpcomponents-core4.3.spec new file mode 100644 index 0000000..b84e6aa --- /dev/null +++ b/httpcomponents-core4.3/httpcomponents-core4.3.spec @@ -0,0 +1,50 @@ +Name: httpcomponents-core4.3 +Version: 4.3.3 +Release: 1.maven%{?dist} +Summary: Set of low level Java HTTP transport components for HTTP services + +License: ASL 2.0 +URL: http://hc.apache.org/ +Source0: http://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcore/4.3.3/httpcore-4.3.3.jar +Source1: http://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcore/4.3.3/httpcore-4.3.3.pom + +BuildArch: noarch +BuildRequires: maven-local +BuildRequires: mvn(org.apache.httpcomponents:project:pom:) + +%description +HttpCore is a set of low level HTTP transport components that can be used to +build custom client and server side HTTP services with a minimal footprint. +HttpCore supports two I/O models: blocking I/O model based on the classic Java +I/O and non-blocking, event driven I/O model based on Java NIO. The blocking +I/O model may be more appropriate for data intensive, low latency scenarios, +whereas the non-blocking model may be more appropriate for high latency +scenarios where raw data throughput is less important than the ability to +handle thousands of simultaneous HTTP connections in a resource efficient +manner. + +This is a compatibility package for version 4.3.x. + + +%prep +%setup -q -c -n %{name}-%{version} + +%mvn_compat_version org.apache.httpcomponents:httpcore 4.3 +%mvn_artifact %{SOURCE1} %{SOURCE0} + + +%build + + +%install +%mvn_install + + +%files -f .mfiles +%license META-INF/LICENSE META-INF/NOTICE +%dir %{_javadir}/%{name}/ + + +%changelog +* Mon Sep 05 2016 FrantiÅ¡ek Dvořák - 4.3.3-1.maven +- Initial package diff --git a/jOCCI-api/jOCCI-api.spec b/jOCCI-api/jOCCI-api.spec new file mode 100644 index 0000000..40391f1 --- /dev/null +++ b/jOCCI-api/jOCCI-api.spec @@ -0,0 +1,83 @@ +%global commit0 19063c18b4f14cc438e751dee281687955c1039d +%global gittag0 jocci-api-0.2.6 +%global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) + +%global use_tests 1 + +Name: jOCCI-api +Version: 0.2.6 +Release: 1%{?dist} +Summary: Java OCCI library + +License: ASL 2.0 +URL: https://github.com/EGI-FCTF/jOCCI-api +Source0: https://github.com/EGI-FCTF/%{name}/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz + +BuildArch: noarch +BuildRequires: maven-local +BuildRequires: mvn(cz.cesnet.cloud:jocci-core) +BuildRequires: mvn(com.google.code.gson:gson) +%if 0%{?use_tests} +# for downloading dependencies +BuildRequires: maven +BuildRequires: mvn(junit:junit) +# not available +#BuildRequires: mvn(com.github.tomakehurst:wiremock) +%endif +BuildRequires: mvn(org.apache.httpcomponents:httpclient:4.3) +BuildRequires: mvn(org.bouncycastle:bcprov-jdk16) = 1.46 +BuildRequires: mvn(org.slf4j:slf4j-log4j12) + +%description +jOCCI-api is a java library implementing transport functions for rendered OCCI +(Open Cloud Computing Interface) queries. It's built on top of jOCCI-core and +currently provides HTTP transport functionality with set of authentication +methods and basic requesting interface to easily communicate with OCCI servers. + + +%package javadoc +Summary: Javadoc for %{name} +Requires: %{name} = %{version}-%{release} + +%description javadoc +This package contains the API documentation for %{name}. + + +%prep +%setup -q -n %{name}-%{commit0} + +%pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin + + +%build +%pom_remove_dep org.apache.httpcomponents:httpclient +%pom_add_dep org.apache.httpcomponents:httpclient:4.3 + +%if 0%{?use_tests} +mvn dependency:copy-dependencies +find ~/.m2 -type d -name bcprov\* -exec rm -rvf {} \; || : +find ~/.m2 -type d -name httpcore -exec rm -rvf {} \; || : +find ~/.m2 -type d -name httpclient -exec rm -rvf {} \; || : +find ~/.m2 -type d -name jocci\* -exec rm -rvf {} \; || : +find ~/.m2 -type d -name junit\* -exec rm -rvf {} \; || : +%mvn_build +%else +%mvn_build -f +%endif + + +%install +%mvn_install + + +%files -f .mfiles +%license LICENSE +%doc README.md +%dir %{_javadir}/%{name}/ + +%files javadoc -f .mfiles-javadoc + + +%changelog +* Mon Sep 05 2016 FrantiÅ¡ek Dvořák - 0.2.6-1 +- Initial package diff --git a/jOCCI-core/jOCCI-core.spec b/jOCCI-core/jOCCI-core.spec new file mode 100644 index 0000000..b539a60 --- /dev/null +++ b/jOCCI-core/jOCCI-core.spec @@ -0,0 +1,64 @@ +%global commit0 e5548502204f5ce97c7a4035a937564428820a07 +%global gittag0 jocci-core-0.2.4 +%global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) + +Name: jOCCI-core +Version: 0.2.4 +Release: 1%{?dist} +Summary: Java OCCI framework + +License: ASL 2.0 +URL: https://github.com/EGI-FCTF/jOCCI-core +Source0: https://github.com/EGI-FCTF/%{name}/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz + +BuildArch: noarch +BuildRequires: maven-local +BuildRequires: mvn(junit:junit) +BuildRequires: mvn(org.slf4j:slf4j-api) +BuildRequires: mvn(org.slf4j:slf4j-log4j12) + +%description +jOCCI-core is a java-based implementation of the OCCI (Open Cloud Computing +Interface) standard. jOCCI-core currently implements: + +* classes defined by the OCCI Core model and methods for manipulating them +* methods for rendering plain-text or HTTP header representations of those + classes' instances +* methods for basic parsing of such renderings +* methods for validation of OCCI requests with respect to known models on + client-side + + +%package javadoc +Summary: Javadoc for %{name} +Requires: %{name} = %{version}-%{release} + +%description javadoc +This package contains the API documentation for %{name}. + + +%prep +%setup -q -n %{name}-%{commit0} + +%pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin + + +%build +%mvn_build + + +%install +%mvn_install + + +%files -f .mfiles +%license LICENSE +%doc README.md +%dir %{_javadir}/%{name}/ + +%files javadoc -f .mfiles-javadoc + + +%changelog +* Tue Aug 09 2016 FrantiÅ¡ek Dvořák - 0.2.4-1 +- Initial package