commit a3288b473b0ee4a6d0172c520df0d989d8fff4118c67b0ad5969b3e9635e5f8d Author: Dominique Leuenberger Date: Sat Jun 2 10:07:58 2018 +0000 Accepting request 612091 from devel:languages:python python package to query google scholar and get references in various formats OBS-URL: https://build.opensuse.org/request/show/612091 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-gscholar?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/gscholar-1.6.1.tar.gz b/gscholar-1.6.1.tar.gz new file mode 100644 index 0000000..8c847dc --- /dev/null +++ b/gscholar-1.6.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:18536de368bf1e7d0921caf20a988d0c9278b577ee0a7bf882a1322af76ea8b4 +size 6323 diff --git a/python-gscholar.changes b/python-gscholar.changes new file mode 100644 index 0000000..76b5fce --- /dev/null +++ b/python-gscholar.changes @@ -0,0 +1,20 @@ +------------------------------------------------------------------- +Thu May 24 17:34:04 UTC 2018 - toddrme2178@gmail.com + +- Spec file cleanup +- Fix rpmlint issues + +------------------------------------------------------------------- +Sat Feb 17 18:26:17 UTC 2018 - arun@gmx.de + +- specfile: + * add README.md CHANGELOG.md and use LICENSE from tar-ball + +- update to version 1.6.1: + * Include Changelog and LICENSE files in source distribution + * Wrapped main script in proper main test + +------------------------------------------------------------------- +Tue Feb 6 22:38:43 UTC 2018 - arun@gmx.de + +- initial package diff --git a/python-gscholar.spec b/python-gscholar.spec new file mode 100644 index 0000000..1ec5e8c --- /dev/null +++ b/python-gscholar.spec @@ -0,0 +1,58 @@ +# +# spec file for package python-gscholar +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-gscholar +Version: 1.6.1 +Release: 0 +Summary: Python library to query Google Scholar +License: MIT +Group: Development/Languages/Python +Url: https://github.com/venthur/gscholar +Source0: https://files.pythonhosted.org/packages/source/g/gscholar/gscholar-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +This package provides a python package and CLI to query google scholar +and get references in various formats (e.g. bibtex, endnote, etc.) + +%prep +%setup -q -n gscholar-%{version} + +sed -i -e '/^#!\//, 1d' gscholar/__main__.py +sed -i -e '/^#!\//, 1d' gscholar/gscholar.py + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%license LICENSE +%doc README.md CHANGELOG.md +%{python_sitelib}/* +%python3_only %{_bindir}/gscholar + +%changelog