Fridrich Strba 2017-10-13 06:07:03 +00:00 committed by Git OBS Bridge
parent f34607f09e
commit 7a8f9d0244
2 changed files with 46 additions and 5 deletions

38
autogen.sh Normal file
View File

@ -0,0 +1,38 @@
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
test -n "$srcdir" || srcdir=`dirname "$0"`
test -n "$srcdir" || srcdir=.
olddir=`pwd`
cd "$srcdir"
mkdir -p m4
AUTORECONF=`which autoreconf`
if test -z ${AUTORECONF}; then
echo "*** No autoreconf found, please intall it ***"
exit 1
else
autoreconf -vif || exit $?
fi
PKGCONFIG=`which pkg-config`
if test -z "$PKGCONFIG"; then
echo "*** pkg-config not found, please install it ***"
exit 1
fi
pkg-config --print-errors gobject-introspection-1.0
if [ "$?" != 0 ]; then
echo "You probably need to install 'libgirepository1.0-dev'"
exit 1
fi
# README and INSTALL are required by automake, but may be deleted by clean
# up rules. to get automake to work, simply touch these here, they will be
# regenerated from their corresponding *.in files by ./configure anyway.
touch README INSTALL
cd "$olddir"
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"

View File

@ -26,12 +26,13 @@ Group: Development/Libraries/Java
Url: http://git.gnome.org/browse/java-atk-wrapper/ Url: http://git.gnome.org/browse/java-atk-wrapper/
Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/%{major_version}/%{name}-%{version}.tar.xz Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/%{major_version}/%{name}-%{version}.tar.xz
Source1: HOWTO Source1: HOWTO
Source2: manifest.txt Source2: https://git.gnome.org/browse/java-atk-wrapper/plain/wrapper/manifest.txt
Source3: https://git.gnome.org/browse/java-atk-wrapper/plain/autogen.sh
# Avoid libtool versioning; this library is dynamically loaded from Java code # Avoid libtool versioning; this library is dynamically loaded from Java code
Patch0: jaw-avoid-version.patch Patch0: jaw-avoid-version.patch
BuildRequires: autoconf BuildRequires: autoconf
BuildRequires: automake BuildRequires: automake
BuildRequires: java-devel >= 1.7.0 BuildRequires: java-devel >= 1.7
BuildRequires: libtool BuildRequires: libtool
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: xprop BuildRequires: xprop
@ -44,8 +45,9 @@ BuildRequires: pkgconfig(gdk-2.0)
BuildRequires: pkgconfig(gdk-3.0) BuildRequires: pkgconfig(gdk-3.0)
BuildRequires: pkgconfig(glib-2.0) >= 2.32.0 BuildRequires: pkgconfig(glib-2.0) >= 2.32.0
BuildRequires: pkgconfig(gobject-2.0) BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(gthread-2.0) BuildRequires: pkgconfig(gthread-2.0)
Requires: java >= 1.7.0 Requires: java >= 1.7
Requires: xprop Requires: xprop
%description %description
@ -63,10 +65,11 @@ change of underlying communication mechanism.
%patch0 -p1 %patch0 -p1
cp %{SOURCE1} . cp %{SOURCE1} .
cp %{SOURCE2} wrapper/ cp %{SOURCE2} wrapper/
cp %{SOURCE3} .
%build %build
libtoolize --force --copy --install chmod +x autogen.sh
autoreconf -fi ./autogen.sh
%configure JAVACFLAGS="-source 1.7 -target 1.7" --libdir=%{_libdir}/%{name} %configure JAVACFLAGS="-source 1.7 -target 1.7" --libdir=%{_libdir}/%{name}
make %{?_smp_mflags} make %{?_smp_mflags}