From: wrobell Date: Tue, 8 Aug 2000 13:13:55 +0000 (+0000) Subject: - introduced %{pver} macro; it is main python version, i.e. 1.5, 1.6 or 2.0 X-Git-Tag: python-pygtk-1_99_8-0_1~21 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=32390255128f05ca3ba6502d5b915c3e811694c8;p=packages%2Fpython-pygtk.git - introduced %{pver} macro; it is main python version, i.e. 1.5, 1.6 or 2.0 Changed files: python-pygtk.spec -> 1.19 --- diff --git a/python-pygtk.spec b/python-pygtk.spec index 0a08d88..4d2df69 100644 --- a/python-pygtk.spec +++ b/python-pygtk.spec @@ -1,10 +1,11 @@ %define module pygtk +%define pver 1.6 Summary: GTK+ interface for Python language Summary(pl): Interfejs GTK+ dla jêzyka Python Name: python-%{module} Version: 0.6.6 -Release: 2 +Release: 3 License: LGPL Group: Development/Languages/Python Group(pl): Programowanie/Jêzyki/Python @@ -31,21 +32,21 @@ program %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT%{_libdir}/python1.5/site-packages/%{module} +install -d $RPM_BUILD_ROOT%{_libdir}/python%{pver}/site-packages/%{module} %{__make} install \ DESTDIR=$RPM_BUILD_ROOT \ - pyexecdir=%{_libdir}/python1.5/site-packages/%{module} \ - pthondir=%{_libdir}/python1.5/site-packages/%{module} + pyexecdir=%{_libdir}/python%{pver}/site-packages/%{module} \ + pthondir=%{_libdir}/python%{pver}/site-packages/%{module} install -d $RPM_BUILD_ROOT%{_prefix}/src/examples/%{name} mv examples/* $RPM_BUILD_ROOT%{_prefix}/src/examples/%{name} -mv $RPM_BUILD_ROOT%{_libdir}/python1.5/site-packages/*.py* \ - $RPM_BUILD_ROOT%{_libdir}/python1.5/site-packages/%{module} +mv $RPM_BUILD_ROOT%{_libdir}/python%{pver}/site-packages/*.py* \ + $RPM_BUILD_ROOT%{_libdir}/python%{pver}/site-packages/%{module} -echo %{module} > $RPM_BUILD_ROOT%{_libdir}/python1.5/site-packages/%{module}.pth -echo pyglade > $RPM_BUILD_ROOT%{_libdir}/python1.5/site-packages/pyglade.pth +echo %{module} > $RPM_BUILD_ROOT%{_libdir}/python%{pver}/site-packages/%{module}.pth +echo pyglade > $RPM_BUILD_ROOT%{_libdir}/python%{pver}/site-packages/pyglade.pth gzip -9nf COPYING ChangeLog README MAPPING @@ -55,9 +56,9 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc {ChangeLog,README,MAPPING}.gz -%{_libdir}/python1.5/site-packages/%{module}.pth -%{_libdir}/python1.5/site-packages/%{module} -%{_libdir}/python1.5/site-packages/pyglade.pth -%{_libdir}/python1.5/site-packages/pyglade +%{_libdir}/python%{pver}/site-packages/%{module}.pth +%{_libdir}/python%{pver}/site-packages/%{module} +%{_libdir}/python%{pver}/site-packages/pyglade.pth +%{_libdir}/python%{pver}/site-packages/pyglade %{_includedir}/%{module}/ %attr(-,root,root) %{_prefix}/src/examples/%{name}