Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > 2baf3912d526583d0bca47c300deafcf > files > 1

pythia-8.1-4mdv2010.1.src.rpm

%define name	pythia
%define major	8
%define minor	1
%define version	%{major}.%{minor}
%define release	%mkrel 4

%define devname	%mklibname %{name} -d

Name:		%{name}
Group:		Sciences/Physics
License:	GPLv2
Version:	%{version}
Release:	%{release}
Summary:	High-energy pp and pbarp collisions simulation
URL:		http://home.thep.lu.se/~torbjorn/Pythia.html
Source0:	http://home.thep.lu.se/~torbjorn/pythia8/pythia8130.tgz
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

BuildRequires:	hepmc-devel

%description
Pythia 8 release is focussed towards LHC and Tevatron applications, i.e.
high-energy pp and pbarp collisions. Also e+e- and mu+mu- annihilation
processes may be simulated, but not e.g. ep, gammap or gammagamma collisions. 


#------------------------------------------------------------------------
%package	-n %{devname}
Summary:	Pythia runtime and development files
Group:		Development/C++
Provides:	%{name}-devel = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}

%description	-n %{devname}
Pythia runtime and development files.


#------------------------------------------------------------------------
%prep
%setup -q -n pythia8130


#------------------------------------------------------------------------
%build
./configure --enable-shared --with-hepmc=%{_prefix}
%make


#------------------------------------------------------------------------
%install
mkdir -p %{buildroot}%{_libdir}
cp -fa lib/*.so lib/archive/*.a %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_includedir}/%{name}
cp -fa include/[A-Z]*.h %{buildroot}%{_includedir}/%{name}
mkdir -p %{buildroot}%{_datadir}/%{name}
cp -fa AUTHORS GUIDELINES examples htmldoc phpdoc xmldoc worksheet.pdf %{buildroot}%{_datadir}/%{name}


#------------------------------------------------------------------------
%clean
rm -fr %{buildroot}


#------------------------------------------------------------------------
%files		-n %{devname}
%defattr(-,root,root)
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_includedir}/%{name}/*.h
%{_libdir}/*.a
%{_libdir}/*.so


%changelog
* Fri May 21 2010 Frederic Crozat <fcrozat@mandriva.com> 8.1-4mdv2010.1
+ Revision: 545674
- force rebuild

* Thu Dec 03 2009 Paulo Andrade <pcpa@mandriva.com.br> 8.1-3mdv2010.1
+ Revision: 473113
+ rebuild (emptylog)

* Thu Dec 03 2009 Paulo Andrade <pcpa@mandriva.com.br> 8.1-2mdv2010.1
+ Revision: 473110
- Create only a devel package
- Move files from docdir to datadir to make it easier to adapt PYTHIA8DIR

* Wed Dec 02 2009 Paulo Andrade <pcpa@mandriva.com.br> 8.1-1mdv2010.1
+ Revision: 472732
- Import pythia 8.1
- pythia