/[packages]/cauldron/XMP-Toolkit-SDK/current/SPECS/XMP-Toolkit-SDK.spec
ViewVC logotype

Contents of /cauldron/XMP-Toolkit-SDK/current/SPECS/XMP-Toolkit-SDK.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 323964 - (show annotations) (download)
Sat Dec 1 10:34:36 2012 UTC (11 years, 3 months ago) by dmorgan
File size: 2508 byte(s)
SILENT: Clean spec file
1 %define gcj_ver %(gcj --version | head -n1 | awk '{ print $3 }')
2 %define with_java_only 1
3
4 Name: XMP-Toolkit-SDK
5 Version: 5.1.2
6 Release: %mkrel 2
7 Summary: Adobe XMP Toolkit SDK
8 Group: Development/Other
9 License: BSD
10 Url: http://www.adobe.com/devnet/xmp/
11 Source0: http://download.macromedia.com/pub/developer/xmp/sdk/XMP-Toolkit-SDK-5.1.2.zip
12 # souce generated from expat and zlib build
13 Source1: zlib-1.2.5-XMP-Toolkit-SDK-5.1.2.tar.gz
14 Source2: expat-2.0.1-XMP-Toolkit-SDK-5.1.2.tar.gz
15 Patch0: XMP-Toolkit-SDK-5.1.2-gcc4.patch
16 Patch1: XMP-Toolkit-SDK-5.1.2-javadoc.patch
17 BuildRequires: java-devel >= 0:1.6.0
18 BuildRequires: jpackage-utils
19 BuildRequires: ant
20 BuildRequires: glibc-devel
21 BuildRequires: make
22 %if %with_java_only
23 BuildArch: noarch
24 %endif
25
26 %description
27 The XMP Toolkit allows you to integrate XMP functionality into your product or solution. It
28 supports Macintosh, Windows, as well as UNIX and comes with samples, documentation, source
29 code and project files. The XMP Toolkit is available under the BSD license. The specification is
30 provided under the XMP Specification Public Patent License.
31
32 The XMP Toolkit SDK contains two libraries, XMPCore and XMPFiles. XMPCore and XMPFiles
33 are provided as C++ implementations. XMPCore is also provides as a Java version.
34
35 %package -n xmpcore
36 Summary: Adobe Java XMP Core
37 Group: Development/Java
38 Requires: java >= 0:1.6.0
39 Requires: jpackage-utils
40 Requires(post): jpackage-utils
41 Requires(postun): jpackage-utils
42
43 %description -n xmpcore
44 This package contains the Adobe XMP Core.
45
46 %package -n xmpcore-javadoc
47 Summary: Javadocs for %{name}
48 Group: Development/Java
49 Requires: jpackage-utils
50
51 %description -n xmpcore-javadoc
52 This package contains the API documentation for the Adobe XMP Core.
53
54 %prep
55 %setup -q -n XMP-Toolkit-SDK-%{version}
56 %patch1
57
58 %build
59
60 (
61 cd java/XMPCore
62 ant build javadoc
63 )
64
65 %install
66 mkdir -p %{buildroot}%{_javadir}
67 install -pm 644 java/XMPCore/target/release/xmpcore.jar \
68 %{buildroot}%{_javadir}/xmpcore-%{version}.jar
69
70 (
71 cd %{buildroot}%{_javadir}
72 for jar in *-%{version}.jar; do
73 ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`
74 done
75 )
76
77 mkdir -p %{buildroot}%{_javadocdir}/xmpcore
78 cp -pr java/XMPCore/docs/* %{buildroot}%{_javadocdir}/xmpcore
79
80
81 %files -n xmpcore
82 %{_javadir}/xmpcore-%{version}.jar
83 %{_javadir}/xmpcore.jar
84 %doc BSD-License.txt
85
86 %files -n xmpcore-javadoc
87 %{_javadocdir}/xmpcore

  ViewVC Help
Powered by ViewVC 1.1.30