[metadata-extractor2] Initial import (#1004563).
gil
gil at fedoraproject.org
Sat Oct 19 22:32:28 UTC 2013
commit 60418f7a772f3ad7ad83b245f3a935a435b64206
Author: gil <puntogil at libero.it>
Date: Sun Oct 20 00:32:17 2013 +0200
Initial import (#1004563).
.gitignore | 1 +
metadata-extractor-2.6.4.pom | 138 ++++++++++++++++++++++++++++++++++++++++++
metadata-extractor2.spec | 103 +++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 243 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5d40804 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/metadata-extractor-2.6.4-src.jar
diff --git a/metadata-extractor-2.6.4.pom b/metadata-extractor-2.6.4.pom
new file mode 100644
index 0000000..3229f4c
--- /dev/null
+++ b/metadata-extractor-2.6.4.pom
@@ -0,0 +1,138 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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>com.drewnoakes</groupId>
+ <artifactId>metadata-extractor</artifactId>
+ <version>2.6.4</version>
+ <packaging>jar</packaging>
+
+ <name>metadata-extractor</name>
+ <description>Java library for extracting EXIF, IPTC, XMP, ICC and other metadata from image files.</description>
+
+ <url>http://drewnoakes.com/code/exif/</url>
+
+ <issueManagement>
+ <system>Google Code</system>
+ <url>http://code.google.com/p/metadata-extractor/issues/list</url>
+ </issueManagement>
+
+ <mailingLists>
+ <mailingList>
+ <name>Announce mailing list</name>
+ <archive>http://groups.google.com/group/metadata-extractor-announce</archive>
+ </mailingList>
+ <mailingList>
+ <name>Development mailing list</name>
+ <archive>http://groups.google.com/group/metadata-extractor-dev</archive>
+ </mailingList>
+ <mailingList>
+ <name>Changes mailing list</name>
+ <archive>http://groups.google.com/group/metadata-extractor-changes</archive>
+ </mailingList>
+ </mailingLists>
+
+ <licenses>
+ <license>
+ <name>The Apache Software License, Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+
+ <scm>
+ <connection>scm:git:https://code.google.com/p/metadata-extractor/</connection>
+ <developerConnection>scm:git:https://code.google.com/p/metadata-extractor/</developerConnection>
+ <url>https://code.google.com/p/metadata-extractor/</url>
+ </scm>
+
+ <developers>
+ <developer>
+ <id>drewnoakes</id>
+ <name>Drew Noakes</name>
+ </developer>
+ </developers>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>com.adobe.xmp</groupId>
+ <artifactId>xmpcore</artifactId>
+ <version>5.1.2</version>
+ </dependency>
+ <dependency>
+ <groupId>xerces</groupId>
+ <artifactId>xercesImpl</artifactId>
+ <version>2.8.1</version>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.11</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <directory>target</directory>
+ <outputDirectory>target/classes</outputDirectory>
+ <sourceDirectory>Source</sourceDirectory>
+ <testSourceDirectory>Tests</testSourceDirectory>
+ <resources>
+ <resource>
+ <directory>${basedir}</directory>
+ <includes>
+ <include>LICENSE*</include>
+ <include>README*</include>
+ </includes>
+ </resource>
+ </resources>
+ <testResources>
+ <testResource>
+ <directory>Tests/Data</directory>
+ </testResource>
+ </testResources>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>3.0</version>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.4</version>
+ <configuration>
+ <archive>
+ <manifest>
+ <addClasspath>false</addClasspath>
+ <mainClass>com.drew.imaging.ImageMetadataReader</mainClass>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.9.1</version>
+ <configuration>
+ <show>public</show>
+ <windowtitle>${project.name} - Javadoc - Extracts Exif, IPTC, XMP, ICC and other metadata from image files</windowtitle>
+ <notimestamp>true</notimestamp>
+ <bottom><![CDATA[<i>Copyright © 2002-2013 Drew Noakes. All Rights Reserved.</i>]]></bottom>
+ <excludePackageNames>com.drew.tools</excludePackageNames>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
+
diff --git a/metadata-extractor2.spec b/metadata-extractor2.spec
new file mode 100644
index 0000000..7a00b4b
--- /dev/null
+++ b/metadata-extractor2.spec
@@ -0,0 +1,103 @@
+%global majorversion 2
+Name: metadata-extractor2
+Version: 2.6.4
+Release: 1%{?dist}
+Summary: Extracts EXIF, IPTC and XMP metadata from image files
+License: ASL 2.0
+URL: http://drewnoakes.com/code/exif/
+Source0: http://metadata-extractor.googlecode.com/files/metadata-extractor-%{version}-src.jar
+# originally taken from http://code.google.com/p/metadata-extractor/source/browse/pom.xml
+# fix javadoc task, jar maifest entries
+Source1: metadata-extractor-%{version}.pom
+
+BuildRequires: java-devel
+BuildRequires: mvn(com.adobe.xmp:xmpcore)
+BuildRequires: mvn(xerces:xercesImpl)
+# Test deps
+BuildRequires: mvn(junit:junit)
+
+BuildRequires: maven-local
+%if %{?fedora} <= 19
+Provides: mvn(com.drewnoakes:metadata-extractor) = %{version}-%{release}
+%endif
+BuildArch: noarch
+
+%description
+Metadata Extractor is a straightforward Java library
+for reading metadata from image files.
+
+%package javadoc
+Summary: Javadoc for %{name}
+
+%description javadoc
+This package contains javadoc for %{name}.
+
+%prep
+%setup -q -c %{name}-%{version}
+rm -r META-INF
+find -name '*.jar' -delete
+find -name '*.class' -delete
+
+cp -p %{SOURCE1} pom.xml
+
+# Fix non ASCII chars
+for s in Source/com/drew/lang/GeoLocation.java \
+ Source/com/drew/metadata/icc/IccDescriptor.java;do
+ native2ascii -encoding UTF8 ${s} ${s}
+done
+
+# This test fail for unavailable resource
+# java.io.FileNotFoundException: Tests/com/drew/metadata/icc/iccDataInvalid1.app2bytes (No such file or directory)
+rm -r Tests/com/drew/metadata/icc/IccReaderTest.java
+
+sed -i 's/\r//' LICENSE-2.0.txt README.txt
+
+%build
+
+%mvn_file :metadata-extractor %{name}
+%if %{?fedora} > 19
+%mvn_alias :metadata-extractor "drew:metadata-extractor"
+%mvn_compat_version ":metadata-extractor" %{majorversion}
+%endif
+%mvn_build
+
+%install
+%if %{?fedora} > 19
+%mvn_install
+%else
+mkdir -p %{buildroot}%{_javadir}
+install -m 644 target/metadata-extractor-%{version}.jar \
+ %{buildroot}%{_javadir}/%{name}.jar
+
+mkdir -p %{buildroot}%{_mavenpomdir}
+install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+%add_maven_depmap -a "drew:metadata-extractor" -v "%{majorversion}"
+
+mkdir -p %{buildroot}%{_javadocdir}/%{name}
+cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
+%endif
+
+%jpackage_script com.drew.imaging.ImageMetadataReader "" "" %{name}:xmpcore %{name} true
+
+%if %{?fedora} > 19
+%files -f .mfiles
+%else
+%files
+%{_javadir}/*
+%{_mavenpomdir}/*
+%{_mavendepmapfragdir}/*
+%endif
+%{_bindir}/*
+%doc LICENSE-2.0.txt README.txt
+
+%if %{?fedora} > 19
+%files javadoc -f .mfiles-javadoc
+%else
+%files javadoc
+%{_javadocdir}/%{name}
+%endif
+%doc LICENSE-2.0.txt
+
+%changelog
+* Mon Jan 21 2013 gil cattaneo <puntogil at libero.it> 2.6.4-1
+- initial rpm
\ No newline at end of file
diff --git a/sources b/sources
index e69de29..1df8a8e 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+45123f2dc824327f7a432142cc280ee3 metadata-extractor-2.6.4-src.jar
More information about the scm-commits
mailing list