diff options
author | Christoph Junghans <junghans@votca.org> | 2017-03-12 16:40:21 -0600 |
---|---|---|
committer | Christoph Junghans <junghans@votca.org> | 2017-03-12 16:40:21 -0600 |
commit | c4b003342ef544237e9d01cf286713e2575027bf (patch) | |
tree | a18c33ceff0f32fb09efb42d6bc0e2e71481c913 | |
parent | 9e5202f23de272d9ff855c5c6e78e291c63fc440 (diff) | |
download | fedora-review-c4b003342ef544237e9d01cf286713e2575027bf.tar.gz fedora-review-c4b003342ef544237e9d01cf286713e2575027bf.tar.xz fedora-review-c4b003342ef544237e9d01cf286713e2575027bf.zip |
spglib: initial commit
-rw-r--r-- | spglib/spglib-1.9.9.tar.gz | bin | 0 -> 1930290 bytes | |||
-rw-r--r-- | spglib/spglib.spec | 84 |
2 files changed, 84 insertions, 0 deletions
diff --git a/spglib/spglib-1.9.9.tar.gz b/spglib/spglib-1.9.9.tar.gz Binary files differnew file mode 100644 index 0000000..41117c9 --- /dev/null +++ b/spglib/spglib-1.9.9.tar.gz diff --git a/spglib/spglib.spec b/spglib/spglib.spec new file mode 100644 index 0000000..55822f9 --- /dev/null +++ b/spglib/spglib.spec @@ -0,0 +1,84 @@ +Name: spglib +Summary: C library for finding and handling crystal symmetries +Version: 1.9.9 +Release: 1%{?dist} +License: BSD +URL: https://atztogo.github.io/spglib/ +Source0: https://github.com/atztogo/spglib/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz + +BuildRequires: autoconf, automake, libtool + +%description +C library for finding and handling crystal symmetries. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +This package contains libraries and header files for developing +applications that use spglib. + +%package -n python3-%{name} +Summary: Python3 library of %{name} +BuildRequires: python3-devel +BuildRequires: python3-numpy +BuildRequires: python3-nose +Requires: python3-numpy +%{?python_provide:%python_provide python3-%{name}} + +%description -n python3-%{name} +This package contains the libraries to +develop applications with spglib Python3 bindings. + +%prep +%setup -q + +%build +aclocal +autoheader +libtoolize +touch INSTALL NEWS README AUTHORS +automake -acf +autoconf -v +%configure --disable-static --disable-silent-rules + +%make_build + +pushd python +%py3_build +popd + +%install +%make_install +rm -f $RPM_BUILD_ROOT%{_libdir}/*.la + +pushd python +%py3_install +popd + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%check +pushd python/test +#PYTHONPATH=$RPM_BUILD_ROOT%{python3_sitearch} nosetests-%{python3_version} -v +popd + +%files +%doc README AUTHORS +%license COPYING +%{_libdir}/lib*.so.* + +%files devel +%{_libdir}/lib*.so +%{_includedir}/spglib/ + +%files -n python3-%{name} +%license COPYING +%{python3_sitearch}/%{name}/ +%{python3_sitearch}/%{name}-*.egg-info/ + +%changelog +* Fri Mar 10 2017 Antonio Trande <sagitter@fedoraproject.org> - 1.9.9-1 +- First package |