source: projects/specs/trunk/p/pyxdg/pyxdg-vl.spec @ 11274

Revision 11274, 2.8 KB checked in by tomop, 6 years ago (diff)

pyxdg-0.25-2

Line 
1%define pyver           %(python -c 'import sys;print(sys.version[0:3])')
2
3Name:           pyxdg
4Summary:        Python library to access freedesktop.org standards
5Summary(ja):    freedesktop.org 標準にアクセスする為の Python ライブラリ
6Version:        0.25
7Release:        2%{?_dist_release}
8
9License:        LGPL
10Group:          System Environment/Libraries
11URL:            http://freedesktop.org/Software/pyxdg
12
13Source0:        http://www.freedesktop.org/~lanius/%{name}-%{version}.tar.gz
14
15# https://bugs.freedesktop.org/show_bug.cgi?id=61817
16Patch0:         pyxdg-0.25-find-first-mimetype-match.patch
17# https://bugs.freedesktop.org/show_bug.cgi?id=73878
18Patch1:         pyxdg-0.25-CVE-2014-1624.patch
19
20BuildArch:      noarch
21BuildRoot:      %{_tmppath}/%{name}-%{version}-root
22BuildRequires:  python
23BuildRequires:  python-devel
24BuildRequires:  python3
25BuildRequires:  python3-devel
26BuildRequires:  hicolor-icon-theme
27BuildRequires:  shared-mime-info
28BuildRequires:  python-rpm-macros
29BuildRequires:  python3-rpm-macros
30Requires:       python
31
32
33%description
34PyXDG is a Python library to access freedesktop.org standards.
35
36%description -l ja
37PyXDG は freedesktop.org のデスクトップ標準にアクセスする為の
38Python ライブラリです。
39
40%package -n python3-pyxdg
41Summary:        Python library to access freedesktop.org standards
42Summary(ja):    freedesktop.org 標準にアクセスする為の Python ライブラリ
43Requires:       python3
44
45%description -n python3-pyxdg
46PyXDG is a Python library to access freedesktop.org standards.
47
48%description -n python3-pyxdg -l ja
49PyXDG は freedesktop.org のデスクトップ標準にアクセスする為の
50Python ライブラリです。
51
52
53%prep
54%setup -q
55%patch0 -p1 -b .pngfix
56%patch1 -p1 -b .CVE-2014-1624
57
58
59%build
60%py_build
61%py3_build
62
63
64%install
65%{__rm} -rf %{buildroot}
66%py3_install
67%py_install
68
69
70%clean
71%{__rm} -rf ${RPM_BUILD_ROOT}
72
73
74%files
75%defattr(-,root,root)
76%doc AUTHORS COPYING ChangeLog INSTALL PKG-INFO README TODO
77%license COPYING
78%doc AUTHORS ChangeLog README TODO
79%{python_sitelib}/xdg
80%{python_sitelib}/pyxdg-*.egg-info
81
82%files -n python3-pyxdg
83%license COPYING
84%doc AUTHORS ChangeLog README TODO
85%{python3_sitelib}/xdg
86%{python3_sitelib}/pyxdg-*.egg-info
87
88%changelog
89* Sun Dec 17 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.25-2
90- added Patch0,1.
91- added a sub-package for python3.
92- made to use python{,3}-rpm-macros.
93
94* Fri Oct  3 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.25-1
95- updated to 0.25
96
97* Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.19-2
98- rebuild with python-2.7.2
99
100* Sat Jan 28 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.19-1
101- new upstream release
102- added patch0 from Debian
103
104* Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.17-2
105- rebuilt with python-2.6.4
106- fixed site-packages directory
107
108* Fri Nov 07 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.17-1
109- initial build for Vine Linux
Note: See TracBrowser for help on using the repository browser.