8660d03
Name:           udiskie
6960089
Version:        2.3.3
e911677
Release:        3%{?dist}
8660d03
Summary:        Removable disk auto-mounter
8660d03
8660d03
License:        MIT
0437d41
URL:            https://pypi.org/project/%{name}
fae044b
Source0:        %{pypi_source}
8660d03
Source1:        50-udiskie.rules
8660d03
8660d03
BuildArch:      noarch
6960089
BuildRequires:  make
8660d03
BuildRequires:  asciidoc gettext
8660d03
BuildRequires:  python3-devel python3-setuptools
8660d03
8660d03
# Require the module for the correct python
8660d03
Requires: python3-%{name} = %{version}-%{release}
8660d03
8660d03
# Require package implementing required functionality
8660d03
Requires: polkit hicolor-icon-theme
8660d03
cae4742
# Recommend tag not supported on EPEL
98b76f0
%if 0%{?!rhel}
026ce3a
# Recommended for full functionality
026ce3a
Recommends: libnotify
d2f2cf4
%endif
026ce3a
8660d03
%description
8660d03
%{name} is a front-end for UDisks written in python. Its main purpose is
8660d03
automatically mounting removable media, such as CDs or flash drives. It has
8660d03
optional mount notifications, a GTK tray icon and user level CLIs for manual
8660d03
mounting and unmounting operations.
8660d03
8660d03
%package -n python3-%{name}
8660d03
Summary: Python 3 module for udisks disk automounting
d2f2cf4
%global non_python_requires udisks2 gtk3 python3-gobject
d2f2cf4
d2f2cf4
BuildRequires: %{non_python_requires}
d2f2cf4
BuildRequires: %{py3_dist docopt PyYAML}
d2f2cf4
Requires: %{non_python_requires}
fae044b
%{?python_provide:%python_provide python3-%{name}}
8660d03
8660d03
%description -n python3-%{name}
108bdd1
%{name} is a front-end for UDisks written in python. This package provides the
8660d03
python 3 modules used by the %{name} binaries.
8660d03
8660d03
%prep
1cce911
%setup -q
d2f2cf4
find -name '*.txt' -exec chmod -x '{}' +
d2f2cf4
find -name '*.py' -exec sed -i 's|^#!python|#!%{__python3}|' '{}' +
0e65c2b
0e65c2b
# Make test folder into a proper module, if it already isn't
0e65c2b
[ -f test/__init__.py ] || touch test/__init__.py
8660d03
8660d03
%build
8304fd9
%py3_build
8660d03
8660d03
# Build man page
1cce911
%make_build -C doc
8660d03
8660d03
%install
8304fd9
%py3_install
1cce911
find %{buildroot}%{python3_sitelib} -name '*.exe' -delete
8660d03
8660d03
# Install polkit rules
8660d03
install -p -D -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/polkit-1/rules.d/50-%{name}.rules
8660d03
8660d03
# Install man page
8660d03
install -d %{buildroot}%{_mandir}/man8
8660d03
install -p -m644 -t %{buildroot}%{_mandir}/man8 doc/%{name}.8
fae044b
8660d03
# Create man pages for other binaries
9caadce
for other in %{name}-mount %{name}-umount %{name}-info; do
8660d03
  echo ".so man8/%{name}.8" > %{buildroot}%{_mandir}/man8/"${other}.8"
8660d03
done
8660d03
8660d03
# Find all localization files
8660d03
%find_lang %{name}
8660d03
8660d03
%check
f9c8bc6
# Only run tests with satisfied dependencies
8304fd9
%{__python3} setup.py test --test-suite test.test_match
8660d03
8660d03
%files -f %{name}.lang
8660d03
%{_mandir}/man8/%{name}*.8*
6960089
%doc README.rst
8660d03
%license COPYING
8660d03
%config(noreplace) %{_sysconfdir}/polkit-1/rules.d/50-%{name}.rules
8660d03
%{_bindir}/%{name}
8660d03
%{_bindir}/%{name}-mount
8660d03
%{_bindir}/%{name}-umount
108bdd1
%{_bindir}/%{name}-info
108bdd1
%{_datadir}/zsh/site-functions/_%{name}*
8660d03
8660d03
%files -n python3-%{name}
6960089
%doc README.rst
8660d03
%license COPYING
8660d03
%{python3_sitelib}/*
8660d03
8660d03
8660d03
%changelog
e911677
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3-3
e911677
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
e911677
a445f57
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.3.3-2
a445f57
- Rebuilt for Python 3.10
a445f57
6960089
* Wed Mar 17 2021 Jan Staněk <jstanek@redhat.com> - 2.3.3-1
6960089
- Upgrade to version 2.3.3
6960089
eb72829
* Thu Jan 28 2021 Jan Staněk <jstanek@redhat.com> - 2.3.2-1
eb72829
- Upgrade to version 2.3.2
eb72829
f196cf7
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-2
f196cf7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
f196cf7
8f7b58b
* Fri Jan 22 2021 Jan Staněk <jstanek@redhat.com> - 2.3.0-1
8f7b58b
- Upgrade to version 2.3.0
8f7b58b
3502412
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-3
3502412
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
3502412
a071515
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.2.0-2
a071515
- Rebuilt for Python 3.9
a071515
7a1b2ba
* Mon May 11 2020 Jan Staněk <jstanek@redhat.com> - 2.2.0-1
7a1b2ba
- Upgrade to version 2.2.0
7a1b2ba
00c4b8b
* Fri Apr 17 2020 Jan Staněk <jstanek@redhat.com> - 2.1.1-1
00c4b8b
- Upgrade to version 2.1.1
00c4b8b
a1becb1
* Tue Feb 04 2020 Jan Staněk <jstanek@redhat.com> - 2.1.0-1
a1becb1
- Upgrade to version 2.1.0
a1becb1
f77ac30
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-3
f77ac30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
f77ac30
46616ac
* Wed Jan 22 2020 Jan Staněk <jstanek@redhat.com> - 2.0.4-2
46616ac
- Rebuilt with gating enabled.
46616ac
8a9fb86
* Tue Jan 21 2020 Jan Staněk <jstanek@redhat.com> - 2.0.4-1
8a9fb86
- Upgrade to version 2.0.4
8a9fb86
3fa011f
* Mon Jan 20 2020 Jan Staněk <jstanek@redhat.com> - 2.0.3-1
3fa011f
- Upgrade to version 2.0.3
3fa011f
d2f2cf4
* Thu Jan 02 2020 Jan Staněk <jstanek@redhat.com> - 2.0.2-1
d2f2cf4
- Upgrade to version 2.0.2
d2f2cf4
- Modernize and clean spec file
d2f2cf4
d524174
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.7.7-4
d524174
- Rebuilt for Python 3.8.0rc1 (#1748018)
d524174
234e135
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.7.7-3
234e135
- Rebuilt for Python 3.8
234e135
0dde30e
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.7-2
0dde30e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
0dde30e
fae044b
* Mon Feb 18 2019 Jan Staněk <jstanek@redhat.com> - 1.7.7-1
fae044b
- Upgrade to version 1.7.7
fae044b
73fe6f3
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.5-5
73fe6f3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
73fe6f3
8304fd9
* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.7.5-4
8304fd9
- Drop explicit locale setting
8304fd9
  See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
8304fd9
f346cdc
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.5-3
f346cdc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
f346cdc
81511c6
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.7.5-2
81511c6
- Rebuilt for Python 3.7
81511c6
3bf518b
* Thu May 24 2018 Jan Staněk <jstanek@redhat.com> - 1.7.5-1
3bf518b
- Upgrade to 1.7.5
3bf518b
0437d41
* Mon May 21 2018 Jan Staněk <jstanek@redhat.com> - 1.7.4-1
0437d41
- Upgrade to 1.7.4
0437d41
f763dc3
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.3-2
f763dc3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f763dc3
1cce911
* Wed Jan 03 2018 Jan Staněk <jstanek@redhat.com> - 1.7.3-1
1cce911
- Upgrade to 1.7.3
1cce911
- Drop deprecated python2 subpackage
1cce911
9caadce
* Wed Oct 11 2017 Jan Staněk <jstanek@redhat.com> - 1.7.1-2
9caadce
- Renamed Python 2 dependencies to python2-*
9caadce
- Generated man page for new udiskie-info binary
9caadce
108bdd1
* Wed Oct 04 2017 Jan Staněk <jstanek@redhat.com> - 1.7.1-1
108bdd1
- Upgrade to 1.7.1
108bdd1
03c7765
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.4.8-6
03c7765
- Python 2 binary package renamed to python2-udiskie
03c7765
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
03c7765
5afbec8
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.8-5
5afbec8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
5afbec8
b531fff
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.8-4
b531fff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b531fff
fb18c53
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.4.8-3
fb18c53
- Rebuild for Python 3.6
fb18c53
119111e
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.8-2
119111e
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
119111e
4d3ec40
* Wed Feb 10 2016 Jan Stanek <jstanek@redhat.com> - 1.4.8-1
4d3ec40
- Update to 1.4.8
4d3ec40
0e65c2b
* Wed Feb 03 2016 Jan Stanek <jstanek@redhat.com> - 1.4.7-1
0e65c2b
- Update to 1.4.7
0e65c2b
98b76f0
* Wed Feb 03 2016 Jan Stanek <jstanek@redhat.com> - 1.4.1-2
98b76f0
- Fix build failures on EPEL7
98b76f0
f9c8bc6
* Mon Dec 21 2015 Jan Stanek <jstanek@redhat.com> - 1.4.1-1
f9c8bc6
- Update to 1.4.1
f9c8bc6
afe63c4
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
afe63c4
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
afe63c4
01a567e
* Fri Nov 06 2015 Jan Stanek <jstanek@redhat.com> - 1.3.2-1
01a567e
- Update to 1.3.2
01a567e
026ce3a
* Thu Sep 24 2015 Jan Stanek <jstanek@redhat.com> - 1.3.1-1
026ce3a
- Update to 1.3.1
026ce3a
- Add libnotify as weak dependency
026ce3a
95189ee
* Thu Sep 03 2015 Jan Stanek <jstanek@redhat.com> - 1.3.0-1
95189ee
- Update to 1.3.0
95189ee
bf550f8
* Tue Sep 01 2015 Jan Stanek <jstanek@redhat.com> - 1.2.1-1
bf550f8
- Update to 1.2.1.
bf550f8
8660d03
* Thu Jun 04 2015 Jan Stanek <jstanek@redhat.com> - 1.2.0-1
8660d03
- Initial package