SPECS: pylint.spec - split gui subpackage, R: python-tkinter - pro...

charles charles at pld-linux.org
Thu Nov 17 18:00:46 CET 2005


Author: charles                      Date: Thu Nov 17 17:00:46 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- split gui subpackage, R: python-tkinter
- proper %{_sysconfdir}/pylintrc
- use %py_postclean macro, BR rpmbuild(macros) up to >= 1.219

---- Files affected:
SPECS:
   pylint.spec (1.25 -> 1.26) 

---- Diffs:

================================================================
Index: SPECS/pylint.spec
diff -u SPECS/pylint.spec:1.25 SPECS/pylint.spec:1.26
--- SPECS/pylint.spec:1.25	Tue Nov 15 11:57:12 2005
+++ SPECS/pylint.spec	Thu Nov 17 18:00:41 2005
@@ -12,6 +12,7 @@
 BuildRequires:	python-devel
 BuildRequires:	python-modules >= 2.2.1
 BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.219
 %pyrequires_eq	python-modules
 Requires:	python-logilab-astng >= 0.13.1
 BuildArch:	noarch
@@ -24,6 +25,20 @@
 Narzędzie sprawdzające zgodność modułów napisanych w języku Python
 z regułami tworzenia kodu źródłowego.
 
+%package gui
+Summary:	GUI for pylint
+Summary:	Graficzny interfejs użytkownika dla pylint
+Group:		Development/Languages/Python
+Requires:	%{name} = %{version}-%{release}
+Requires:	python-tkinter
+
+%description gui
+Tk based GUI for pylint.
+
+%description gui -l pl
+Bazujący na bibliotece Tk graficzny interfejs użytkownika dla pylint.
+
+
 %prep
 %setup -q
 
@@ -39,9 +54,9 @@
 	--root=$RPM_BUILD_ROOT
 
 install man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
-install examples/pylintrc $RPM_BUILD_ROOT%{_sysconfdir}
+tail -n 320 examples/pylintrc > $RPM_BUILD_ROOT%{_sysconfdir}/pylintrc
 
-find $RPM_BUILD_ROOT%{py_sitescriptdir} -name \*.py -exec rm -f {} \;
+%py_postclean
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -49,17 +64,27 @@
 %files
 %defattr(644,root,root,755)
 %doc ChangeLog TODO README examples/* doc/*.txt
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_bindir}/pylint
+%attr(755,root,root) %{_bindir}/symilar
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pylintrc
 %{py_sitescriptdir}/*
 %{_mandir}/man1/*
 
+%files gui
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/pylint-gui
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.26  2005/11/17 17:00:41  charles
+- split gui subpackage, R: python-tkinter
+- proper %{_sysconfdir}/pylintrc
+- use %py_postclean macro, BR rpmbuild(macros) up to >= 1.219
+
 Revision 1.25  2005/11/15 10:57:12  qboosh
 - added verify(not size) to config
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/pylint.spec?r1=1.25&r2=1.26&f=u




More information about the pld-cvs-commit mailing list