Home | History | Annotate | Download | only in gnome-2-16
      1 #
      2 # spec file for package gnome-libs-java.spec
      3 #
      4 # Copyright (c) 2004 Sun Microsystems, Inc.
      5 # This file and all modifications and additions to the pristine
      6 # package are under the same license as the package itself.
      7 #
      8 # Owner: jmr
      9 #
     10 %define maj_min_ver 2.12
     11 %define rev 6
     12 
     13 %ifos solaris
     14 %define docbasedir %{_datadir}/lib/java/javadoc/java-gnome
     15 %define macrobasedir %{_datadir}/lib/java/javadoc/java-gnome
     16 %define jardir %{_datadir}/lib/java
     17 %define srcjardir %{_datadir}/lib/java/src/java-gnome
     18 %else
     19 %define docbasedir %{_datadir}/doc
     20 %define macrobasedir %{_datadir}
     21 %define jardir %{_datadir}/java
     22 %define srcjardir %{_datadir}/java
     23 %endif
     24 
     25 Name:                    gnome-libs-java
     26 License:		 LGPL	
     27 Group:			 System/Library
     28 Version:                 %{maj_min_ver}.%{rev}
     29 Release:		 1
     30 Distribution:		 Java Desktop System
     31 Vendor:			 Sun Microsystems, Inc.
     32 Summary:                 Part of Java-Gnome - Java to Gnome core bindings
     33 Source:                  http://www.gtlib.gatech.edu/pub/gnome/sources/libgnome-java/%{maj_min_ver}/libgnome-java-%{version}.tar.bz2
     34 URL:                     http://java-gnome.sourceforge.net
     35 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
     36 Docdir:			 %{_defaultdocdir}/doc
     37 Autoreqprov:		 on
     38 
     39 #owner:jmr date:2006-10-27 type:bug bugzilla:365850
     40 Patch1:       gnome-java-01-runExample.diff
     41 
     42 Requires: gtk2-java >= 2.10.0
     43 Requires: glib2-java >= 0.4.0
     44 Requires: cairo-java >= 1.0.6
     45 Requires: gnome >= 2.0
     46 BuildRequires: gtk2-java-devel >= 2.10.0
     47 BuildRequires: glib2-java-devel >= 0.4.0
     48 BuildRequires: cairo-java-devel >= 1.0.6
     49 
     50 %package devel
     51 Summary:                 %{summary} - development files
     52 Requires:                %name
     53 
     54 %description
     55 gnome-java base package required by Java-Gnome, Java bindings to core Gnome libs.
     56 Java-Gnome is a set of Java bindings for the GNOME and GTK+ libraries that allow GNOME and GTK+ applications to be written in Java. 
     57 This release series, collectively called java-gnome, consists of glib-java, cairo-java, libgtk-java, libglade-java, libgnome-java, and libgconf-java.
     58 
     59 %prep
     60 %setup -q -n libgnome-java-%{version}
     61 %patch1 -p1
     62 
     63 %build
     64 aclocal $ACLOCAL_FLAGS -I .
     65 automake -a -c -f
     66 autoconf
     67 ./configure --prefix=%{_prefix}                 \
     68             --libexecdir=%{_libexecdir}         \
     69             --sysconfdir=%{_sysconfdir}         \
     70    	    --with-docbasedir=%{docbasedir}	\
     71    	    --with-jardir=%{jardir}		\
     72 	    --with-srcjar			\
     73 	    --with-srcjardir=%{srcjardir}       \
     74             --without-gcj-compile               
     75 make
     76 
     77 %install
     78 make install DESTDIR=$RPM_BUILD_ROOT
     79 rm $RPM_BUILD_ROOT%{_libdir}/libgnomejni.la
     80 rm $RPM_BUILD_ROOT%{docbasedir}/libgnome-java-%{version}/examples/runExample.sh.in
     81 
     82 %clean
     83 rm -rf $RPM_BUILD_ROOT
     84 
     85 %files
     86 %defattr (-, root, bin)
     87 %dir %attr (0755, root, bin) %{_libdir}
     88 %{_libdir}/libgnomejni-%{maj_min_ver}.so
     89 %{_libdir}/libgnomejni.so
     90 %dir %attr(0755, root, sys) %{_datadir}
     91 %dir %attr (0755, root, other) %{jardir}
     92 %{jardir}/libgnome%{maj_min_ver}-%{version}.jar
     93 %{jardir}/libgnome%{maj_min_ver}.jar
     94 
     95 %files devel
     96 %defattr (-, root, bin)
     97 %dir %attr (0755, root, other) %{_libdir}/pkgconfig
     98 %{_libdir}/pkgconfig/gnome2-java.pc
     99 %dir %attr(0755, root, sys) %{_datadir}
    100 %dir %attr (0755, root, other) %{srcjardir}
    101 %{srcjardir}/gnome%{maj_min_ver}-src.jar
    102 
    103 %dir %attr(0755, root, sys) %{_datadir}
    104 %dir %attr (0755, root, other) %{docbasedir}
    105 %{docbasedir}/libgnome-java-%{version}/AUTHORS
    106 %{docbasedir}/libgnome-java-%{version}/COPYING
    107 %{docbasedir}/libgnome-java-%{version}/NEWS
    108 %{docbasedir}/libgnome-java-%{version}/README
    109 %{docbasedir}/libgnome-java-%{version}/examples/*
    110 %{docbasedir}/libgnome-java-%{version}/tutorial/*
    111 %{docbasedir}/libgnome-java-%{version}/api/*
    112 
    113 %changelog
    114 * Fri Oct 27 2006 - john.rice@sun.com
    115 - Added local patch for runExample.sh.in also submitted upstream
    116   Bugzilla #365850 java-gnome: Problem with generated runExample.sh for libgnome-java
    117 - gnome-java-01-runExample.diff: Fix for runExample.sh.in so jar paths and libdir
    118   are correctly set
    119 
    120 * Wed Oct 25 2006 - john.rice@sun.com
    121 - Bumped libgnome-java tarball to 2.12.6 for the Java-Gnome 2.16 release
    122 - All patches merged upstream, so removed following local patches
    123 - Solaris/patches/gnome-libs-java-01-example.diff
    124 - patches/gnome-libs-java-02-uninstalled.diff
    125 - Solaris/patches/gnome-libs-java-03-installpaths.diff
    126 - Solaris/patches/gnome-libs-java-04-doc.diff
    127 - patches/gnome-libs-java-05-srcjar.diff
    128 - patches/gnome-libs-java-06-docbasedir.diff
    129 
    130 * Thur Oct 12 2006 - john.rice@sun.com
    131 - Modify installpaths patch to allow jardir to be specified in configure
    132 - Add patch to allow api doc to be created
    133 - gnome-java-04-doc.diff: work around unsupported "find -mindep" in generating
    134   api doc list
    135 - Enabled creation of srcjar with configure switch
    136 - gnome-java-05-srcjar.diff: added BUILD_SRCJAR target to Makefile.am
    137 - Add patches to allow doc base dir to be specified in configure
    138 - gnome-java-06-docbasedir.diff: patch to use docbasedir in Makefile.am
    139 
    140 * Tues Oct 3 2006 - john.rice@sun.com
    141 - Corrected patch name from gnome-java-03-installpaths.diff to
    142   gnome-libs-java-03-installpaths.diff
    143 
    144 * Mon Oct 2 2006 - john.rice@sun.com
    145 - Added patch for install dirs for jar location on Solaris, better to have as 
    146   a configure option for all OS
    147 - Initial spec
    148 
    149