19894b4
Name: cloudy
19894b4
Version: 07.02.01
ee3456a
Release: 7%{?dist}
19894b4
Summary: Spectral synthesis code to simulate conditions in interstellar matter
19894b4
19894b4
%define upversion 07_02_01
19894b4
19894b4
Group: Applications/Engineering
19894b4
License: BSD
19894b4
URL: http://www.nublado.org/
19894b4
Source0: ftp://gradj.pa.uky.edu/gary/cloudy_gold/%{name}_v%{upversion}.tar.gz
24c5df7
Source1: cloudy_no_date_footer.tar.gz
19894b4
Patch0: cloudy-doxygen.patch
19894b4
Patch1: cloudy-shared.patch
19894b4
Patch2: cloudy-hotfixes-20080214.patch
19894b4
Buildroot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
19894b4
19894b4
Requires: %{name}-libs = %{version}-%{release}
19894b4
19894b4
BuildRequires: doxygen graphviz tetex-latex
19894b4
19894b4
%description
19894b4
Most of the quantitative information we have about the cosmos comes from 
19894b4
spectroscopy. In many cases the light we analyze was produced by atoms in 
19894b4
the first generations of stars and galaxies.  The spectra are produced by 
19894b4
dilute gas where such properties as the gas kinetic temperature, chemical 
19894b4
state, level of ionization, and level populations, are determined by a 
19894b4
host of microphysical processes rather than by a single temperature. 
19894b4
Analytical solutions are seldom possible and computer solutions are 
19894b4
needed to understand their physical properties. Numerical simulations make 
19894b4
it possible to understand complex physical environments starting from 
19894b4
first principles. Cloudy is designed to do exactly this.
19894b4
19894b4
%package devel
19894b4
Summary: Headers for developing programs that will use %{name}
19894b4
Group: Development/Libraries
19894b4
Requires: %{name}-libs = %{version}-%{release}
19894b4
19894b4
%description devel
19894b4
These are the header files and libraries needed to develop a %{name} 
19894b4
application.
19894b4
19894b4
%package libs
19894b4
Summary: Cloudy runtime libraries
19894b4
Group: System Environment/Libraries
19894b4
%description libs
19894b4
Cloudy is a Spectral synthesis code to simulate conditions in 
19894b4
interstellar matter.  This package contains the %{name} run-time library
19894b4
19894b4
%package docs
19894b4
Summary: Documentation for %{name}, includes full API docs
19894b4
Group: Documentation
6575d92
BuildArch: noarch
19894b4
 
19894b4
%description docs
19894b4
This package contains the full API documentation for %{name}.
19894b4
19894b4
%prep
19894b4
%setup -q -n c%{version}
24c5df7
%setup -q -n c%{version} -T -D -a 1
19894b4
%patch0 -p1
19894b4
%patch1 -p1
19894b4
%patch2 -p1
19894b4
19894b4
%build
19894b4
cd source
19894b4
CXX="%{__cxx}" CXXFLAGS="%{optflags}" CLOUDY_DATA_PATH=%{_datadir}/%{name}/data/ \
19894b4
%{__make} %{?_smp_mflags}
19894b4
cd ..
19894b4
cd doxygen
19894b4
doxygen Doxyfile
19894b4
# Deleting empty files
19894b4
find -empty -exec rm '{}' ';'
19894b4
# Spurious file
19894b4
find -name installdox -exec rm '{}' ';'
19894b4
19894b4
%install
19894b4
%{__rm} -fr %{buildroot}
19894b4
%{__mkdir_p} %{buildroot}/%{_bindir}
19894b4
%{__mkdir_p} %{buildroot}/%{_libdir}
19894b4
%{__mkdir_p} %{buildroot}/%{_includedir}/%{name}
19894b4
%{__mkdir_p} %{buildroot}/%{_datadir}/%{name}/data
19894b4
%{__mkdir_p} %{buildroot}/%{_datadir}/%{name}/scripts
19894b4
%{__mkdir_p} %{buildroot}/%{_datadir}/%{name}/grain
19894b4
%{__install} -m 755 source/cloudy.exe %{buildroot}/%{_bindir}/cloudy
19894b4
%{__install} -m 755 source/libcloudy.so.* %{buildroot}/%{_libdir}
19894b4
%{__cp} -a source/libcloudy.so %{buildroot}/%{_libdir}
19894b4
%{__cp} -a source/cddefines.h %{buildroot}/%{_includedir}/%{name}
19894b4
%{__cp} -a source/cpu.h %{buildroot}/%{_includedir}/%{name}
19894b4
%{__cp} -a source/cddrive.h %{buildroot}/%{_includedir}/%{name}
19894b4
%{__cp} -a data/*.opc %{buildroot}/%{_datadir}/%{name}/data
19894b4
%{__cp} -a data/*.ini %{buildroot}/%{_datadir}/%{name}/data
19894b4
%{__cp} -a data/*.dat %{buildroot}/%{_datadir}/%{name}/data
19894b4
%{__cp} -a data/*.rfi %{buildroot}/%{_datadir}/%{name}/grain
19894b4
%{__cp} -a data/*.szd %{buildroot}/%{_datadir}/%{name}/grain
19894b4
%{__cp} -a data/*.in %{buildroot}/%{_datadir}/%{name}/scripts
19894b4
19894b4
%clean
19894b4
%{__rm} -fr %{buildroot}
19894b4
19894b4
%post libs -p /sbin/ldconfig
19894b4
19894b4
%postun libs -p /sbin/ldconfig
19894b4
19894b4
%files
19894b4
%defattr(-,root,root,-)
19894b4
%doc license.txt readme.txt docs/* 
19894b4
%{_bindir}/*
19894b4
19894b4
%files libs
19894b4
%defattr(-,root,root,-)
19894b4
%doc license.txt data/readme_data.htm data/readme_LineList_dat.txt
19894b4
%{_libdir}/lib%{name}.so.*
7015917
%{_datadir}/%{name}
19894b4
19894b4
%files devel
19894b4
%defattr(-,root,root,-)
19894b4
%doc license.txt 
19894b4
%{_includedir}/%{name}
19894b4
%{_libdir}/lib%{name}.so
19894b4
19894b4
%files docs
19894b4
%defattr(-,root,root,-)
1b50b28
%doc doxygen/html
19894b4
19894b4
%changelog
ee3456a
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 07.02.01-7
ee3456a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ee3456a
6575d92
* Tue Jun 16 2009 Sergio Pascual <sergiopr at fedoraproject.org> 07.02.01-7
6575d92
- Noarch subpackage for docs
6575d92
1264742
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 07.02.01-6
1264742
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
1264742
7015917
* Mon Dec 01 2008 Sergio Pascual <sergiopr at fedoraproject.org> 07.02.01-5
7015917
- Directory not owned by package (bz #473639)
7015917
aa285e4
* Thu Mar 27 2008 Sergio Pascual <sergiopr at fedoraproject.org> 07.02.01-4
aa285e4
- Timestamps in footer of doxygen docs removed (bz #436495)
aa285e4
1765ca2
* Thu Mar 27 2008 Sergio Pascual <sergiopr at fedoraproject.org> 07.02.01-3
aa285e4
- Docs package is noarch (reverted)
1765ca2
1b50b28
* Sat Feb 24 2008 Sergio Pascual <sergiopr at fedoraproject.org> 07.02.01-2
1b50b28
- Too much files in docs
1b50b28
19894b4
* Thu Feb 14 2008 Sergio Pascual <sergiopr at fedoraproject.org> 07.02.01-1
19894b4
- Initial specfile