Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 25ed9e366fc33ec6773d7a0382b50d1b > files > 1

R-cran-RGtk2-2.12.5.3-1mdv2009.0.src.rpm

%define modulename RGtk2
%define realver 2.12.5-3
%define r_library %{_libdir}/R/library
%define _requires_exceptions libR.so

Summary:	A GTK+ bindings for R
Name:		R-cran-%{modulename}
Version:	%(echo %realver| tr '-' '.')
Release:	%mkrel 1
License:	GPLv2+
Group:		Sciences/Mathematics
Url:		http://cran.r-project.org/web/packages/%{modulename}/index.html
Source0:	http://cran.r-project.org/src/contrib/%{modulename}_%{realver}.tar.gz
BuildRequires:	R-base
BuildRequires:	gtk2-devel
BuildRequires:	libglade2-devel
Requires:	R-base
BuildRoot:	%{_tmppath}/%{name}-%{version}-buildroot

%description
RGtk2 is a binding for R to the GTK2 library and dependent 
libraries. You can use it to construct arbitrarily complex GUI's from R.

%prep
%setup -q -c

%build

R CMD build %{modulename}

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

mkdir -p %{buildroot}/%{r_library}

# (tpg) install
R CMD INSTALL %{modulename} --library=%{buildroot}/%{r_library}

# (tpg) provided by R-base
rm -rf %{buildroot}/%{r_library}/R.css

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{r_library}/%{modulename}


%changelog
* Sun Aug 10 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 2.12.5.3-1mdv2009.0
+ Revision: 270295
- update to new version 2.12.5-3

* Fri Aug 01 2008 Thierry Vignaud <tvignaud@mandriva.com> 2.12.2-6mdv2009.0
+ Revision: 260179
- rebuild
- rebuild

* Fri Feb 29 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 2.12.2-3mdv2008.1
+ Revision: 176955
- remove requires on libR.so

* Sun Feb 17 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 2.12.2-2mdv2008.1
+ Revision: 169428
- add missing buildrequires on libglade2-devel
- fix url

* Thu Feb 14 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 2.12.2-1mdv2008.1
+ Revision: 167240
- add source and spec file
- Created package structure for R-cran-RGtk2.