!2 Update to version 0.9.4
From: @wang--ge Reviewed-by: @cherry530 Signed-off-by: @cherry530
This commit is contained in:
commit
c20409b9b7
BIN
0.8.1.tar.gz
BIN
0.8.1.tar.gz
Binary file not shown.
BIN
java-libpst-0.9.4.tar.gz
Normal file
BIN
java-libpst-0.9.4.tar.gz
Normal file
Binary file not shown.
@ -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="<configuration>
|
||||
<sourceFileExcludes>
|
||||
<sourceFileExclude>**/com/pff/PSTActivity.java</sourceFileExclude>
|
||||
<sourceFileExclude>**/com/pff/PSTMessage.java</sourceFileExclude>
|
||||
<sourceFileExclude>**/com/pff/PSTObject.java</sourceFileExclude>
|
||||
<sourceFileExclude>**/com/pff/PSTAttachment.java</sourceFileExclude>
|
||||
<sourceFileExclude>**/com/pff/PSTFile.java</sourceFileExclude>
|
||||
<sourceFileExclude>**/com/pff/PSTGlobalObjectId.java</sourceFileExclude>
|
||||
<sourceFileExclude>**/com/pff/PSTTask.java</sourceFileExclude>
|
||||
<sourceFileExclude>**/com/pff/PSTContact.java</sourceFileExclude>
|
||||
<sourceFileExclude>**/com/pff/PSTFolder.java</sourceFileExclude>
|
||||
<sourceFileExclude>**/com/pff/PSTMessageStore.java</sourceFileExclude>
|
||||
<sourceFileExclude>**/com/pff/PSTNodeInputStream.java</sourceFileExclude>
|
||||
<sourceFileExclude>**/com/pff/PSTRss.java</sourceFileExclude>
|
||||
<sourceFileExclude>**/example/TestGui.java</sourceFileExclude>
|
||||
</sourceFileExcludes>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>attach-javadocs</id>
|
||||
<goals>
|
||||
<goal>jar</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>"
|
||||
|
||||
%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 <wang__ge@126.com> - 0.9.4-1
|
||||
- update to version 0.9.4
|
||||
|
||||
* Mon Aug 24 2020 huanghaitao <huanghaitao8@huawei.com> - 0.8.1-1
|
||||
- package init
|
||||
|
||||
155
oss-parent-7.pom
Normal file
155
oss-parent-7.pom
Normal file
@ -0,0 +1,155 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
~ Copyright (c) 2007-2011 Sonatype, Inc. All rights reserved.
|
||||
~
|
||||
~ This program is licensed to you under the Apache License Version 2.0,
|
||||
~ and you may not use this file except in compliance with the Apache License Version 2.0.
|
||||
~ You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0.
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing,
|
||||
~ software distributed under the Apache License Version 2.0 is distributed on an
|
||||
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
|
||||
-->
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>org.sonatype.oss</groupId>
|
||||
<artifactId>oss-parent</artifactId>
|
||||
<version>7</version>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<name>Sonatype OSS Parent</name>
|
||||
<url>http://nexus.sonatype.org/oss-repository-hosting.html</url>
|
||||
<description>Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/ </description>
|
||||
|
||||
<scm>
|
||||
<connection>scm:svn:http://svn.sonatype.org/spice/tags/oss-parent-7</connection>
|
||||
<developerConnection>scm:svn:https://svn.sonatype.org/spice/tags/oss-parent-7</developerConnection>
|
||||
<url>http://svn.sonatype.org/spice/tags/oss-parent-7</url>
|
||||
</scm>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>sonatype-nexus-snapshots</id>
|
||||
<name>Sonatype Nexus Snapshots</name>
|
||||
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
||||
<releases>
|
||||
<enabled>false</enabled>
|
||||
</releases>
|
||||
<snapshots>
|
||||
<enabled>true</enabled>
|
||||
</snapshots>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
|
||||
<distributionManagement>
|
||||
<snapshotRepository>
|
||||
<id>sonatype-nexus-snapshots</id>
|
||||
<name>Sonatype Nexus Snapshots</name>
|
||||
<url>${sonatypeOssDistMgmtSnapshotsUrl}</url>
|
||||
</snapshotRepository>
|
||||
<repository>
|
||||
<id>sonatype-nexus-staging</id>
|
||||
<name>Nexus Release Repository</name>
|
||||
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
|
||||
</repository>
|
||||
</distributionManagement>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-enforcer-plugin</artifactId>
|
||||
<version>1.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>enforce-maven</id>
|
||||
<goals>
|
||||
<goal>enforce</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<rules>
|
||||
<requireMavenVersion>
|
||||
<version>(,2.1.0),(2.1.0,2.2.0),(2.2.0,)</version>
|
||||
<message>Maven 2.1.0 and 2.2.0 produce incorrect GPG signatures and checksums respectively.</message>
|
||||
</requireMavenVersion>
|
||||
</rules>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-release-plugin</artifactId>
|
||||
<version>2.1</version>
|
||||
<configuration>
|
||||
<mavenExecutorId>forked-path</mavenExecutorId>
|
||||
<useReleaseProfile>false</useReleaseProfile>
|
||||
<arguments>-Psonatype-oss-release</arguments>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
</build>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<sonatypeOssDistMgmtSnapshotsUrl>https://oss.sonatype.org/content/repositories/snapshots/</sonatypeOssDistMgmtSnapshotsUrl>
|
||||
</properties>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>sonatype-oss-release</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-source-plugin</artifactId>
|
||||
<version>2.1.2</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>attach-sources</id>
|
||||
<goals>
|
||||
<goal>jar-no-fork</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<version>2.7</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>attach-javadocs</id>
|
||||
<goals>
|
||||
<goal>jar</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-gpg-plugin</artifactId>
|
||||
<version>1.1</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>sign-artifacts</id>
|
||||
<phase>verify</phase>
|
||||
<goals>
|
||||
<goal>sign</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
</project>
|
||||
Loading…
x
Reference in New Issue
Block a user