Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37042790
en ru br
Репозитории ALT
S:1.2.4-alt1
5.1: 1.0.90-alt1.1
4.1: 1.0.90-alt1
4.0: 1.0.90-alt1
3.0: 1.0-alt1
www.altlinux.org/Changes

Группа :: Разработка/Прочее
Пакет: xforms

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

BuildRequires: chrpath
%def_disable static
%define suff sp1
Name: xforms
Version: 1.0.93
Release: alt3

Summary: A GUI toolkit based on Xlib for the X Window System

Group: Development/Other
License: LGPL
#Url: http://world.std.com/~xforms
URL:     http://www.nongnu.org/xforms/

Packager: Igor Vlasenko <viy at altlinux.ru>

BuildConflicts: lib%name

Source: http://download.savannah.nongnu.org/releases/xforms/%name-%version%suff.tar.gz

# manually removed: libxforms-devel

# Automatically added by buildreq on Sun Feb 05 2006
BuildRequires: gccmakedep imake libX11-devel libXext-devel libXpm-devel libGL-devel libjpeg-devel xorg-cf-files xorg-x11-proto-devel libICE-devel libXpm-devel libSM-devel
BuildRequires: chrpath

%description
XForms GUI library

%package -n lib%name
Summary: A GUI toolkit based on Xlib for the X Window System
Group: Development/Other
Provides: %name = %version
Obsoletes: %name

%description -n lib%name
XForms features a rich set of objects (like buttons, sliders,
and menus) integrated into an easy and efficient object/event callback
execution model, allowing for fast and easy construction of X applications.
The library is extensible--new objects can easily be created and added.

If you're installing xforms, you may want to also install xforms-devel,
which is a near-WYSIWYG GUI builder which works with XForms.

%package -n lib%name-demos
Group: Development/Other
Summary: XForms demonstration programs
Provides: %name-demos = %version
Obsoletes: %name-demos
Requires: lib%name = %version-%release

%description -n lib%name-demos
Xforms-demos includes the full source code to 50+ demonstration
programs.  If you plan on using XForms and you aren't an expert, you should
download xforms-demos and take a look at them.

%package -n lib%name-devel
Group: Development/Other
Summary: An XForms GUI builder and other development stuff
Provides: %name-devel = %version
Obsoletes: %name-devel
Requires: lib%name = %version-%release

%description -n lib%name-devel
Xforms-devel is a near-WYSIWYG GUI builder that can be used to
design your UI and write the corresponding C code for you.  If you are
installing xforms, you may want to also install xforms-devel.  If you want
to install xforms-devel, you must also install xforms.

%if_enabled static
%package -n lib%name-devel-static
Group: Development/Other
Summary: Static Libraries for lib%name
Requires: lib%name-devel = %version-%release

%description -n lib%name-devel-static
Static Libraries for lib%name
%endif

%prep
%setup -q -n %name-%version%suff

%build
./autogen.sh
%configure \
%if_disabled static
 --disable-static \
%endif
 --enable-optimization="$RPM_OPT_FLAGS"

%make_build X_PRE_LIBS="" XPM_LIB=-lXpm
make -C demos

%install
#make install DESTDIR=$RPM_BUILD_ROOT
# hack around
make install DESTDIR=$RPM_BUILD_ROOT includedir=%_includedir/xforms

#install additional demo progs

pushd demos
   for i in *
   do
[ -d $i ] && continue
[ -x $i ] && install -pm755 $i %buildroot%_bindir
   done
popd

for i in /usr/bin/fd2ps /usr/bin/fdesign %_libdir/libformsGL.so.2.0.0 %_libdir/libflimage.so.2.0.0; do
chrpath -d $RPM_BUILD_ROOT$i
done

%files -n lib%name
%doc  ChangeLog *README* NEWS COPYING.LIB
%_bindir/fd2ps
%_libdir/*.so.*
%_man1dir/fd2ps.*
%_man5dir/*

%files -n lib%name-demos
%_bindir/*
%exclude %_bindir/fd2ps
%exclude %_bindir/fdesign

%files -n lib%name-devel
%_bindir/fdesign
%_includedir/xforms/*.h
%_libdir/*.so
%_man1dir/fdesign.*

%if_enabled static
%files -n lib%name-devel-static
%_libdir/*.a
%endif

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin