Sophie

Sophie

distrib > Mageia > 2 > i586 > media > core-release-src > by-pkgid > 1a1b5414baa9a50ff2cfa35f9b0198d7 > files > 4

XMP-Toolkit-SDK-5.1.2-1.mga2.src.rpm

%define gcj_ver  %(gcj --version | head -n1 | awk '{ print $3 }')
%define with_java_only 1

Name:          XMP-Toolkit-SDK
Version:       5.1.2
Release:       %mkrel 1
Summary:       Adobe XMP Toolkit SDK
Group:         Development/Other
License:       BSD
Url:           http://www.adobe.com/devnet/xmp/
Source0:       http://download.macromedia.com/pub/developer/xmp/sdk/XMP-Toolkit-SDK-5.1.2.zip
# souce generated from expat and zlib build
Source1:       zlib-1.2.5-XMP-Toolkit-SDK-5.1.2.tar.gz
Source2:       expat-2.0.1-XMP-Toolkit-SDK-5.1.2.tar.gz
Patch0:        XMP-Toolkit-SDK-5.1.2-gcc4.patch
Patch1:        XMP-Toolkit-SDK-5.1.2-javadoc.patch
BuildRequires: java-devel
BuildRequires: jpackage-utils
BuildRequires: ant
BuildRequires: glibc-devel
BuildRequires: make
%if %with_java_only
BuildArch:     noarch
%endif

%description
The XMP Toolkit allows you to integrate XMP functionality into your product or solution. It
supports Macintosh, Windows, as well as UNIX and comes with samples, documentation, source
code and project files. The XMP Toolkit is available under the BSD license. The specification is
provided under the XMP Specification Public Patent License.

The XMP Toolkit SDK contains two libraries, XMPCore and XMPFiles. XMPCore and XMPFiles
are provided as C++ implementations. XMPCore is also provides as a Java version.

%package -n xmpcore
Summary:       Adobe Java XMP Core
Group:         Development/Java
Requires:      java
Requires:      jpackage-utils
Requires(post): jpackage-utils
Requires(postun): jpackage-utils

%description -n xmpcore
This package contains the Adobe XMP Core.

%package -n xmpcore-javadoc
Summary:       Javadocs for %{name}
Group:         Development/Java
Requires:      jpackage-utils

%description -n xmpcore-javadoc
This package contains the API documentation for the Adobe XMP Core.

%prep
%setup -q -n XMP-Toolkit-SDK-%{version}
#(
#  cd third-party/zlib
#  tar xf %{SOURCE1}
#)

#(
#  cd third-party/expat
#  tar xf %{SOURCE2}
#)

#%patch0
%patch1

%build

#(
#  cd build/gcc4
#m  ake -f XMPToolkit.mak os=i80386linux \
#    stage=debug arch=x86 libpath=%{_libdir}/gcc/%{_host_alias}/%{gcj_ver} build
#m ake -f XMPToolkit.mak os=i80386linux \
#    stage=release arch=x86 libpath=%{_libdir}/gcc/%{_host_alias}/%{gcj_ver} build
#)

(
  cd java/XMPCore
  ant build javadoc
)

%install
[ %{buildroot} != / ] && rm -rf %{buildroot}

#mkdir -p %{buildroot}%{_libdir}/xmp-sdk/public/include/client-glue
#install -pm 644 public/include/*.{h,hpp,incl_cpp} %{buildroot}%{_libdir}/xmp-sdk/public/include/
#install -pm 644 public/include/client-glue/*.{hpp,incl_cpp} %{buildroot}%{_libdir}/xmp-sdk/public/include/client-glue/
#install -pm 755 public/libraries/i80386linux/release/staticXMP*.ar %{buildroot}%{_libdir}/xmp-sdk/

mkdir -p %{buildroot}%{_javadir}
install -pm 644 java/XMPCore/target/release/xmpcore.jar \
  %{buildroot}%{_javadir}/xmpcore-%{version}.jar

(
  cd %{buildroot}%{_javadir}
  for jar in *-%{version}.jar; do
    ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`
  done
)

mkdir -p %{buildroot}%{_javadocdir}/xmpcore
cp -pr java/XMPCore/docs/* %{buildroot}%{_javadocdir}/xmpcore


%clean
[ %{buildroot} != / ] && rm -rf %{buildroot}

#iles
#{_libdir}/xmp-sdk/*
#doc BSD-License.txt
#doc XMP-Toolkit-SDK-Overview.pdf
#doc docs/* 

%files -n xmpcore
%{_javadir}/xmpcore-%{version}.jar
%{_javadir}/xmpcore.jar
%doc BSD-License.txt

%files -n xmpcore-javadoc
%{_javadocdir}/xmpcore


%changelog

* Fri Nov 11 2011 gil <gil> 5.1.2-1.mga2
+ Revision: 166388
- imported package XMP-Toolkit-SDK