libctl/libctl.spec

89 lines
2.4 KiB
RPMSpec
Raw Normal View History

Name: libctl
Version: 3.2.1
Release: 2mamba
Summary: A free Guile-based library implementing flexible control files for scientific simulations
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://ab-initio.mit.edu/wiki/index.php/Libctl
Source: http://ab-initio.mit.edu/libctl/libctl-%{version}.tar.gz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libffi-devel
BuildRequires: libgc-devel
BuildRequires: libgmp-devel
BuildRequires: libguile-devel
BuildRequires: libltdl-devel
BuildRequires: libunistring-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
libctl is a free Guile-based library implementing flexible control files for scientific simulations. It was written to support our MIT Photonic Bands and Meep software, but has proven useful in other programs too.
%package devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
%build
%configure \
--enable-shared
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libctl.so.*
%{_libdir}/libctlgeom.so.*
%dir %{_datadir}/libctl
%dir %{_datadir}/libctl/base
%{_datadir}/libctl/base/*.c
%{_datadir}/libctl/base/*.scm
%dir %{_datadir}/libctl/utils
%{_datadir}/libctl/utils/*.scm
%{_datadir}/libctl/utils/*.c
%doc AUTHORS COPYING
%files devel
%defattr(-,root,root)
%{_bindir}/gen-ctl-io
%{_includedir}/ctl.h
%{_includedir}/ctlgeom-types.h
%{_includedir}/ctlgeom.h
%{_libdir}/libctl.a
%{_libdir}/libctl.la
%{_libdir}/libctl.so
%{_libdir}/libctlgeom.a
%{_libdir}/libctlgeom.la
%{_libdir}/libctlgeom.so
%{_mandir}/man1/gen-ctl-io.1*
%doc ChangeLog NEWS README TODO
%changelog
* Tue Dec 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 3.2.1-2mamba
- move %{_datadir}/libctl from devel to main package
* Sun Nov 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 3.2.1-1mamba
- package created by silvan using the webbuild interface