Name: cloudy Version: 08.00 Release: 7%{?dist} Summary: Spectral synthesis code to simulate conditions in interstellar matter %define upversion 08.00 Group: Applications/Engineering License: BSD URL: http://www.nublado.org/ Source0: ftp://gradj.pa.uky.edu/gary/cloudy_gold/c%{upversion}.tar.gz Source1: cloudy_no_date_footer.tar.gz Patch0: cloudy-doxygen.patch Patch1: cloudy-shared.patch Buildroot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) Requires: %{name}-libs = %{version}-%{release} BuildRequires: doxygen graphviz tetex-latex %description Most of the quantitative information we have about the cosmos comes from spectroscopy. In many cases the light we analyze was produced by atoms in the first generations of stars and galaxies. The spectra are produced by dilute gas where such properties as the gas kinetic temperature, chemical state, level of ionization, and level populations, are determined by a host of microphysical processes rather than by a single temperature. Analytical solutions are seldom possible and computer solutions are needed to understand their physical properties. Numerical simulations make it possible to understand complex physical environments starting from first principles. Cloudy is designed to do exactly this. %package devel Summary: Headers for developing programs that will use %{name} Group: Development/Libraries Requires: %{name}-libs = %{version}-%{release} %description devel These are the header files and libraries needed to develop a %{name} application. %package libs Summary: Cloudy runtime libraries Group: System Environment/Libraries %description libs Cloudy is a Spectral synthesis code to simulate conditions in interstellar matter. This package contains the %{name} run-time library %package doc Summary: Documentation for %{name} Group: Documentation BuildArch: noarch %description doc This package contains the usage documentation for %{name}. %package devel-doc Summary: Developer documentation for %{name} Group: Documentation BuildArch: noarch Obsoletes: cloudy-docs < 08.00-1 Provides: cloudy-docs = %{version}-%{release} %description devel-doc Developer documentation for %{name} %prep %setup -q -n c%{version} %setup -q -n c%{version} -T -D -a 1 %patch0 -p1 %patch1 -p1 chmod +x source/precompile.pl %build cd source make %{?_smp_mflags} CXX="%{__cxx}" CXXFLAGS="%{optflags}" \ CLOUDY_DATA_PATH=%{_datadir}/%{name}/data/ cd .. cd doxygen doxygen Doxyfile # Deleting empty files find -empty -exec rm '{}' ';' # Spurious file find -name installdox -exec rm '{}' ';' %install rm -rf %{buildroot} mkdir -p %{buildroot}/%{_bindir} mkdir -p %{buildroot}/%{_libdir} mkdir -p %{buildroot}/%{_includedir}/%{name} mkdir -p %{buildroot}/%{_datadir}/%{name}/data mkdir -p %{buildroot}/%{_datadir}/%{name}/scripts mkdir -p %{buildroot}/%{_datadir}/%{name}/grain install -m 755 source/cloudy.exe %{buildroot}/%{_bindir}/cloudy install -m 755 source/libcloudy.so.* %{buildroot}/%{_libdir} cp -a source/libcloudy.so %{buildroot}/%{_libdir} cp -a source/cddefines.h %{buildroot}/%{_includedir}/%{name} cp -a source/cpu.h %{buildroot}/%{_includedir}/%{name} cp -a source/cddrive.h %{buildroot}/%{_includedir}/%{name} cp -a data/*.opc %{buildroot}/%{_datadir}/%{name}/data cp -a data/*.ini %{buildroot}/%{_datadir}/%{name}/data cp -a data/*.dat %{buildroot}/%{_datadir}/%{name}/data cp -a data/*.rfi %{buildroot}/%{_datadir}/%{name}/grain cp -a data/*.szd %{buildroot}/%{_datadir}/%{name}/grain cp -a data/*.in %{buildroot}/%{_datadir}/%{name}/scripts %clean %{__rm} -fr %{buildroot} %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc readme.txt %{_bindir}/* %files doc %defattr(-,root,root,-) %doc license.txt docs/* %files libs %defattr(-,root,root,-) %doc license.txt data/readme_data.htm data/readme_LineList_dat.txt %{_libdir}/lib%{name}.so.* %{_datadir}/%{name} %files devel %defattr(-,root,root,-) %doc license.txt %{_includedir}/%{name} %{_libdir}/lib%{name}.so %files devel-doc %defattr(-,root,root,-) %doc license.txt doxygen/html %changelog * Wed Feb 13 2013 Fedora Release Engineering - 08.00-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Jul 18 2012 Fedora Release Engineering - 08.00-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Thu Jan 12 2012 Fedora Release Engineering - 08.00-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Feb 08 2011 Fedora Release Engineering - 08.00-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Jul 09 2010 Sergio Pascual - 08.00-3 - Reorganized help docs * Fri Jul 09 2010 Sergio Pascual - 08.00-2 - Include license as %doc in -doc subpackages * Sun Apr 04 2010 Sergio Pascual - 08.00-1 - New upstream source - Devel documentations in its own subpackage devel-doc - Program documentation in doc subpackage (bz #492431) * Fri Jul 24 2009 Fedora Release Engineering - 07.02.01-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Tue Jun 16 2009 Sergio Pascual - 07.02.01-7 - Noarch subpackage for docs * Tue Feb 24 2009 Fedora Release Engineering - 07.02.01-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Mon Dec 01 2008 Sergio Pascual - 07.02.01-5 - Directory not owned by package (bz #473639) * Thu Mar 27 2008 Sergio Pascual - 07.02.01-4 - Timestamps in footer of doxygen docs removed (bz #436495) * Thu Mar 27 2008 Sergio Pascual - 07.02.01-3 - Docs package is noarch (reverted) * Sat Feb 24 2008 Sergio Pascual - 07.02.01-2 - Too much files in docs * Thu Feb 14 2008 Sergio Pascual - 07.02.01-1 - Initial specfile