Sophie

Sophie

distrib > Mandriva > 2008.0 > x86_64 > by-pkgid > e85b9337e9c27caba1344c2864cd3b2e > files > 2

unignuplot-2.0-4mdk.src.rpm

%define name unignuplot
%define version 2.0
%define release %mkrel 4
%define subversion D

Summary:	Simplify the command line interface with GNUPlot
Name:		%{name}
Version:	%{version}
Release:	%{release}
Group:		System/Libraries
License:	GPL
Source:		%{name}-%{version}.0%{subversion}.tar.bz2

URL:		http://www.fltk.org
BuildRoot:	%_tmppath/%name-%version-%release-root
Requires:	tk, gnuplot
BuildArch:	noarch

%description
UniGNUPlot is a Simple TK/Tcl based program what it's primary goal 
is simplify the command line interface with GNUPlot.
UniGNUPlot is a GNUplot Graphical Front-End as simple as you can 
only type the expresion, some parameter and that's all. 

%prep
rm -rf $RPM_BUILD_ROOT
%setup -q -n %{name}%{subversion}
find -name "*~" | xargs rm -f

%clean
rm -rf $RPM_BUILD_ROOT

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p  $RPM_BUILD_ROOT%{_bindir}
mkdir -p  $RPM_BUILD_ROOT%{_datadir}/%{name}/lang

install -m 755 %{name}-%{version}.0%{subversion}.tcl $RPM_BUILD_ROOT%{_bindir}
install -m 755 lang/* $RPM_BUILD_ROOT%{_datadir}/%{name}/lang

#Fixing lang path
perl -pi -e "s|lang/lang_|/usr/share/unignuplot/lang/lang_|g" $RPM_BUILD_ROOT%{_bindir}/%{name}-%{version}.0%{subversion}.tcl

%files
%defattr(-,root,root)
%doc README COPYING CHANGES Doc
%{_bindir}/%{name}-%{version}.0%{subversion}.tcl
%{_datadir}/%{name}/lang/*

%changelog
* Mon Dec 19 2005 Erwan Velu <erwan@seanodes.com> 2.0-4mdk
- D release

* Fri Feb 14 2004 Erwan Velu <erwan@mandrakesoft.com> 2.0-3mdk
- Rebuild
* Sat Jan 11 2003 Lenny Cartier <lenny@mandrakesoft.com> 2.0-2mdk
- wrap too long lines in description & summary

* Wed Dec 17 2002 Erwan Velu <erwan@mandrakesoft.com> 2.0-1mdk
- First MDK release