[SPEC] python-gammu

Daniel Mróz beorn w alpha.pl
Pon, 26 Lut 2007, 13:36:53 CET


Cześć

W załączniku SPEC do python-gammu.
Ponieważ jest to mój pierwszy SPEC, proszę o sprawdzenie i uwagi.


Dziękuję i pozdrawiam
Beorn

-- 
Daniel 'Beorn' MrĂłz <beorn w alpha.pl>    http://127.0.0.1/beorn
[GIT d s:- a-@ C++++ UL++++$ P+ L++++ E--- W+ N+++ o? K- w---]
[O- M- V!  PS+ PE++ Y+ PGP++ t- 5  X R !tv b+ DI D++ G++ e h*]
[                          r++  y+                           ]
-------------- następna część ---------
# $Revision:$, $Date:$
Summary:    Python bingings for Gammu library
Summary(pl.UTF-8):    Wiązania języka Python dla biblioteki Gammu
Name:       python-gammu
Version:    0.19
Release:    0.1
License:    GPL
Group:      Applications/Communications
Source0:    http://dl.cihar.com/python-gammu/latest/%{name}-%{version}.tar.bz2
# Source0-md5:  ad967c35b6398545d4358d3f9915ef50
URL:        http://cihar.com/gammu/python/
BuildRequires:  python-devel
BuildRequires:  rpm-pythonprov
BuildRequires:  gammu-devel >= 1:1.10.0-0.1
BuildRequires:  pkgconfig >= 0.21-2
%pyrequires_eq  python-modules
BuildArch:  noarch
BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Requires:   gammu-libs >= 1:1.10.0-0.1

%description
Python bingings for Gammu library.

%description -l pl.UTF-8
Wiązania języka Python dla biblioteki Gammu.

%prep
%setup -q

%build
find -type f -exec sed -i -e 's|#!.*python.*|#!%{_bindir}/python|g' "{}" ";"

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT

python ./setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
#find $RPM_BUILD_ROOT%{py_sitedir} -type f -name "*.py" | xargs rm

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc README NEWS AUTHORS
%attr(755,root,root) %{py_sitedir}/gammu.so

%define date    %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback w pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org

$Log:$


Więcej informacji o liście dyskusyjnej pld-devel-pl