|
@@ -4,7 +4,7 @@ Name: pyxdg
|
|
Summary: Python library to access freedesktop.org standards
|
|
Summary: Python library to access freedesktop.org standards
|
|
Summary(ja): freedesktop.org 標準にアクセスする為の Python ライブラリ
|
|
Summary(ja): freedesktop.org 標準にアクセスする為の Python ライブラリ
|
|
Version: 0.25
|
|
Version: 0.25
|
|
-Release: 1%{?_dist_release}
|
|
|
|
|
|
+Release: 2%{?_dist_release}
|
|
|
|
|
|
License: LGPL
|
|
License: LGPL
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
@@ -12,10 +12,21 @@ URL: http://freedesktop.org/Software/pyxdg
|
|
|
|
|
|
Source0: http://www.freedesktop.org/~lanius/%{name}-%{version}.tar.gz
|
|
Source0: http://www.freedesktop.org/~lanius/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
+# https://bugs.freedesktop.org/show_bug.cgi?id=61817
|
|
|
|
+Patch0: pyxdg-0.25-find-first-mimetype-match.patch
|
|
|
|
+# https://bugs.freedesktop.org/show_bug.cgi?id=73878
|
|
|
|
+Patch1: pyxdg-0.25-CVE-2014-1624.patch
|
|
|
|
+
|
|
BuildArch: noarch
|
|
BuildArch: noarch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRequires: python
|
|
BuildRequires: python
|
|
-BuildRequires: python-devel
|
|
|
|
|
|
+BuildRequires: python-devel
|
|
|
|
+BuildRequires: python3
|
|
|
|
+BuildRequires: python3-devel
|
|
|
|
+BuildRequires: hicolor-icon-theme
|
|
|
|
+BuildRequires: shared-mime-info
|
|
|
|
+BuildRequires: python-rpm-macros
|
|
|
|
+BuildRequires: python3-rpm-macros
|
|
Requires: python
|
|
Requires: python
|
|
|
|
|
|
|
|
|
|
@@ -26,17 +37,34 @@ PyXDG is a Python library to access freedesktop.org standards.
|
|
PyXDG は freedesktop.org のデスクトップ標準にアクセスする為の
|
|
PyXDG は freedesktop.org のデスクトップ標準にアクセスする為の
|
|
Python ライブラリです。
|
|
Python ライブラリです。
|
|
|
|
|
|
|
|
+%package -n python3-pyxdg
|
|
|
|
+Summary: Python library to access freedesktop.org standards
|
|
|
|
+Summary(ja): freedesktop.org 標準にアクセスする為の Python ライブラリ
|
|
|
|
+Requires: python3
|
|
|
|
+
|
|
|
|
+%description -n python3-pyxdg
|
|
|
|
+PyXDG is a Python library to access freedesktop.org standards.
|
|
|
|
+
|
|
|
|
+%description -n python3-pyxdg -l ja
|
|
|
|
+PyXDG は freedesktop.org のデスクトップ標準にアクセスする為の
|
|
|
|
+Python ライブラリです。
|
|
|
|
+
|
|
|
|
+
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
|
|
+%patch0 -p1 -b .pngfix
|
|
|
|
+%patch1 -p1 -b .CVE-2014-1624
|
|
|
|
|
|
|
|
|
|
%build
|
|
%build
|
|
-%{__python} setup.py build
|
|
|
|
|
|
+%py_build
|
|
|
|
+%py3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
%install
|
|
-%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
|
|
-%{__python} setup.py install --skip-build --root ${RPM_BUILD_ROOT}
|
|
|
|
|
|
+%{__rm} -rf %{buildroot}
|
|
|
|
+%py3_install
|
|
|
|
+%py_install
|
|
|
|
|
|
|
|
|
|
%clean
|
|
%clean
|
|
@@ -46,12 +74,23 @@ Python ライブラリです。
|
|
%files
|
|
%files
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS COPYING ChangeLog INSTALL PKG-INFO README TODO
|
|
%doc AUTHORS COPYING ChangeLog INSTALL PKG-INFO README TODO
|
|
-#%{_libdir}/python%{pyver}/site-packages/xdg
|
|
|
|
-#%{_libdir}/python%{pyver}/site-packages/pyxdg-0.17-py2.5.egg-info
|
|
|
|
-%{_prefix}/lib/python%{pyver}/site-packages/xdg
|
|
|
|
-%{_prefix}/lib/python%{pyver}/site-packages/pyxdg-%{version}-py%{pyver}.egg-info
|
|
|
|
|
|
+%license COPYING
|
|
|
|
+%doc AUTHORS ChangeLog README TODO
|
|
|
|
+%{python_sitelib}/xdg
|
|
|
|
+%{python_sitelib}/pyxdg-*.egg-info
|
|
|
|
+
|
|
|
|
+%files -n python3-pyxdg
|
|
|
|
+%license COPYING
|
|
|
|
+%doc AUTHORS ChangeLog README TODO
|
|
|
|
+%{python3_sitelib}/xdg
|
|
|
|
+%{python3_sitelib}/pyxdg-*.egg-info
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sun Dec 17 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.25-2
|
|
|
|
+- added Patch0,1.
|
|
|
|
+- added a sub-package for python3.
|
|
|
|
+- made to use python{,3}-rpm-macros.
|
|
|
|
+
|
|
* Fri Oct 3 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.25-1
|
|
* Fri Oct 3 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.25-1
|
|
- updated to 0.25
|
|
- updated to 0.25
|
|
|
|
|