bb93269
Name:		votca-csg
75be9ab
Version:	1.2.3
09f8a38
Release:	8%{?dist}
bb93269
Summary:	VOTCA coarse-graining engine
bb93269
Group:		Applications/Engineering
bb93269
License:	ASL 2.0
bb93269
URL:		http://www.votca.org
bb93269
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
bb93269
Source0:	http://votca.googlecode.com/files/%{name}-%{version}.tar.gz
d4ee546
# Properly link against pthreads
d4ee546
Patch0:		votca-csg-1.2.3-dso.patch
bb93269
ced5e4c
BuildRequires:	cmake
bb93269
BuildRequires:	doxygen
bb93269
BuildRequires:	gromacs-devel
bb93269
BuildRequires:	votca-tools-devel = %{version}
d4ee546
BuildRequires:	txt2tags
bb93269
bb93269
Requires:	%{name}-common = %{version}-%{release}
bb93269
Requires:	%{name}-libs = %{version}-%{release}
bb93269
bb93269
%description
bb93269
Versatile Object-oriented Toolkit for Coarse-graining Applications (VOTCA) is
bb93269
a package intended to reduce the amount of routine work when doing systematic
bb93269
coarse-graining of various systems. The core is written in C++.
bb93269
bb93269
This package contains the VOTCA coarse-graining engine.
bb93269
bb93269
bb93269
%package libs
bb93269
Summary:	Libraries for VOTCA coarse-graining engine
bb93269
Group:		System Environment/Libraries
bb93269
bb93269
%description libs
bb93269
Versatile Object-oriented Toolkit for Coarse-graining Applications (VOTCA) is
bb93269
a package intended to reduce the amount of routine work when doing systematic
bb93269
coarse-graining of various systems. The core is written in C++.
bb93269
bb93269
This package contains libraries for the VOTCA coarse-graining engine.
bb93269
bb93269
%package devel
bb93269
Summary:	Development headers and libraries for VOTCA coarse-graining Engine
bb93269
Group:		Development/Libraries
bb93269
Requires:	%{name}-libs = %{version}-%{release}
bb93269
Requires:	votca-tools-devel
bb93269
bb93269
%description devel
bb93269
Versatile Object-oriented Toolkit for Coarse-graining Applications (VOTCA) is
bb93269
a package intended to reduce the amount of routine work when doing systematic
bb93269
coarse-graining of various systems. The core is written in C++.
bb93269
bb93269
This package contains development headers and libraries for the VOTCA
bb93269
coarse-graining engine.
bb93269
bb93269
%package common
bb93269
Summary:	Architecture independent data files for VOTCA
bb93269
Group:		Applications/Engineering
bb93269
BuildArch:	noarch
bb93269
bb93269
%description common
bb93269
Versatile Object-oriented Toolkit for Coarse-graining Applications (VOTCA) is
bb93269
a package intended to reduce the amount of routine work when doing systematic
bb93269
coarse-graining of various systems. The core is written in C++.
bb93269
bb93269
This package contains architecture independent data files for the VOTCA
bb93269
coarse-graining engine.
bb93269
bb93269
%package bash
bb93269
Summary:	Bash completion for votca
bb93269
Group:		System Environment/Shells
bb93269
Requires:	%{name} = %{version}-%{release}
bb93269
Requires:	bash-completion
bb93269
BuildArch:	noarch
bb93269
bb93269
%description bash
bb93269
Versatile Object-oriented Toolkit for Coarse-graining Applications (VOTCA) is
bb93269
a package intended to reduce the amount of routine work when doing systematic
bb93269
coarse-graining of various systems. The core is written in C++.
bb93269
bb93269
This package contains bash completion support for the VOTCA coarse-graining
bb93269
engine.
bb93269
bb93269
bb93269
%prep
bb93269
%setup -q
d4ee546
%patch0 -p1
bb93269
bb93269
%build
ced5e4c
mkdir %{_target_platform}
ced5e4c
cd %{_target_platform}
ced5e4c
# Get rid of -O3 in default flags
ced5e4c
%{cmake} .. -DLIB=%{_lib} -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG"
bb93269
make %{?_smp_mflags}
bb93269
bb93269
%install
bb93269
rm -rf %{buildroot}
ced5e4c
make -C %{_target_platform} install DESTDIR=%{buildroot} INSTALL="install -p"
bb93269
# Install bash completion file
bb93269
install -D -p -m 644 scripts/csg-completion.bash %{buildroot}%{_sysconfdir}/bash_completion.d/votca
bb93269
bb93269
%clean
bb93269
rm -rf %{buildroot}
bb93269
bb93269
%post libs -p /sbin/ldconfig
bb93269
%postun libs -p /sbin/ldconfig
bb93269
bb93269
%files
bb93269
%defattr(-,root,root,-)
ced5e4c
%doc NOTICE README
bb93269
%{_bindir}/csg_*
bb93269
%{_bindir}/multi_g_*
f9b9df1
%{_mandir}/man1/csg_*.1.*
f9b9df1
%{_mandir}/man1/multi_g_*.1.*
f9b9df1
%{_mandir}/man7/votca-csg.7.*
bb93269
bb93269
%files common
bb93269
%defattr(-,root,root,-)
bb93269
%{_datadir}/votca
bb93269
bb93269
%files libs
bb93269
%defattr(-,root,root,-)
bb93269
%doc LICENSE
bb93269
%{_libdir}/libvotca_csg.so.*
bb93269
bb93269
%files devel
bb93269
%defattr(-,root,root,-)
bb93269
%{_includedir}/votca/csg/
bb93269
%{_libdir}/libvotca_csg.so
bb93269
%{_libdir}/pkgconfig/libvotca_csg.pc
bb93269
bb93269
%files bash
bb93269
%defattr(-,root,root,-)
bb93269
%{_sysconfdir}/bash_completion.d/votca
bb93269
bb93269
bb93269
%changelog
09f8a38
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-8
09f8a38
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
09f8a38
99aac0e
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-7
99aac0e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
99aac0e
96d1034
* Fri May 23 2014 David Tardon <dtardon@redhat.com> - 1.2.3-6
96d1034
- rebuild for boost 1.55.0
96d1034
74b5c18
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-5
74b5c18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
74b5c18
Petr Machata 4f92fe9
* Sun Jul 28 2013 Petr Machata <pmachata@redhat.com> - 1.2.3-4
Petr Machata 4f92fe9
- Rebuild for boost 1.54.0
Petr Machata 4f92fe9
48c9919
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 1.2.3-3
48c9919
- Perl 5.18 rebuild
48c9919
657c892
* Thu Mar 07 2013 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.2.3-2
657c892
- Rebuild for Gromacs 4.6.1.
657c892
75be9ab
* Sun Feb 10 2013 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.2.3-1
75be9ab
- Update to 1.2.3.
75be9ab
9fc5791
* Sat Feb 09 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 1.2.1-6
9fc5791
- Rebuild for Boost-1.53.0
9fc5791
9172e0c
* Wed Aug 15 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.2.1-5
9172e0c
- Bump spec due to boost update.
9172e0c
dd09f94
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-4
dd09f94
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
dd09f94
1fda092
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-3
1fda092
- Rebuilt for c++ ABI breakage
1fda092
cce353f
* Tue Jan 10 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.2.1-2
cce353f
- Fix FTBFS on rawhide.
cce353f
252a66e
* Wed Nov 23 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.2.1-1.1
252a66e
- Bump due to boost update.
252a66e
ced5e4c
* Thu Aug 25 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.2.1-1
ced5e4c
- Update to 1.2.1.
ced5e4c
85ebd60
* Sat Jul 23 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.1-3
85ebd60
- Bump spec due to new boost.
85ebd60
ff30d2b
* Thu Apr 07 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.1-2
ff30d2b
- Bump spec due to boost upgrade.
ff30d2b
f9b9df1
* Mon Feb 21 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.1-1
f9b9df1
- Update to 1.1.
f9b9df1
4f372d9
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-4
4f372d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
4f372d9
abe7711
* Sun Feb 06 2011 Thomas Spura <tomspur@fedoraproject.org> - 1.0.1-3
abe7711
- rebuild for new boost
abe7711
bb93269
* Wed Dec 08 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.0.1-2
bb93269
- Fix spelling error in Requires of -devel, preserve timestamps upon install.
bb93269
bb93269
* Tue Dec 07 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.0.1-1
bb93269
- Update to 1.0.1.
bb93269
- Added bash completion package.
bb93269
bb93269
* Thu Nov 25 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.0-1
bb93269
- First release.