Package python-module-pyinotify: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 | %def_with python3 Name: python-module-pyinotify Version: 0.9.6 Release: alt2 Summary: Monitor filesystem events with Python under Linux License: MIT Group: Development/Python URL: https://github.com/seb-m/pyinotify # https://github.com/seb-m/pyinotify.git Source0: %name-%version.tar Source1: pyinotify Source2: py3inotify BuildRequires: python-devel %if_with python3 BuildRequires(pre): rpm-build-python3 BuildRequires: python3-devel %endif Provides: python-module-inotify = %version-%release Obsoletes: python-module-inotify < %version-%release Provides: pyinotify = %version-%release Obsoletes: pyinotify < %version-%release BuildArch: noarch %description This is a Python module for watching filesystems changes. pyinotify can be used for various kind of fs monitoring. pyinotify relies on a recent Linux Kernel feature (merged in kernel 2.6.13) called inotify. inotify is an event-driven notifier, its notifications are exported from kernel space to user space. %package examples Summary: Examples for Python inotify module Group: Development/Python Requires: python-module-inotify = %version-%release %description examples This package includes some examples usage of the Python inotify module. %if_with python3 %package -n python3-module-pyinotify Summary: Monitor filesystem events with Python under Linux Group: Development/Python3 Provides: python3-module-inotify = %version-%release %py3_provides pyinotify %description -n python3-module-pyinotify This is a Python3 module for watching filesystems changes. pyinotify can be used for various kind of fs monitoring. pyinotify relies on a recent Linux Kernel feature (merged in kernel 2.6.13) called inotify. inotify is an event-driven notifier, its notifications are exported from kernel space to user space. %endif %prep %setup %if_with python3 rm -rf ../python3 cp -a . ../python3 %endif %__subst "s|#!/usr/bin/env python|#!/usr/bin/env python2|" python2/examples/*.py %build %python_build %if_with python3 pushd ../python3 %python3_build popd %endif %install %python_install install -D -m 0755 -p %SOURCE1 %buildroot%_bindir/pyinotify %if_with python3 pushd ../python3 %python3_install install -D -m 0755 -p %SOURCE2 %buildroot%_bindir/py3inotify popd %endif # examples install -d -m 0755 %buildroot%_datadir/pyinotify cp -a python2/examples/* %buildroot%_datadir/pyinotify %files %doc ACKS COPYING README.md %_bindir/pyinotify %python_sitelibdir_noarch/* %if_with python3 %files -n python3-module-pyinotify %_bindir/py3inotify %python3_sitelibdir_noarch/* %endif %files examples %_datadir/pyinotify %changelog * Sat Feb 08 2020 Vitaly Lipatov <lav@altlinux.ru> 0.9.6-alt2 - run scripts via python2 * Mon Apr 11 2016 Alexey Shabalin <shaba@altlinux.ru> 0.9.6-alt1 - 0.9.6 * Fri Apr 08 2016 Ivan Zakharyaschev <imz@altlinux.org> 0.9.4-alt1.1.1 - (NMU) Rebuild with python3-3.5.1-alt3 to get rid of the meaningless __pycache__/ dep (it is meaningless because arbitrary packages package that dir). * Sun Mar 13 2016 Ivan Zakharyaschev <imz@altlinux.org> 0.9.4-alt1.1 - (NMU) rebuild with rpm-build-python3-0.1.9 (for common python3/site-packages/ and auto python3.3-ABI dep when needed) * Mon Aug 25 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.9.4-alt1 - Version 0.9.4 * Fri Mar 22 2013 Aleksey Avdeev <solo@altlinux.ru> 0.9.2-alt4.1 - Rebuild with Python-3.3 * Thu Jan 26 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 0.9.2-alt4 - add python3 module build * Thu Oct 20 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 0.9.2-alt3 - Rebuild with Python-2.7 * Thu Sep 29 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 0.9.2-alt2 - merge python-module-inotify and python-module-pyinotify packages * Wed Sep 28 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 0.9.2-alt1 - 0.9.2 build on Fedora spec * Mon Sep 06 2010 Vitaly Kuznetsov <vitty@altlinux.ru> 0.9.0-alt1 - 0.9.0 (ALT #23991) * Thu Nov 12 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.8.6-alt1head.1 - Rebuilt with python 2.6 * Fri May 22 2009 Vitaly Lipatov <lav@altlinux.ru> 0.8.6-alt1head - new version from HEAD (fix bug #20123) * Sat Feb 21 2009 Vitaly Lipatov <lav@altlinux.ru> 0.8.1-alt2 - build as noarch * Sun Jan 25 2009 Vitaly Lipatov <lav@altlinux.ru> 0.8.1-alt1 - new version 0.8.1 (with rpmrb script) * Sun May 11 2008 Vitaly Lipatov <lav@altlinux.ru> 0.8.0q-alt1 - initial build for ALT Linux Sisyphus |