Package python-module-cssutils: 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 | %define oname cssutils %def_with python3 Name: python-module-cssutils Version: 1.0.2 Release: alt1 Summary: CSS Cascading Style Sheets library for Python Group: Development/Python License: LGPL Url: https://pypi.python.org/pypi/cssutils # Source-url: https://pypi.io/packages/source/c/%oname/%oname-%version.tar.gz Source: %name-%version.tar BuildArch: noarch # Automatically added by buildreq on Tue Jun 01 2010 (-bi) BuildRequires: python-module-mechanize python-module-setuptools python-modules-encodings # optional %add_python_req_skip google.appengine.api %add_python3_req_skip google.appengine.api %if_with python3 BuildRequires(pre): rpm-build-python3 BuildPreReq: python3-devel python3-module-setuptools %endif %description A Python package to parse and build CSS Cascading Style Sheets. DOM only, not any rendering facilities! %package -n python3-module-%oname Summary: CSS Cascading Style Sheets library for Python Group: Development/Python3 %description -n python3-module-%oname A Python package to parse and build CSS Cascading Style Sheets. DOM only, not any rendering facilities! %package doc Summary: Documentation for CSS Cascading Style Sheets library for Python Group: Development/Documentation %description doc A Python package to parse and build CSS Cascading Style Sheets. DOM only, not any rendering facilities! This package contains documentation for %name. %prep %setup %if_with python3 cp -fR . ../python3 %endif %build %python_build_debug %if_with python3 pushd ../python3 %python3_build_debug popd %endif %install %python_install %if_with python3 pushd ../python3 %python3_install popd #pushd %buildroot%_bindir #for i in $(ls); do # mv $i $i.py3 #done #popd %endif rm -rf %buildroot%python_sitelibdir_noarch/%oname/tests/ rm -rf %buildroot%python3_sitelibdir_noarch/%oname/tests/ %files %doc PKG-INFO %if_without python3 %_bindir/* %endif %python_sitelibdir_noarch/* %if_with python3 %files -n python3-module-%oname %_bindir/* %python3_sitelibdir_noarch/* %endif %files doc %doc examples %changelog * Tue Oct 03 2017 Vitaly Lipatov <lav@altlinux.ru> 1.0.2-alt1 - switch to build from tarball - enable python3 module - new version (1.0.2) with rpmgs script * Mon Jul 09 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 0.9.9-alt2 - exclude tests from package * Tue Jul 03 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 0.9.9-alt1 - 0.9.9 * Mon Oct 24 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 0.9.7b1-alt1.1 - Rebuild with Python-2.7 * Tue Jun 01 2010 Ildar Mulyukov <ildar@altlinux.ru> 0.9.7b1-alt1 - 1st build for ALTLinux - thanks to real@ fr spec skeleton |