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 1 |
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 |
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 |
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 |
#( |
57 |
# cd third-party/zlib |
58 |
# tar xf %{SOURCE1} |
59 |
#) |
60 |
|
61 |
#( |
62 |
# cd third-party/expat |
63 |
# tar xf %{SOURCE2} |
64 |
#) |
65 |
|
66 |
#%patch0 |
67 |
%patch1 |
68 |
|
69 |
%build |
70 |
|
71 |
#( |
72 |
# cd build/gcc4 |
73 |
#m ake -f XMPToolkit.mak os=i80386linux \ |
74 |
# stage=debug arch=x86 libpath=%{_libdir}/gcc/%{_host_alias}/%{gcj_ver} build |
75 |
#m ake -f XMPToolkit.mak os=i80386linux \ |
76 |
# stage=release arch=x86 libpath=%{_libdir}/gcc/%{_host_alias}/%{gcj_ver} build |
77 |
#) |
78 |
|
79 |
( |
80 |
cd java/XMPCore |
81 |
ant build javadoc |
82 |
) |
83 |
|
84 |
%install |
85 |
[ %{buildroot} != / ] && rm -rf %{buildroot} |
86 |
|
87 |
#mkdir -p %{buildroot}%{_libdir}/xmp-sdk/public/include/client-glue |
88 |
#install -pm 644 public/include/*.{h,hpp,incl_cpp} %{buildroot}%{_libdir}/xmp-sdk/public/include/ |
89 |
#install -pm 644 public/include/client-glue/*.{hpp,incl_cpp} %{buildroot}%{_libdir}/xmp-sdk/public/include/client-glue/ |
90 |
#install -pm 755 public/libraries/i80386linux/release/staticXMP*.ar %{buildroot}%{_libdir}/xmp-sdk/ |
91 |
|
92 |
mkdir -p %{buildroot}%{_javadir} |
93 |
install -pm 644 java/XMPCore/target/release/xmpcore.jar \ |
94 |
%{buildroot}%{_javadir}/xmpcore-%{version}.jar |
95 |
|
96 |
( |
97 |
cd %{buildroot}%{_javadir} |
98 |
for jar in *-%{version}.jar; do |
99 |
ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"` |
100 |
done |
101 |
) |
102 |
|
103 |
mkdir -p %{buildroot}%{_javadocdir}/xmpcore |
104 |
cp -pr java/XMPCore/docs/* %{buildroot}%{_javadocdir}/xmpcore |
105 |
|
106 |
|
107 |
%clean |
108 |
[ %{buildroot} != / ] && rm -rf %{buildroot} |
109 |
|
110 |
#iles |
111 |
#{_libdir}/xmp-sdk/* |
112 |
#doc BSD-License.txt |
113 |
#doc XMP-Toolkit-SDK-Overview.pdf |
114 |
#doc docs/* |
115 |
|
116 |
%files -n xmpcore |
117 |
%{_javadir}/xmpcore-%{version}.jar |
118 |
%{_javadir}/xmpcore.jar |
119 |
%doc BSD-License.txt |
120 |
|
121 |
%files -n xmpcore-javadoc |
122 |
%{_javadocdir}/xmpcore |