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