Репозитории ALT
S: | 1.6.57-alt1 |
5.1: | 1.6.36-alt2 |
4.1: | 1.6.31-alt1 |
4.0: | 1.6.20-alt0.1 |
Группа :: Система/Библиотеки
Пакет: libfox
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%def_disable static
%define major 1.6
%define oname fox
Name: libfox
Version: %major.20
Release: alt0.1
Summary: The FOX C++ GUI Toolkit shared libraries
License: LGPL
Group: System/Libraries
Url: http://www.fox-toolkit.org/fox.html
Packager: Vitaly Lipatov <lav at altlinux.ru>
Source: ftp://ftp.fox-toolkit.org/pub/%oname-%version.tar.bz2
Patch: %name-as-needed.patch
# Automatically added by buildreq on Sun Apr 02 2006
BuildRequires: bzlib-devel gcc-c++ glibc-devel imake libjpeg-devel libmesa-devel libpng-devel libtiff-devel libXcursor-devel libXrandr-devel libXt-devel xorg-cf-files
%description
FOX is a C++-Based Library for Graphical User Interface Development
FOX supports modern GUI features, such as Drag-and-Drop, Tooltips, Tab
Books, Tree Lists, Icons, Multiple-Document Interfaces (MDI), timers,
idle processing, automatic GUI updating, as well as OpenGL/Mesa for
3D graphics. Subclassing of basic FOX widgets allows for easy
extension beyond the built-in widgets by application writers.
%package devel
Summary: Development files and documentation for the FOX GUI toolkit.
Group: Development/C++
Requires: %name = %version-%release
%description devel
The fox-devel package contains the files necessary to develop applications
using the FOX GUI toolkit: the header files, the reswrap resource compiler,
manual pages, and HTML documentation.
%package doc
Summary: Documentation files for the FOX GUI toolkit
Group: Development/C++
%description doc
The package contains HTML documentation.
%package devel-static
Summary: A version of the FOX GUI toolkit for static linking
Group: Development/C++
Requires: %name-devel = %version-%release
%description devel-static
The fox-static package contains the files necessary to link applications
to the FOX GUI toolkit statically (rather than dynamically). Statically
linked applications do not require the library to be installed on the system
running the application.
%package examples
Summary: FOX example applications
Group: Development/Other
Requires: %name = %version-%release
Provides: %oname-examples
Obsoletes: %oname-examples
Obsoletes: %{name}14-examples
%description examples
The fox-example-apps package contains executables for several FOX-based
applications, including Adie, calculator and PathFinder.
%prep
%setup -q -n %oname-%version
%patch
%__subst 's|FXFile::getExecPath(),"Adie.stx"|"%_datadir/fox-examples/","Adie.stx"|g' adie/Adie.cpp
%build
%__autoreconf
export LDFLAGS=-L%_x11libdir
%configure --with-opengl=opengl \
--enable-release \
%{subst_enable static}
%make_build
%install
%makeinstall
%__mv %buildroot%_docdir/%oname-%major %buildroot%_docdir/%name-doc-%major
# remove non-packaged files
%__rm -rf %buildroot%_prefix/%name
%__mkdir -p %buildroot/%_datadir/fox-examples
%__mv %buildroot/%_bindir/Adie.stx %buildroot/%_datadir/fox-examples
%files
%_libdir/*.so.*
%doc AUTHORS README
%files doc
%_docdir/%name-doc-%major/
%files devel
%doc ADDITIONS INSTALL TRACING
%_bindir/%oname-config
%_bindir/reswrap
%_bindir/shutterbug
%_includedir/*
%_libdir/*.so
%_man1dir/reswrap.*
%_man1dir/shutterbug.*
%_pkgconfigdir/*.pc
%if_enabled static
%files -n lib%name-devel-static
%_libdir/.a
%endif
%files examples
%_bindir/adie
%_bindir/PathFinder
%_bindir/calculator
%_datadir/fox-examples
%_man1dir/adie.*
%_man1dir/PathFinder.*
%_man1dir/calculator.*
%changelog
…
Полный changelog можно просмотреть здесь
%define major 1.6
%define oname fox
Name: libfox
Version: %major.20
Release: alt0.1
Summary: The FOX C++ GUI Toolkit shared libraries
License: LGPL
Group: System/Libraries
Url: http://www.fox-toolkit.org/fox.html
Packager: Vitaly Lipatov <lav at altlinux.ru>
Source: ftp://ftp.fox-toolkit.org/pub/%oname-%version.tar.bz2
Patch: %name-as-needed.patch
# Automatically added by buildreq on Sun Apr 02 2006
BuildRequires: bzlib-devel gcc-c++ glibc-devel imake libjpeg-devel libmesa-devel libpng-devel libtiff-devel libXcursor-devel libXrandr-devel libXt-devel xorg-cf-files
%description
FOX is a C++-Based Library for Graphical User Interface Development
FOX supports modern GUI features, such as Drag-and-Drop, Tooltips, Tab
Books, Tree Lists, Icons, Multiple-Document Interfaces (MDI), timers,
idle processing, automatic GUI updating, as well as OpenGL/Mesa for
3D graphics. Subclassing of basic FOX widgets allows for easy
extension beyond the built-in widgets by application writers.
%package devel
Summary: Development files and documentation for the FOX GUI toolkit.
Group: Development/C++
Requires: %name = %version-%release
%description devel
The fox-devel package contains the files necessary to develop applications
using the FOX GUI toolkit: the header files, the reswrap resource compiler,
manual pages, and HTML documentation.
%package doc
Summary: Documentation files for the FOX GUI toolkit
Group: Development/C++
%description doc
The package contains HTML documentation.
%package devel-static
Summary: A version of the FOX GUI toolkit for static linking
Group: Development/C++
Requires: %name-devel = %version-%release
%description devel-static
The fox-static package contains the files necessary to link applications
to the FOX GUI toolkit statically (rather than dynamically). Statically
linked applications do not require the library to be installed on the system
running the application.
%package examples
Summary: FOX example applications
Group: Development/Other
Requires: %name = %version-%release
Provides: %oname-examples
Obsoletes: %oname-examples
Obsoletes: %{name}14-examples
%description examples
The fox-example-apps package contains executables for several FOX-based
applications, including Adie, calculator and PathFinder.
%prep
%setup -q -n %oname-%version
%patch
%__subst 's|FXFile::getExecPath(),"Adie.stx"|"%_datadir/fox-examples/","Adie.stx"|g' adie/Adie.cpp
%build
%__autoreconf
export LDFLAGS=-L%_x11libdir
%configure --with-opengl=opengl \
--enable-release \
%{subst_enable static}
%make_build
%install
%makeinstall
%__mv %buildroot%_docdir/%oname-%major %buildroot%_docdir/%name-doc-%major
# remove non-packaged files
%__rm -rf %buildroot%_prefix/%name
%__mkdir -p %buildroot/%_datadir/fox-examples
%__mv %buildroot/%_bindir/Adie.stx %buildroot/%_datadir/fox-examples
%files
%_libdir/*.so.*
%doc AUTHORS README
%files doc
%_docdir/%name-doc-%major/
%files devel
%doc ADDITIONS INSTALL TRACING
%_bindir/%oname-config
%_bindir/reswrap
%_bindir/shutterbug
%_includedir/*
%_libdir/*.so
%_man1dir/reswrap.*
%_man1dir/shutterbug.*
%_pkgconfigdir/*.pc
%if_enabled static
%files -n lib%name-devel-static
%_libdir/.a
%endif
%files examples
%_bindir/adie
%_bindir/PathFinder
%_bindir/calculator
%_datadir/fox-examples
%_man1dir/adie.*
%_man1dir/PathFinder.*
%_man1dir/calculator.*
%changelog
…
Полный changelog можно просмотреть здесь