c09b3f4
%{!?python3_sitelib: %global python3_sitelib %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
2619968
2619968
Name:           khard
Sebastian Dyroff 62b982c
Version:        0.11.4
558164b
Release:        12%{?dist}
2619968
Summary:        An address book for the Linux console
2619968
2619968
License:        GPLv3
2619968
URL:            https://github.com/scheibler/%{name}
2619968
Source0:        https://github.com/scheibler/%{name}/archive/v%{version}.tar.gz
2619968
2619968
BuildArch:      noarch
c09b3f4
BuildRequires:  python3-devel
c09b3f4
BuildRequires:  python3-setuptools
19851af
BuildRequires:  python3-pypandoc
c09b3f4
Requires:       python3-atomicwrites
c09b3f4
Requires:       python3-configobj
c09b3f4
Requires:       python3-PyYAML
c09b3f4
Requires:       python3-vobject
2619968
2619968
%description
2619968
Khard is an address book for the Linux console. It creates, reads, modifies and
2619968
removes carddav address book entries at your local machine.
2619968
2619968
2619968
%prep
2619968
%setup -q -n %{name}-%{version}
2619968
2619968
2619968
%build
c09b3f4
%{__python3} setup.py build
2619968
2619968
2619968
%install
c09b3f4
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
0df1354
for lib in %{buildroot}%{python_sitelib}/khard/*.py; do
2619968
    sed '1{\@^#!/usr/bin/env python@d}' $lib > $lib.new &&
2619968
    touch -r $lib $lib.new &&
2619968
    mv $lib.new $lib
2619968
done
625855d
mkdir -p %{buildroot}%{_datadir}/zsh/site-functions/
8052556
install -p -m 0644 misc/zsh/_khard %{buildroot}%{_datadir}/zsh/site-functions/_khard
2619968
2619968
2619968
%files
2619968
%doc AUTHORS CHANGES README.md
a3794dc
%doc misc/khard/khard.conf.example
2619968
%license LICENSE
2619968
%{_bindir}/khard
2af526d
%{python3_sitelib}/*
8052556
%{_datadir}/zsh/site-functions/
2619968
2619968
2619968
%changelog
558164b
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.4-12
558164b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
558164b
3bf92c4
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.11.4-11
3bf92c4
- Rebuilt for Python 3.9
3bf92c4
b5b3202
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.4-10
b5b3202
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
b5b3202
f887f98
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.11.4-9
f887f98
- Rebuilt for Python 3.8.0rc1 (#1748018)
f887f98
7eb6b75
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.11.4-8
7eb6b75
- Rebuilt for Python 3.8
7eb6b75
a6d355c
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.4-7
a6d355c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
a6d355c
afd9e28
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.4-6
afd9e28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
afd9e28
eae1ec8
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.4-5
eae1ec8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
eae1ec8
5f28ab3
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.11.4-4
5f28ab3
- Rebuilt for Python 3.7
5f28ab3
875de49
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.4-3
875de49
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
875de49
befd7c1
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.4-2
befd7c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
befd7c1
Sebastian Dyroff 62b982c
* Tue Jul 25 2017 Sebastian Dyroff <sdyroff@fedoraproject.org> - 0.11.4-1
Sebastian Dyroff 62b982c
- update to 0.11.4 fixing #1473961
Sebastian Dyroff 62b982c
ec535ff
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.3-3
ec535ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
ec535ff
ba315a3
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.11.3-2
ba315a3
- Rebuild for Python 3.6
ba315a3
0a089c6
* Sat Oct 08 2016 Ben Boeckel <mathstuf@gmail.com> - 0.11.3-1
0a089c6
- update to 0.11.3
0a089c6
25bdd78
* Tue Aug 02 2016 Ben Boeckel <mathstuf@gmail.com> - 0.11.1-2
25bdd78
- add BR on python3-pypandoc
25bdd78
- remove utf8-readme patch
25bdd78
af6d1f4
* Tue Aug 02 2016 Ben Boeckel <mathstuf@gmail.com> - 0.11.1-1
af6d1f4
- update to 0.11.1
af6d1f4
c09b3f4
* Sat Jul 23 2016 Ben Boeckel <mathstuf@gmail.com> - 0.11.0-1
c09b3f4
- update to 0.11.0
69323e9
- remove davcontroller (masked upstream due to python3 compat issues)
c09b3f4
e122918
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-2
e122918
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
e122918
37ac062
* Sat Apr 23 2016 Ben Boeckel <mathstuf@gmail.com> - - 0.9.0-1
37ac062
- update to 0.9.0
37ac062
5a748cd
* Mon Apr 04 2016 Ben Boeckel <mathstuf@gmail.com> - 0.8.1-1
5a748cd
- update to 0.8.1
5a748cd
c6dd326
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.3-2
c6dd326
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c6dd326
c2ad57d
* Sun Oct 25 2015 Ben Boeckel <mathstuf@gmail.com> - 0.6.3-1
c2ad57d
- update to 0.6.3
c2ad57d
8052556
* Tue Oct 13 2015 Ben Boeckel <mathstuf@gmail.com> - 0.6.2-1
8052556
- update to 0.6.2
8052556
- ship zsh completion file
8052556
2619968
* Sat Jul 25 2015 Ben Boeckel <mathstuf@gmail.com> - 0.4.1-1
2619968
- update to 0.4.1
2619968
- remove shebang lines
2619968
2619968
* Tue Mar 03 2015 Ben Boeckel <mathstuf@gmail.com> - 0.2.1-2
2619968
- use python2-devel in BR
2619968
- chmod +x davcontroller.py
2619968
- remove twinkle plugin (twinkle isn't in Fedora)
2619968
2619968
* Tue Mar 03 2015 Ben Boeckel <mathstuf@gmail.com> - 0.2.1-1
2619968
- initial package