Search
j0ke.net Open Build Service
>
Projects
>
home:netmax
:
tools
>
python-xmpp
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 3
[-]
[+]
Changed
python-xmpp.spec
@@ -12,6 +12,7 @@ %else BuildRequires: python-devel >= 2.6 %endif +%define _pkgname xmpppy %description Python-xmpp implements the Jabber protocol, allowing you to write clients and servers in python. @@ -28,22 +29,23 @@ python setup.py install \ --root=%{buildroot} \ --prefix=%{_prefix} \ - --record-rpm=%{name}.filelist + --record-rpm=%{_pkgname}.filelist %else python setup.py install \ --root=%{buildroot} \ --prefix=%{_prefix} cd $RPM_BUILD_ROOT -find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > %{_builddir}/%{name}-%{version}/%{name}.filelist -find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> %{_builddir}/%{name}-%{version}/%{name}.filelist -find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> %{_builddir}/%{name}-%{version}/%{name}.filelist -sed -i s@"\.py$"@"\.py\*"@g %{_builddir}/%{name}-%{version}/%{name}.filelist +mkdir -p %{_builddir}/%{_pkgname}-%{version} +find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > %{_builddir}/%{_pkgname}-%{version}/%{_pkgname}.filelist +find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> %{_builddir}/%{_pkgname}-%{version}/%{_pkgname}.filelist +find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> %{_builddir}/%{_pkgname}-%{version}/%{_pkgname}.filelist +sed -i s@"\.py$"@"\.py\*"@g %{_builddir}/%{_pkgname}-%{version}/%{_pkgname}.filelist %endif %clean rm -rf %{buildroot} -%files -f %{name}.filelist +%files -f %{_pkgname}.filelist %defattr(-,root,root) %doc ChangeLog %doc doc