diff --git a/0.8.1.tar.gz b/0.8.1.tar.gz
deleted file mode 100644
index f457bad4b061fceb583e1f72c33fa52ef112a084..0000000000000000000000000000000000000000
Binary files a/0.8.1.tar.gz and /dev/null differ
diff --git a/java-libpst-0.9.4.tar.gz b/java-libpst-0.9.4.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..bd38bd46b7185fd4c17863b5a4cfe13f5612f9a7
Binary files /dev/null and b/java-libpst-0.9.4.tar.gz differ
diff --git a/java-libpst.spec b/java-libpst.spec
index 9de8d7d37bab2ac03c5e32d8b9581434a133e2eb..b91bbbe08012cfc4ba7d780e1b79f7ddf5dbb44b 100644
--- a/java-libpst.spec
+++ b/java-libpst.spec
@@ -1,12 +1,14 @@
Name: java-libpst
-Version: 0.8.1
+Version: 0.9.4
Release: 1
Summary: A pure Java library for the reading of Outlook PST and OST files
License: ASL 2.0 and LGPLv3
URL: https://github.com/rjohnsondev/java-libpst/
-Source0: https://github.com/rjohnsondev/java-libpst/archive/%{version}.tar.gz
+Source0: https://github.com/rjohnsondev/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
Source1: https://www.gnu.org/licenses/lgpl.txt
+Source2: https://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
BuildRequires: mvn(junit:junit) maven-local
+BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
BuildArch: noarch
%description
A library to read PST files with java,
@@ -25,11 +27,43 @@ find -name '*.class' -print -delete
find -name '*.jar' -print -delete
%pom_xpath_set "pom:project/pom:version" %{version}
cp -p %{SOURCE1} LICENSE.LGPL.txt
+cp %{SOURCE2} ../pom.xml
sed -i 's/\r//' LICENSE.*.txt README.txt
%mvn_file com.pff:%{name} %{name}
+%pom_remove_plugin org.apache.maven.plugins:maven-gpg-plugin
+sed -i 's/& 2/and 2/g' src/main/java/com/pff/PSTGlobalObjectId.java
+MVN_JAVADOC_PLUGIN_EXTRA_XML="
+
+ **/com/pff/PSTActivity.java
+ **/com/pff/PSTMessage.java
+ **/com/pff/PSTObject.java
+ **/com/pff/PSTAttachment.java
+ **/com/pff/PSTFile.java
+ **/com/pff/PSTGlobalObjectId.java
+ **/com/pff/PSTTask.java
+ **/com/pff/PSTContact.java
+ **/com/pff/PSTFolder.java
+ **/com/pff/PSTMessageStore.java
+ **/com/pff/PSTNodeInputStream.java
+ **/com/pff/PSTRss.java
+ **/example/TestGui.java
+
+
+
+
+ attach-javadocs
+
+ jar
+
+
+"
+
+%pom_remove_plugin org.apache.maven.plugins:maven-javadoc-plugin
+%pom_add_plugin org.apache.maven.plugins:maven-javadoc-plugin:3.0.1 . "$MVN_JAVADOC_PLUGIN_EXTRA_XML"
+
%build
-%mvn_build
+%mvn_build --xmvn-javadoc
%install
%mvn_install
@@ -42,5 +76,8 @@ sed -i 's/\r//' LICENSE.*.txt README.txt
%license LICENSE.APACHE-2.0.txt LICENSE.LGPL.txt
%changelog
+* Mon Jan 29 2024 Ge Wang - 0.9.4-1
+- update to version 0.9.4
+
* Mon Aug 24 2020 huanghaitao - 0.8.1-1
- package init
diff --git a/oss-parent-7.pom b/oss-parent-7.pom
new file mode 100644
index 0000000000000000000000000000000000000000..39639525562fa3ac47f1d9ccd770d6c1193ee701
--- /dev/null
+++ b/oss-parent-7.pom
@@ -0,0 +1,155 @@
+
+
+
+ 4.0.0
+
+ org.sonatype.oss
+ oss-parent
+ 7
+ pom
+
+ Sonatype OSS Parent
+ http://nexus.sonatype.org/oss-repository-hosting.html
+ Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
+
+
+ scm:svn:http://svn.sonatype.org/spice/tags/oss-parent-7
+ scm:svn:https://svn.sonatype.org/spice/tags/oss-parent-7
+ http://svn.sonatype.org/spice/tags/oss-parent-7
+
+
+
+
+ sonatype-nexus-snapshots
+ Sonatype Nexus Snapshots
+ https://oss.sonatype.org/content/repositories/snapshots
+
+ false
+
+
+ true
+
+
+
+
+
+
+
+ sonatype-nexus-snapshots
+ Sonatype Nexus Snapshots
+ ${sonatypeOssDistMgmtSnapshotsUrl}
+
+
+ sonatype-nexus-staging
+ Nexus Release Repository
+ https://oss.sonatype.org/service/local/staging/deploy/maven2/
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-enforcer-plugin
+ 1.0
+
+
+ enforce-maven
+
+ enforce
+
+
+
+
+ (,2.1.0),(2.1.0,2.2.0),(2.2.0,)
+ Maven 2.1.0 and 2.2.0 produce incorrect GPG signatures and checksums respectively.
+
+
+
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-release-plugin
+ 2.1
+
+ forked-path
+ false
+ -Psonatype-oss-release
+
+
+
+
+
+
+
+ UTF-8
+ https://oss.sonatype.org/content/repositories/snapshots/
+
+
+
+
+ sonatype-oss-release
+
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+ 2.1.2
+
+
+ attach-sources
+
+ jar-no-fork
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+ 2.7
+
+
+ attach-javadocs
+
+ jar
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-gpg-plugin
+ 1.1
+
+
+ sign-artifacts
+ verify
+
+ sign
+
+
+
+
+
+
+
+
+
+