]> git.pld-linux.org Git - packages/python-pyinotify.git/blame - python-pyinotify.spec
- release 2 (by relup.sh)
[packages/python-pyinotify.git] / python-pyinotify.spec
CommitLineData
71555a82 1%define module pyinotify
a045dcfd 2Summary: Pyinotify - pure Python module used for monitoring filesystems changes
71555a82 3Summary(hu.UTF-8): Pyinotify egy egyszerű Python modul, amellyel a fájlrendszer változásait lehet figyelni
a045dcfd 4Summary(pl.UTF-8): Pyinotify - moduł w czystym Pythonie do monitorowania zmian w systemie plików
71555a82 5Name: python-%{module}
02ec8ccc 6Version: 0.9.6
5d60fc28 7Release: 2
9ec50e11 8License: MIT
71555a82
ZU
9Group: Development/Languages/Python
10Source0: http://seb.dbzteam.org/pub/pyinotify/releases/%{module}-%{version}.tar.gz
02ec8ccc 11# Source0-md5: 8e580fa1ff3971f94a6f81672b76c406
b6b3a26c 12URL: https://github.com/seb-m/pyinotify
71555a82 13BuildRequires: python-devel
02ec8ccc 14BuildRequires: python-setuptools
b0e73454 15BuildRequires: python3-modules
02ec8ccc 16BuildRequires: python3-setuptools
71555a82
ZU
17BuildRequires: rpm-pythonprov
18BuildRequires: rpmbuild(macros) >= 1.219
d5c61dcc 19Requires: glibc >= 2.4
71555a82 20Requires: python-modules
a045dcfd 21BuildArch: noarch
71555a82
ZU
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25Pyinotify is a pure Python module used for monitoring filesystems
26changes.
27
b0e73454
KK
28%description -l hu.UTF-8
29Pyinotify egy egyszerű Python modul, amellyel a fájlrendszer
30változásait lehet figyelni.
31
a045dcfd
JB
32%description -l pl.UTF-8
33Pyinotify to moduł w czystym Pythonie służący do monitorowania zmian w
34systemie plików.
35
36%package -n python3-%{module}
b0e73454 37Summary: Pyinotify is a pure Python module used for monitoring filesystems changes
a045dcfd 38Summary(pl.UTF-8): Pyinotify - moduł w czystym Pythonie do monitorowania zmian w systemie plików
b0e73454
KK
39Group: Development/Languages/Python
40
41%description -n python3-%{module}
42Pyinotify is a pure Python module used for monitoring filesystems
43changes.
44
45%description -n python3-%{module} -l hu.UTF-8
71555a82
ZU
46Pyinotify egy egyszerű Python modul, amellyel a fájlrendszer
47változásait lehet figyelni.
48
a045dcfd
JB
49%description -n python3-%{module} -l pl.UTF-8
50Pyinotify to moduł w czystym Pythonie służący do monitorowania zmian w
51systemie plików.
52
71555a82 53%prep
ac8ce622 54%setup -q -n %{module}-%{version}
71555a82
ZU
55
56%build
57export CFLAGS="%{rpmcflags}"
15f7d877
KK
58%{__python} setup.py build -b build_python2
59%{__python3} setup.py build -b build_python3
71555a82
ZU
60
61%install
62rm -rf $RPM_BUILD_ROOT
0b0dbc86 63install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
15f7d877 64mv build_python2 build
71555a82
ZU
65%{__python} setup.py install \
66 --optimize=2 \
67 --root=$RPM_BUILD_ROOT
68
69%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
70%py_comp $RPM_BUILD_ROOT%{py_sitedir}
71%py_postclean
0b6d722d
JR
72
73install python2/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
71555a82 74
15f7d877
KK
75%{__rm} -r build
76mv build_python3 build
b0e73454
KK
77%{__python3} setup.py \
78 install \
79 --root=$RPM_BUILD_ROOT \
80 --optimize=2
81
71555a82
ZU
82%clean
83rm -rf $RPM_BUILD_ROOT
84
85%files
86%defattr(644,root,root,755)
b0e73454 87%doc old/ChangeLog old/NEWS README.md
a045dcfd
JB
88%{py_sitescriptdir}/pyinotify.py[co]
89%{py_sitescriptdir}/pyinotify-%{version}-py*.egg-info
0b0dbc86 90%{_examplesdir}/%{name}-%{version}
b0e73454
KK
91
92%files -n python3-%{module}
93%defattr(644,root,root,755)
a045dcfd 94%{py3_sitescriptdir}/pyinotify.py
b0e73454 95%{py3_sitescriptdir}/__pycache__
a045dcfd 96%{py3_sitescriptdir}/pyinotify-%{version}-py*.egg-info
This page took 0.10145 seconds and 4 git commands to generate.