Sophie

Sophie

distrib > Mandriva > 2006.0 > i586 > by-pkgid > 9ab7e88d970e0d4cc7e62a4d88c7104e > files > 3

twin-0.4.6-5mdk.src.rpm

%define name twin 
%define version 0.4.6
%define release 5mdk

%define major 0
%define libname %mklibname %name %major
%define libnamedevel %mklibname %name %major -d

Summary: A text mode Windows Manager
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}-%{version}.tar.bz2
Patch0: twin-0.4.6-autoconf-fix.patch.bz2
License: GPL
Group: Terminals
Url: http://linuz.sns.it/~max/twin/
BuildRoot: %{_tmppath}/%{name}-buildroot
BuildRequires: bison automake1.8
BuildRequires: X11-devel libgtk+-devel libgpm-devel libggi-devel
#Prefix: %{_prefix}

%description
Twin is a text-mode windowing environment:
it draws and manages text windows on a text-mode display,
like X11 does for graphical windows. It has a built-in window manager 
and terminal emulator, and can be used as server for remote clients
in the same style as X11. It can display on Linux console, on X11 
and inside itself. 

%package -n %libname
Summary: Libraries from twin
Group: System/Libraries
Provides: lib%name = %version-%release

%description -n %libname
Twin is a text-mode windowing environment.
This package contain shared libraries to run twin.

%package -n %libnamedevel
Summary: Devellopment files from twin
Group: Development/Other
Requires: %libname = %version-%release
Provides: lib%name-devel = %version-%release

%description -n %libnamedevel
Twin is a text-mode windowing environment.
You need this package to build twin applications

%prep
%setup -q
%patch0 -p1 -b .autoconf

# It stupidly rerun configure on make
perl -pi -e 's|\./configure.*||' Makefile.in

export FORCE_AUTOCONF_2_5=1
aclocal-1.8
autoconf
%configure

%build
# 0.4.5 don't like %make
make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall

%post -n %{libname} -p /sbin/ldconfig

%postun -n %{libname} -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%_bindir/*
%_sbindir/twdm
%_libdir/twin/system.*
%_libdir/twin/.twenvrc.sh
%_libdir/twin/.twinrc
%_mandir/man1/%name.1.bz2
%dir %_datadir/%name
%_datadir/%name/*

%files -n %libname
%defattr(-,root,root)
%dir %_libdir/TT
%dir %_libdir/TT/HW
%_libdir/TT/HW/*.so.*
%_libdir/*.so.*
%dir %_libdir/twin
%dir %_libdir/twin/modules
%_libdir/twin/modules/*.so.*
%dir %_libdir/twin/modules/HW
%_libdir/twin/modules/HW/*.so.*

%files -n %libname-devel
%defattr(-,root,root)
%dir %_includedir/TT
%_includedir/TT/*
%dir %_includedir/Tutf
%_includedir/Tutf/*
%_libdir/*.so
%_libdir/*.a
%dir %_includedir/Tw
%_includedir/Tw/*

%changelog
* Mon Nov 01 2004 Christiaan Welvaart <cjw@daneel.dyndns.org> 0.4.6-5mdk
- fix build with new autotools
- add BuildRequires: X11-devel libgtk+-devel libgpm-devel libggi-devel

* Sat Aug 30 2003 Marcel Pol <mpol@gmx.net> 0.4.6-4mdk
- buildrequires bison

* Sun May 25 2003 Olivier Thauvin <thauvin@aerov.jussieu.fr> 0.4.6-3mdk
- distlint again

* Thu May 01 2003 Olivier Thauvin <thauvin@aerov.jussieu.fr> 0.4.6-2mdk
- distlint fix

* Mon Mar 31 2003 Olivier Thauvin <thauvin@aerov.jussieu.fr> 0.4.6-1mdk
- 2.4.6

* Wed Feb 26 2003 Olivier Thauvin <thauvin@aerov.jussieu.fr> 0.4.5-2mdk
- fix configure

* Tue Feb 25 2003 Olivier Thauvin <thauvin@aerov.jussieu.fr> 0.4.5-1mdk
- First mdk package