diff --git a/Release-0.9.3.tar.gz b/Release-0.9.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..d7a2dd5f0ee728707435b68e1ebaa57f83b5f029 Binary files /dev/null and b/Release-0.9.3.tar.gz differ diff --git a/jets3t-0.9.0-nuvola-fsf-address.patch b/jets3t-0.9.0-nuvola-fsf-address.patch new file mode 100644 index 0000000000000000000000000000000000000000..d75a2926b5e1cd75427c95df13068423042e2f9b --- /dev/null +++ b/jets3t-0.9.0-nuvola-fsf-address.patch @@ -0,0 +1,20 @@ +--- resources/images/nuvola/license.txt 2012-08-09 17:45:42.000000000 +0200 ++++ resources/images/nuvola/license.txt-gil 2012-08-09 19:35:30.476198569 +0200 +@@ -2,7 +2,7 @@ + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. +- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ++ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +@@ -485,7 +485,7 @@ + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software +- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ++ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + + Also add information on how to contact you by electronic and paper mail. + diff --git a/jets3t-0.9.3-dist-build.patch b/jets3t-0.9.3-dist-build.patch new file mode 100644 index 0000000000000000000000000000000000000000..8bd54a3c13a8b9fbb34e61714cd0148ef9d9f1bf --- /dev/null +++ b/jets3t-0.9.3-dist-build.patch @@ -0,0 +1,46 @@ +--- dist-build.xml 2015-02-19 01:31:42.961518206 +0100 ++++ dist-build.xml.dist-build 2015-02-19 01:31:49.743109520 +0100 +@@ -70,7 +70,21 @@ + Define the script-wide classpath. + ================================= --> + +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +@@ -425,6 +439,19 @@ + + + +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + diff --git a/jets3t-0.9.3-scripts.patch b/jets3t-0.9.3-scripts.patch new file mode 100644 index 0000000000000000000000000000000000000000..472cebe32c96a6dc22b66a377d24ae93fe4ecc22 --- /dev/null +++ b/jets3t-0.9.3-scripts.patch @@ -0,0 +1,240 @@ +diff -Nru jets3t-0.9.3/scripts/cockpitlite.sh jets3t-0.9.3.scripts/scripts/cockpitlite.sh +--- jets3t-0.9.3/scripts/cockpitlite.sh 2015-02-15 16:25:18.000000000 +0100 ++++ jets3t-0.9.3.scripts/scripts/cockpitlite.sh 2015-02-19 00:53:49.130021484 +0100 +@@ -8,7 +8,7 @@ + # Java Development Kit to use. + # ------------------------------------------------------------------- + +-: ${JETS3T_HOME:-""} ++: ${JETS3T_HOME:="/usr/share/jets3t"} + : ${JAVA_HOME:-""} + + # Check the JETS3T_HOME directory +@@ -33,8 +33,7 @@ + # Test whether the 'java' program is available in the system path. + java -version 2> /dev/null + if [ $? -gt 0 ]; then +- echo "Please set the environment variable JAVA_HOME" +- exit 1 ++ export JAVA_HOME="/usr/lib/jvm/java" + else + EXEC=java + fi +@@ -50,16 +49,28 @@ + # Include resources directory in classpath + CP=$CP:$JETS3T_HOME/resources + ++# System libraries path ++: ${JAVA_LIBS:="/usr/share/java"} ++ + # Include libraries in classpath +-CP=$CP:$JETS3T_HOME/jars/jets3t-{jets3t-version}.jar +-CP=$CP:$JETS3T_HOME/jars/jets3t-gui-{jets3t-version}.jar +-CP=$CP:$JETS3T_HOME/jars/cockpitlite-{jets3t-version}.jar +-CP=$CP:$JETS3T_HOME/libs/commons-logging/commons-logging-1.1.3.jar +-CP=$CP:$JETS3T_HOME/libs/commons-codec/commons-codec-1.8.jar +-CP=$CP:$JETS3T_HOME/libs/httpcomponents/httpclient-4.3.6.jar +-CP=$CP:$JETS3T_HOME/libs/httpcomponents/httpcore-4.3.3.jar +-CP=$CP:$JETS3T_HOME/libs/logging-log4j/log4j-1.2.15.jar +-CP=$CP:$JETS3T_HOME/libs/bouncycastle/bcprov-jdk14-138.jar ++CP=$CP:$JAVA_LIBS/jets3t/jets3t.jar ++CP=$CP:$JAVA_LIBS/commons-logging.jar ++CP=$CP:$JAVA_LIBS/commons-codec.jar ++CP=$CP:$JAVA_LIBS/httpcomponents/httpclient.jar ++CP=$CP:$JAVA_LIBS/httpcomponents/httpcore.jar ++CP=$CP:$JAVA_LIBS/log4j12-1.2.17.jar ++CP=$CP:$JAVA_LIBS/bcprov.jar ++CP=$CP:$JAVA_LIBS/java-xmlbuilder.jar ++CP=$CP:$JAVA_LIBS/base64.jar ++CP=$CP:$JAVA_LIBS/BareBonesBrowserLaunch.jar ++CP=$CP:$JAVA_LIBS/jackson/jackson-core-asl.jar ++CP=$CP:$JAVA_LIBS/jackson/jackson-mapper-asl.jar ++CP=$CP:$JAVA_LIBS/mx4j/mx4j.jar ++CP=$CP:$JAVA_LIBS/javamail/mail.jar ++CP=$CP:$JAVA_LIBS/avalon-framework-api.jar ++CP=$CP:$JAVA_LIBS/avalon-logkit.jar ++CP=$CP:$JAVA_LIBS/glassfish-servlet-api.jar ++CP=$CP:$JAVA_LIBS/jms.jar + + # Convert classpath for cygwin bash + case "`uname -s`" in +diff -Nru jets3t-0.9.3/scripts/cockpit.sh jets3t-0.9.3.scripts/scripts/cockpit.sh +--- jets3t-0.9.3/scripts/cockpit.sh 2015-02-15 16:25:18.000000000 +0100 ++++ jets3t-0.9.3.scripts/scripts/cockpit.sh 2015-02-19 00:49:36.898974304 +0100 +@@ -8,7 +8,7 @@ + # Java Development Kit to use. + # ------------------------------------------------------------------- + +-: ${JETS3T_HOME:-""} ++: ${JETS3T_HOME:="/usr/share/jets3t"} + : ${JAVA_HOME:-""} + + # Check the JETS3T_HOME directory +@@ -33,8 +33,7 @@ + # Test whether the 'java' program is available in the system path. + java -version 2> /dev/null + if [ $? -gt 0 ]; then +- echo "Please set the environment variable JAVA_HOME" +- exit 1 ++ export JAVA_HOME="/usr/lib/jvm/java" + else + EXEC=java + fi +@@ -50,17 +49,28 @@ + # Include resources directory in classpath + CP=$CP:$JETS3T_HOME/resources + ++# System libraries path ++: ${JAVA_LIBS:="/usr/share/java"} ++ + # Include libraries in classpath +-CP=$CP:$JETS3T_HOME/jars/jets3t-{jets3t-version}.jar +-CP=$CP:$JETS3T_HOME/jars/jets3t-gui-{jets3t-version}.jar +-CP=$CP:$JETS3T_HOME/jars/cockpit-{jets3t-version}.jar +-CP=$CP:$JETS3T_HOME/libs/commons-logging/commons-logging-1.1.3.jar +-CP=$CP:$JETS3T_HOME/libs/commons-codec/commons-codec-1.8.jar +-CP=$CP:$JETS3T_HOME/libs/httpcomponents/httpclient-4.3.6.jar +-CP=$CP:$JETS3T_HOME/libs/httpcomponents/httpcore-4.3.3.jar +-CP=$CP:$JETS3T_HOME/libs/logging-log4j/log4j-1.2.15.jar +-CP=$CP:$JETS3T_HOME/libs/bouncycastle/bcprov-jdk14-138.jar +-CP=$CP:$JETS3T_HOME/libs/java-xmlbuilder/java-xmlbuilder-1.0.jar ++CP=$CP:$JAVA_LIBS/jets3t/jets3t.jar ++CP=$CP:$JAVA_LIBS/commons-logging.jar ++CP=$CP:$JAVA_LIBS/commons-codec.jar ++CP=$CP:$JAVA_LIBS/httpcomponents/httpclient.jar ++CP=$CP:$JAVA_LIBS/httpcomponents/httpcore.jar ++CP=$CP:$JAVA_LIBS/log4j12-1.2.17.jar ++CP=$CP:$JAVA_LIBS/bcprov.jar ++CP=$CP:$JAVA_LIBS/java-xmlbuilder.jar ++CP=$CP:$JAVA_LIBS/base64.jar ++CP=$CP:$JAVA_LIBS/BareBonesBrowserLaunch.jar ++CP=$CP:$JAVA_LIBS/jackson/jackson-core-asl.jar ++CP=$CP:$JAVA_LIBS/jackson/jackson-mapper-asl.jar ++CP=$CP:$JAVA_LIBS/mx4j/mx4j.jar ++CP=$CP:$JAVA_LIBS/javamail/mail.jar ++CP=$CP:$JAVA_LIBS/avalon-framework-api.jar ++CP=$CP:$JAVA_LIBS/avalon-logkit.jar ++CP=$CP:$JAVA_LIBS/glassfish-servlet-api.jar ++CP=$CP:$JAVA_LIBS/jms.jar + + # Convert classpath for cygwin bash + case "`uname -s`" in +diff -Nru jets3t-0.9.3/scripts/synchronize.sh jets3t-0.9.3.scripts/scripts/synchronize.sh +--- jets3t-0.9.3/scripts/synchronize.sh 2015-02-15 16:25:18.000000000 +0100 ++++ jets3t-0.9.3.scripts/scripts/synchronize.sh 2015-02-19 00:53:28.416221993 +0100 +@@ -8,7 +8,7 @@ + # Java Development Kit to use. + # ------------------------------------------------------------------- + +-: ${JETS3T_HOME:-""} ++: ${JETS3T_HOME:="/usr/share/jets3t"} + : ${JAVA_HOME:-""} + + # Check the JETS3T_HOME directory +@@ -33,8 +33,7 @@ + # Test whether the 'java' program is available in the system path. + java -version 2> /dev/null + if [ $? -gt 0 ]; then +- echo "Please set the environment variable JAVA_HOME" +- exit 1 ++ export JAVA_HOME="/usr/lib/jvm/java" + else + EXEC=java + fi +@@ -50,16 +49,28 @@ + # Include resources directory in classpath + CP=$CP:$JETS3T_HOME/resources + ++# System libraries path ++: ${JAVA_LIBS:="/usr/share/java"} ++ + # Include libraries in classpath +-CP=$CP:$JETS3T_HOME/jars/jets3t-{jets3t-version}.jar +-CP=$CP:$JETS3T_HOME/jars/synchronize-{jets3t-version}.jar +-CP=$CP:$JETS3T_HOME/libs/commons-logging/commons-logging-1.1.3.jar +-CP=$CP:$JETS3T_HOME/libs/commons-codec/commons-codec-1.8.jar +-CP=$CP:$JETS3T_HOME/libs/httpcomponents/httpclient-4.3.6.jar +-CP=$CP:$JETS3T_HOME/libs/httpcomponents/httpcore-4.3.3.jar +-CP=$CP:$JETS3T_HOME/libs/logging-log4j/log4j-1.2.15.jar +-CP=$CP:$JETS3T_HOME/libs/bouncycastle/bcprov-jdk14-138.jar +-CP=$CP:$JETS3T_HOME/libs/java-xmlbuilder/java-xmlbuilder-1.0.jar ++CP=$CP:$JAVA_LIBS/jets3t/jets3t.jar ++CP=$CP:$JAVA_LIBS/commons-logging.jar ++CP=$CP:$JAVA_LIBS/commons-codec.jar ++CP=$CP:$JAVA_LIBS/httpcomponents/httpclient.jar ++CP=$CP:$JAVA_LIBS/httpcomponents/httpcore.jar ++CP=$CP:$JAVA_LIBS/log4j12-1.2.17.jar ++CP=$CP:$JAVA_LIBS/bcprov.jar ++CP=$CP:$JAVA_LIBS/java-xmlbuilder.jar ++CP=$CP:$JAVA_LIBS/base64.jar ++CP=$CP:$JAVA_LIBS/BareBonesBrowserLaunch.jar ++CP=$CP:$JAVA_LIBS/jackson/jackson-core-asl.jar ++CP=$CP:$JAVA_LIBS/jackson/jackson-mapper-asl.jar ++CP=$CP:$JAVA_LIBS/mx4j/mx4j.jar ++CP=$CP:$JAVA_LIBS/javamail/mail.jar ++CP=$CP:$JAVA_LIBS/avalon-framework-api.jar ++CP=$CP:$JAVA_LIBS/avalon-logkit.jar ++CP=$CP:$JAVA_LIBS/glassfish-servlet-api.jar ++CP=$CP:$JAVA_LIBS/jms.jar + + # Convert classpath for cygwin bash + case "`uname -s`" in +diff -Nru jets3t-0.9.3/scripts/uploader.sh jets3t-0.9.3.scripts/scripts/uploader.sh +--- jets3t-0.9.3/scripts/uploader.sh 2015-02-15 16:25:18.000000000 +0100 ++++ jets3t-0.9.3.scripts/scripts/uploader.sh 2015-02-19 00:49:11.799467598 +0100 +@@ -8,7 +8,7 @@ + # Java Development Kit to use. + # ------------------------------------------------------------------- + +-: ${JETS3T_HOME:-""} ++: ${JETS3T_HOME:="/usr/share/jets3t"} + : ${JAVA_HOME:-""} + + # Check the JETS3T_HOME directory +@@ -33,8 +33,7 @@ + # Test whether the 'java' program is available in the system path. + java -version 2> /dev/null + if [ $? -gt 0 ]; then +- echo "Please set the environment variable JAVA_HOME" +- exit 1 ++ export JAVA_HOME="/usr/lib/jvm/java" + else + EXEC=java + fi +@@ -50,15 +49,28 @@ + # Include resources directory in classpath + CP=$CP:$JETS3T_HOME/resources + ++# System libraries path ++: ${JAVA_LIBS:="/usr/share/java"} ++ + # Include libraries in classpath +-CP=$CP:$JETS3T_HOME/jars/jets3t-{jets3t-version}.jar +-CP=$CP:$JETS3T_HOME/jars/jets3t-gui-{jets3t-version}.jar +-CP=$CP:$JETS3T_HOME/jars/uploader-{jets3t-version}.jar +-CP=$CP:$JETS3T_HOME/libs/commons-logging/commons-logging-1.1.3.jar +-CP=$CP:$JETS3T_HOME/libs/commons-codec/commons-codec-1.8.jar +-CP=$CP:$JETS3T_HOME/libs/httpcomponents/httpclient-4.3.2.jar +-CP=$CP:$JETS3T_HOME/libs/httpcomponents/httpcore-4.3.3.jar +-CP=$CP:$JETS3T_HOME/libs/logging-log4j/log4j-1.2.15.jar ++CP=$CP:$JAVA_LIBS/jets3t/jets3t.jar ++CP=$CP:$JAVA_LIBS/commons-logging.jar ++CP=$CP:$JAVA_LIBS/commons-codec.jar ++CP=$CP:$JAVA_LIBS/httpcomponents/httpclient.jar ++CP=$CP:$JAVA_LIBS/httpcomponents/httpcore.jar ++CP=$CP:$JAVA_LIBS/log4j12-1.2.17.jar ++CP=$CP:$JAVA_LIBS/bcprov.jar ++CP=$CP:$JAVA_LIBS/java-xmlbuilder.jar ++CP=$CP:$JAVA_LIBS/base64.jar ++CP=$CP:$JAVA_LIBS/BareBonesBrowserLaunch.jar ++CP=$CP:$JAVA_LIBS/jackson/jackson-core-asl.jar ++CP=$CP:$JAVA_LIBS/jackson/jackson-mapper-asl.jar ++CP=$CP:$JAVA_LIBS/mx4j/mx4j.jar ++CP=$CP:$JAVA_LIBS/javamail/mail.jar ++CP=$CP:$JAVA_LIBS/avalon-framework-api.jar ++CP=$CP:$JAVA_LIBS/avalon-logkit.jar ++CP=$CP:$JAVA_LIBS/glassfish-servlet-api.jar ++CP=$CP:$JAVA_LIBS/jms.jar + + # Convert classpath for cygwin bash + case "`uname -s`" in diff --git a/jets3t-cockpit.pod b/jets3t-cockpit.pod new file mode 100644 index 0000000000000000000000000000000000000000..21577892962dae6c4e6b6abb1c0bd9dea821ac9d --- /dev/null +++ b/jets3t-cockpit.pod @@ -0,0 +1,21 @@ +=head1 NAME + +jets3t-cockpit - transfer files, view and manage the contents of an Amazon S3 account + +=head1 SYNOPSIS + +jets3t-cockpit + +=head1 OVERVIEW + +Cockpit is a graphical Java application for viewing and managing the contents +of an Amazon S3 account. + +=head1 FILES + +F + +=head1 SEE ALSO + +L, +http://jets3t.s3.amazonaws.com/applications/cockpit.html diff --git a/jets3t-cockpitlite.pod b/jets3t-cockpitlite.pod new file mode 100644 index 0000000000000000000000000000000000000000..d335083bf249eac9041f132b04c3b81054190170 --- /dev/null +++ b/jets3t-cockpitlite.pod @@ -0,0 +1,24 @@ +=head1 NAME + +jets3t-cockpitlite - provide access to clients without Amazon S3 accounts + +=head1 SYNOPSIS + +jets3t-cockpitlite [= .. =] + +=head1 OVERVIEW + +A graphical application that Service Providers with S3 accounts may provide to +clients or customers without S3 accounts. CockpitLite allows users to manage +the content of an S3 account to upload files, download files, delete S3 objects +and make objects publicly accessible. All these operations are mediated by a +Gatekeeper service. + +=head1 FILES + +F + +=head1 SEE ALSO + +L, +http://jets3t.s3.amazonaws.com/applications/cockpitlite.html diff --git a/jets3t-synchronize.pod b/jets3t-synchronize.pod new file mode 100644 index 0000000000000000000000000000000000000000..b1c04dfa597ce4b0aa9b4b26ad9eb08b1f3d8386 --- /dev/null +++ b/jets3t-synchronize.pod @@ -0,0 +1,184 @@ +=head1 NAME + +jets3t-synchronize - synchronize local directories with an Amazon S3 account + +=head1 SYNOPSIS + +=over 2 + +=item Synchronize the contents of a local directory with S3: + + +jets3t-synchronize [options] UP [[path2] .. [pathN]] + +=item Synchronize the contents of S3 with a local directory: + + +jets3t-synchronize [options] DOWN + +=back + +=head1 OVERVIEW + +jets3t-synchronize is a console (text mode) Java application for synchronizing +directories on a computer with an Amazon S3 account. + +=head1 OPTIONS + +=over 2 + +=item B<-h>, B<--help> + +Displays a brief summary with all options. + +=item B<-n>, B<--noaction> + +No action taken. No files will be changed locally or on S3, instead +a report will be generating showing what will happen if the command +is run without the -n option. + +=item B<-q>, B<--quiet> + +Runs quietly, without reporting on each action performed or displaying +progress messages. The summary is still displayed. + +=item B<-p>, B<--noprogress> + +Runs somewhat quietly, without displaying progress messages. +The action report and overall summary are still displayed. + +=item B<-f>, B<--force> + +Force tool to perform synchronization even when files are up-to-date. +This may be useful if you need to update metadata or timestamps in S3. + +=item B<-k>, B<--keepfiles> + +Keep outdated files on destination instead of reverting/removing them. +This option cannot be used with --nodelete. + +=item B<-d>, B<--nodelete> + +Keep files on destination that have been removed from the source. This +option is similar to --keepfiles except that files may be reverted. +This option cannot be used with --keepfiles. + +=item B<-m>, B<--move> + +Move items rather than merely copying them. Files on the local computer will +be deleted after they have been uploaded to S3, or objects will be deleted +from S3 after they have been downloaded. Be *very* careful with this option. +This option cannot be used with --keepfiles. + +=item B<-b>, B<--batch> + +Download or upload files in batches, rather than all at once. Enabling this +option will reduce the memory required to synchronize large buckets, and will +ensure file transfers commence as soon as possible. When this option is +enabled, the progress status lines refer only to the progress of a single batch. + +=item B<-s>, B<--skipmetadata> + +Skip the retrieval of object metadata information from S3. This will make the +synch process much faster for large buckets, but it will leave +jets3t-synchronize with less information to make decisions. If this option is +enabled, empty files or directories will not be synchronized reliably. +This option cannot be used with the --gzip or --crypto options. + +=item B<-g>, B<--gzip> + +Compress (GZip) files when backing up and decompress gzipped files +when restoring. + +=item B<-c>, B<--crypto> + +Encrypt files when backing up and decrypt encrypted files when restoring. If +this option is specified the properties must contain a password. + +=item B<--properties> I + +Load the synchronizer app properties from the given file rather than from +a synchronizer.properties file in the classpath. + +=item B<--credentials> I + +Load your AWS credentials from an encrypted file, rather than from the +synchronizer.properties file. This encrypted file can be created using +the Cockpit application, or the JetS3t API library. + +=item B<--acl> I + +Specifies the Access Control List setting to apply. This value must be one +of: PRIVATE, PUBLIC_READ, PUBLIC_READ_WRITE. This setting will override any +acl property specified in the synchronize.properties file + +=item B<--reportlevel> I + +A number that specifies how much report information will be printed: + +0 - no report items will be printed (the summary will still be printed). + +1 - only actions are reported + +[Prefixes N, U, D, R, F, M] + +2 - differences & actions are reported + +[Prefixes N, U, D, R, F, M, d, r] + +3 - DEFAULT: all items are reported + +[Prefixes N, U, D, R, F, M, d, r, -] + +=back + +=head1 NOTES + +Required properties can be provided via: a file named F +in the classpath (or F), a file specified +with the --properties option, or by typing them in when prompted on the command +line. Required properties are: + +=over 2 + +=item accesskey: Your AWS Access Key (Required) + +=item secretkey: Your AWS Secret Key (Required) + +=item password: Encryption password (only required when using crypto) + +=back + +Properties specified in this file will override those in F +(or in F). + +=head1 REPORT + +Report items are printed on a single line with an action flag followed by +the relative path of the file or S3 object. The report legend follows: + +N: A new file/object will be created + +U: An existing file/object has changed and will be updated + +D: A file/object existing on the target does not exist on the source and +will be deleted. + +d: A file/object existing on the target does not exist on the source but +because the --keepfiles or --nodelete option was set it was not deleted. + +R: An existing file/object has changed more recently on the target than on the +source. The target version will be reverted to the older source version + +r: An existing file/object has changed more recently on the target than on the +source but because the --keepfiles option was set it was not reverted. + +-: A file is identical between the local system and S3, no action is necessary. + +F: A file identical locally and in S3 was updated due to the Force option. + +M: The file/object will be moved (deleted after it has been copied to/from S3). + +=head1 SEE ALSO + +http://jets3t.s3.amazonaws.com/applications/synchronize.html diff --git a/jets3t-uploader.pod b/jets3t-uploader.pod new file mode 100644 index 0000000000000000000000000000000000000000..d2a3cdb8641f27bd0895b6daf5a8506d4305aa62 --- /dev/null +++ b/jets3t-uploader.pod @@ -0,0 +1,23 @@ +=head1 NAME + +jets3t-uploader - provide upload access to clients without Amazon S3 accounts + +=head1 SYNOPSIS + +jets3t-uploader [= .. =] + +=head1 OVERVIEW + +A graphical application that Service Providers with S3 accounts may provide to +clients or customers without S3 accounts. Uploader allows users to upload files +to S3 using a simple wizard-based workflow, but all uploads must first be +authorized by a Gatekeeper service. + +=head1 FILES + +F + +=head1 SEE ALSO + +L, +http://jets3t.s3.amazonaws.com/applications/uploader.html diff --git a/jets3t.spec b/jets3t.spec new file mode 100644 index 0000000000000000000000000000000000000000..4559034c6310515e66c9a23d4f618bbcff154456 --- /dev/null +++ b/jets3t.spec @@ -0,0 +1,175 @@ +Name: jets3t +Version: 0.9.3 +Release: 1 +Summary: Java interface to Amazon S3 and CloudFront services +License: ASL 2.0 and BSD and LGPLv2+ +Url: http://jets3t.s3.amazonaws.com/index.html +Source0: https://github.com/iterate-ch/jets3t/archive/Release-0.9.3.tar.gz +Source5: http://www.zhangsheng.org/magic/3.0/sources/SOURCES.j/jets3t/jets3t-cockpit.pod +Source6: http://www.zhangsheng.org/magic/3.0/sources/SOURCES.j/jets3t/jets3t-cockpitlite.pod +Source7: http://www.zhangsheng.org/magic/3.0/sources/SOURCES.j/jets3t/jets3t-synchronize.pod +Source8: http://www.zhangsheng.org/magic/3.0/sources/SOURCES.j/jets3t/jets3t-uploader.pod +Patch0: jets3t-0.9.3-scripts.patch +Patch1: jets3t-0.9.0-nuvola-fsf-address.patch +Patch2: jets3t-0.9.3-dist-build.patch +BuildRequires: ant apache-commons-codec apache-commons-logging BareBonesBrowserLaunch +BuildRequires: bouncycastle dos2unix httpcomponents-client httpcomponents-core jackson +BuildRequires: java-base64 java-xmlbuilder javamail junit log4j12 maven-local mx4j +BuildRequires: %{_bindir}/pod2man sonatype-oss-parent glassfish-servlet-api +BuildArch: noarch +%description +The JetS3t toolkit provides Java programmers with an API for interacting and +managing data stored in Amazon Simple Storage Service and Amazon CloudFront +content delivery network. + +%package app +Summary: Graphical and command-line tools for Amazon S3 and CloudFront +Requires: jets3t = %{version}-%{release} apache-commons-codec apache-commons-logging +Requires: avalon-framework avalon-logkit BareBonesBrowserLaunch base64 bouncycastle +Requires: geronimo-jms glassfish-servlet-api httpcomponents-client httpcomponents-core +Requires: java java-xmlbuilder jpackage-utils log4j12 +%description app +The JetS3t toolkit provides Java programmers with an API for interacting and +managing data stored in Amazon Simple Storage Service and Amazon CloudFront +content delivery network. +Features: +- jets3t-cockpitlite: A graphical application that Service Providers with S3 + accounts may provide to clients or customers without S3 accounts. + jets3t-cockpitlite allows users to manage the content of an S3 account to + upload files, download files, delete S3 objects and make objects publicly + accessible. All these operations are mediated by a Gatekeeper service. +- jets3t-cockpit: graphical application for transferring files, viewing and + managing the contents of an Amazon S3 account. +- jets3t-synchronize: A command-line application for synchronizing + directories on your computer with an Amazon S3 account. Ideal for + performing back-ups or synchronizing files between different computers. +- jets3t-uploader: A graphical application that Service Providers with S3 + accounts may provide to clients or customers without S3 accounts. + jets3t-uploader allows users to upload files to S3 using a simple + wizard-based work-flow, but all uploads must first be authorized by a + Gatekeeper service +- gatekeeper: A servlet that acts as an authorization service running on a + Service Provider's server to mediate access to S3 accounts. + It processes requests from client applications such as JetS3t Uploader & + CockpitLite, and authorizes the client application to perform operations + such as uploads, downloads and deletes. + +%package javadoc +Summary: Javadoc for jets3t +%description javadoc +This package contains javadoc for jets3t. + +%prep +%setup -q -n jets3t-Release-0.9.3 +dos2unix dist-build.xml +%patch0 -p1 +sed -i "s|log4j.jar|log4j12-1.2.17.jar|" dist-build.xml +%patch1 -p0 +%patch2 -p0 +rm -rf src/contribs/com/centerkey/utils/BareBonesBrowserLaunch.java +sed -i "s|contribs.com.centerkey.utils.BareBonesBrowserLaunch|com.centerkey.utils.BareBonesBrowserLaunch|" \ + src/org/jets3t/apps/cockpit/Cockpit.java \ + src/org/jets3t/apps/cockpit/gui/StartupDialog.java \ + src/org/jets3t/apps/cockpitlite/CockpitLite.java \ + src/org/jets3t/apps/uploader/Uploader.java \ + src/org/jets3t/apps/cockpit/Cockpit.java \ + src/org/jets3t/apps/cockpit/gui/StartupDialog.java \ + src/org/jets3t/apps/cockpitlite/CockpitLite.java \ + src/org/jets3t/apps/uploader/Uploader.java +find . -name "*.war" -delete +for s in test/org/jets3t/service/BaseStorageServiceTests.java;do + native2ascii -encoding UTF8 ${s} ${s} +done +sed -i 's/\r//' LICENSE-2.0.txt NOTICE.txt resources/images/nuvola/license.txt +cp -p %{SOURCE5} . +cp -p %{SOURCE6} . +cp -p %{SOURCE7} . +cp -p %{SOURCE8} . +%pom_remove_plugin org.apache.maven.plugins:maven-jarsigner-plugin +%pom_remove_plugin org.apache.maven.plugins:maven-source-plugin +%pom_remove_plugin org.codehaus.mojo:appassembler-maven-plugin +%pom_remove_plugin org.codehaus.mojo:sonar-maven-plugin +%pom_remove_plugin org.apache.maven.plugins:maven-javadoc-plugin +%pom_remove_dep javax.activation:activation +%pom_add_dep com.centerkey.utils:BareBonesBrowserLaunch:3.1 +%mvn_alias net.java.dev.jets3t:jets3t ":cockpit" +%mvn_alias net.java.dev.jets3t:jets3t ":cockpitlite" +%mvn_alias net.java.dev.jets3t:jets3t ":jets3t-gui" +%mvn_alias net.java.dev.jets3t:jets3t ":synchronize" +%mvn_alias net.java.dev.jets3t:jets3t ":uploader" + +%build +%mvn_build -f +ant -f dist-build.xml -Ddir.servlets=$PWD/servlet rebuild-gatekeeper +for m in cockpitlite cockpit synchronize uploader; do + %{_bindir}/pod2man -c '' -r '' jets3t-${m}.pod > jets3t-${m}.1 ; +done + +%install +%mvn_install +mkdir -p %{buildroot}%{_datadir}/jets3t/jars +( + cd %{buildroot}%{_javadir} + ln -sf ../../java/jets3t/jets3t.jar %{buildroot}%{_datadir}/jets3t/jars/jets3t-%{version}.jar + ln -sf ../../java/jets3t/jets3t.jar %{buildroot}%{_datadir}/jets3t/jars/jets3t-gui-%{version}.jar +) +mkdir -p %{buildroot}%{_bindir} +mkdir -p %{buildroot}%{_datadir}/jets3t/bin +for TOOL in cockpit cockpitlite synchronize uploader +do + install -pm 755 scripts/$TOOL.sh %{buildroot}%{_bindir}/jets3t-$TOOL + ln -sf ../../../bin/jets3t-$TOOL %{buildroot}%{_datadir}/jets3t/bin/$TOOL.sh +( + cd %{buildroot}%{_javadir} + ln -sf ../../java/jets3t/jets3t.jar %{buildroot}%{_datadir}/jets3t/jars/jets3t-$TOOL-%{version}.jar +) +done +chmod 0755 %{buildroot}%{_datadir}/jets3t/bin/* +mkdir -p %{buildroot}%{_mandir}/man1 +install -pm 644 jets3t-*.1 %{buildroot}%{_mandir}/man1/ +mkdir -p %{buildroot}%{_sysconfdir}/jets3t %{buildroot}%{_datadir}/jets3t/configs +sed -i "s|{jets3t-version}|%{version}|" configs/cockpitlite.properties +cp -pr configs/* %{buildroot}%{_sysconfdir}/jets3t/ +ln -sf ../../../../etc/jets3t/cockpitlite.properties %{buildroot}%{_datadir}/jets3t/configs/ +ln -sf ../../../../etc/jets3t/commons-logging.properties %{buildroot}%{_datadir}/jets3t/configs/ +ln -sf ../../../../etc/jets3t/devpay_products.properties %{buildroot}%{_datadir}/jets3t/configs/ +ln -sf ../../../../etc/jets3t/jets3t.properties %{buildroot}%{_datadir}/jets3t/configs/ +ln -sf ../../../../etc/jets3t/log4j.properties %{buildroot}%{_datadir}/jets3t/configs/ +ln -sf ../../../../etc/jets3t/mime.types %{buildroot}%{_datadir}/jets3t/configs/ +ln -sf ../../../../etc/jets3t/simplelog.properties %{buildroot}%{_datadir}/jets3t/configs/ +ln -sf ../../../../etc/jets3t/synchronize.properties %{buildroot}%{_datadir}/jets3t/configs/ +ln -sf ../../../../etc/jets3t/test.properties %{buildroot}%{_datadir}/jets3t/configs/ +ln -sf ../../../../etc/jets3t/uploader.properties %{buildroot}%{_datadir}/jets3t/configs/ +mkdir -p %{buildroot}%{_datadir}/jets3t/resources +cp -pr resources/* %{buildroot}%{_datadir}/jets3t/resources/ +cp -pr servlets %{buildroot}%{_datadir}/jets3t/ + +%files -f .mfiles +%dir %{_javadir}/jets3t +%doc README.markdown RELEASE_NOTES.markdown +%license LICENSE-2.0.txt NOTICE.txt + +%files app +%dir %{_sysconfdir}/jets3t +%config(noreplace) %{_sysconfdir}/jets3t/* +%{_bindir}/jets3t-* +%dir %{_datadir}/jets3t +%dir %{_datadir}/jets3t/bin +%dir %{_datadir}/jets3t/configs +%dir %{_datadir}/jets3t/jars +%dir %{_datadir}/jets3t/resources +%dir %{_datadir}/jets3t/servlets +%{_datadir}/jets3t/jars/* +%{_datadir}/jets3t/bin/* +%{_datadir}/jets3t/configs/* +%{_datadir}/jets3t/resources/* +%{_datadir}/jets3t/servlets/* +%{_mandir}/man1/* +%license LICENSE-2.0.txt NOTICE.txt + +%files javadoc -f .mfiles-javadoc +%license LICENSE-2.0.txt NOTICE.txt + +%changelog +* Fri Aug 21 2020 yaokai - 0.9.3-1 +- package init diff --git a/jets3t.yaml b/jets3t.yaml new file mode 100644 index 0000000000000000000000000000000000000000..55041c9ebc1b4ca116184c424986c48b89b33ba9 --- /dev/null +++ b/jets3t.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: iterate-ch/jets3t +tag_pattern: "^Release-" +seperator: "."