Home | History | Annotate | Download | only in gnome-2-24
      1 #
      2 # spec file for package SUNWgnome-config-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 %include Solaris.inc
     11 
     12 %define maj_min_ver 2.12
     13 %define rev 5
     14 %define  tarball_version %{maj_min_ver}.%{rev}
     15 %define docbasedir %{_datadir}/lib/java/javadoc/java-gnome
     16 %define jardir %{_datadir}/lib/java
     17 %define srcjardir %{_datadir}/lib/java/src/java-gnome
     18 
     19 Name:                    SUNWgnome-config-java
     20 Summary:                 Part of Java-Gnome - Java to Gconf core bindings
     21 Version:                 %{default_pkg_version}
     22 Source:                  http://ftp.gnome.org/pub/gnome/sources/libgconf-java/%{maj_min_ver}/libgconf-java-%{tarball_version}.tar.bz2
     23 SUNW_BaseDir:            %{_basedir}
     24 SUNW_Copyright:          %{name}.copyright
     25 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
     26 URL:                     http://java-gnome.sourceforge.net
     27 
     28 %include default-depend.inc
     29 
     30 Requires: SUNWgnome-base-libs-java
     31 Requires: SUNWbash
     32 Requires: SUNWgnome-config
     33 
     34 BuildRequires: SUNWgnome-base-libs-devel
     35 BuildRequires: SUNWgnome-base-libs-java-devel
     36 BuildRequires: SUNWgnome-config-devel
     37 
     38 %package devel
     39 Summary:           %{summary} - development files
     40 SUNW_BaseDir:      %{_basedir}
     41 %include default-depend.inc
     42 Requires: %name
     43 
     44 %description
     45 libgconf-java base package required by Java-Gnome, Java bindings to core Gconf lib.
     46 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. 
     47 This release series, collectively called java-gnome, consists of glib-java, cairo-java, libgtk-java, libglade-java, libgnome-java, and libgconf-java.
     48 
     49 %prep
     50 %setup -q -n libgconf-java-%{tarball_version}
     51 
     52 %build
     53 export JAVA_HOME=/usr/java
     54 export CFLAGS="-I/usr/java/include/solaris" 
     55 export ACLOCAL_FLAGS="-I /usr/share/lib/java/javadoc/java-gnome/glib-java/macros -I /usr/share/lib/java/javadoc/java-gnome/libgtk-java/macros"
     56 aclocal $ACLOCAL_FLAGS -I .
     57 automake -a -c -f
     58 autoconf
     59 
     60 ./configure --prefix=%{_prefix}                 \
     61             --libexecdir=%{_libexecdir}         \
     62             --sysconfdir=%{_sysconfdir}         \
     63    	    --with-docbasedir=%{docbasedir}	\
     64    	    --with-jardir=%{jardir}	\
     65 	    --with-srcjar			\
     66 	    --with-srcjardir=%{srcjardir} \
     67             --without-gcj-compile               
     68 make
     69 
     70 %install
     71 make install DESTDIR=$RPM_BUILD_ROOT
     72 rm $RPM_BUILD_ROOT%{_libdir}/libgconfjni.la
     73 rm $RPM_BUILD_ROOT%{docbasedir}/libgconf-java-%{tarball_version}/examples/runExample.sh.in
     74 
     75 %clean
     76 rm -rf $RPM_BUILD_ROOT
     77 
     78 %files
     79 %defattr (-, root, bin)
     80 %dir %attr (0755, root, bin) %{_libdir}
     81 %{_libdir}/libgconfjni.so
     82 %{_libdir}/libgconfjni-%{maj_min_ver}.so
     83 %dir %attr(0755, root, sys) %{_datadir}
     84 %dir %attr(0755, root, sys) %{_datadir}/lib
     85 %dir %attr (0755, root, sys) %{jardir}
     86 %{jardir}/gconf%{maj_min_ver}-%{tarball_version}.jar
     87 %{jardir}/gconf%{maj_min_ver}.jar
     88 
     89 %files devel
     90 %defattr (-, root, bin)
     91 %dir %attr (0755, root, bin) %{_libdir}
     92 %dir %attr (0755, root, other) %{_libdir}/pkgconfig
     93 %{_libdir}/pkgconfig/gconf-java.pc
     94 %defattr (-, root, bin)
     95 %dir %attr(0755, root, sys) %{_datadir}
     96 %dir %attr(0755, root, sys) %{_datadir}/lib
     97 %dir %attr(0755, root, sys) %{_datadir}/lib/java
     98 %dir %attr(0755, root, bin) %{_datadir}/lib/java/src
     99 %dir %attr (0755, root, sys) %{srcjardir}
    100 %{srcjardir}/gconf%{maj_min_ver}-src.jar
    101 
    102 %dir %attr (0755, root, other) %{_datadir}/lib/java/javadoc
    103 %dir %attr (0755, root, other) %{docbasedir}
    104 %{docbasedir}/libgconf-java-%{tarball_version}/AUTHORS
    105 %{docbasedir}/libgconf-java-%{tarball_version}/COPYING
    106 %{docbasedir}/libgconf-java-%{tarball_version}/NEWS
    107 %{docbasedir}/libgconf-java-%{tarball_version}/README
    108 %{docbasedir}/libgconf-java-%{tarball_version}/examples/*
    109 %{docbasedir}/libgconf-java-%{tarball_version}/api/*
    110 
    111 %changelog
    112 * Thur Apr 15 2008 - john.rice@sun.com
    113 - Added Copyright file.
    114 
    115 * Tue Oct 31 2006 - damien.carbery@sun.com
    116 - Correct dir perms for javadoc dir, to match SUNWdtrc.
    117 
    118 * Wed Oct 25 2006 - john.rice@sun.com
    119 - Bumped libgconf-java tarball to 2.12.5 for the Java-Gnome 2.16 release
    120 - All patches merged upstream, so removed following local patches
    121 - Solaris/patches/gnome-config-java-01-config.diff
    122 - Solaris/patches/gnome-config-java-02-jni.diff
    123 - Solaris/patches/gnome-config-java-03-example.diff
    124 - Solaris/patches/gnome-config-java-04-installpaths.diff
    125 - Solaris/patches/gnome-config-java-05-doc.diff
    126 - Solaris/patches/gnome-config-java-06-srcjar.diff
    127 - Solaris/patches/gnome-config-java-07-docbasedir.diff
    128 
    129 * Fri Oct 13 2006 - damien.carbery@sun.com
    130 - Correct and sync dir perms with other Java Gnome packages. Change root:other 
    131   to root:sys.
    132 
    133 * Thu Oct 12 2006 - john.rice@sun.com
    134 - Modified srcjardir to conform to PSARC/2006/053
    135 - Add patches to allow doc base dir to be specified in configure
    136 - gnome-config-java-07-docbasedir.diff: change Makefile.am to use docbasedir, 
    137   instead of hardcoded $(datadir)/doc
    138 - Enabled generation of src jar. Added configure option. 
    139 - gnome-config-java-06-srcjar.diff: added BUILD_SRCJAR target to Makefile.am
    140 - Modify patch to so specifying javadir as configure option works
    141 - gnome-config-java-04-installpaths.diff: replace hard coded java dir with 
    142   specifiable javadir.
    143 
    144 * Fri Oct 6 2006 - damien.carbery@sun.com
    145 - Set dir perms of %{_datadir}/lib/java/javadoc to match
    146   SUNWgnome-base-libs-java.spec.
    147 
    148 * Thur Oct 05 2006 - john.rice@sun.com
    149 - Add tarball_version as this needs to be different from the default_pkg_version
    150 
    151 * Wed Oct 04 2006 - damien.carbery@sun.com
    152 - Correct dir perms.
    153 
    154 * Tue Oct 03 2006 - john.rice@sun.com
    155 - Added patch to allow api doc to be generated ("find -mindep 1" in 
    156   Makefile.am is not supported)
    157 
    158 * Mon Oct 02 2006 - john.rice@sun.com
    159 - Added patch for install dirs for jar location on Solaris, better to have as 
    160   a configure option for all OS
    161 - Added aclocal macro flags
    162 
    163 * Thu Sep 28 2006 - john.rice@sun.com
    164 - Replaced mkdir with install -d
    165 
    166 * Wed Sep 27 2006 - john.rice@sun.com
    167 - Corrected SUNWgnome-libs-java version.
    168 - Changed requires to use new Java-Gnome package names.
    169 - Rename to SUNWgnome-config-java, rename patches and add devel package
    170 - Moved location of docs under %{_datadir}/lib/java/javadoc/java-gnome
    171 
    172 * Fri Aug 04 2006 - damien.carbery@sun.com
    173 - Bump to 2.12.4.
    174 
    175 * Wed Jun 28 2006 - damien.carbery@sun.com
    176 - Update Build/Requires after check-deps.pl run.
    177 
    178 * Fri Jun 23 2006 - john.rice@sun.com
    179 - Updates from review
    180 
    181 * Thu Jun 22 2006 - john.rice@sun.com
    182 - Make %files attributes explicit except examples & remove libtool .la archive
    183   file
    184 - Patch0 fix config file so it's correctly generated
    185 - Patch1 fix jni *.c files, incorrectly included header guards in c files 
    186   causing all fncs to be compiled out.
    187 - Patch2 fix runExamples.sh.in to find java and javac correctly
    188 
    189 * Mon Jun 19 2006 - john.rice (at] sun.com
    190 - Initial spec
    191