Ignore:
Timestamp:
Jun 13, 2016, 10:29:50 AM (9 years ago)
Author:
Yuri Dario
Message:

spec: yum-utils, use correct set of files for installation, fixes ticket#92.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • spec/trunk/SPECS/yum-utils.spec

    r405 r789  
     1%define svn_url     F:/rd/ports/yum-utils/trunk
     2#define svn_url     http://svn.netlabs.org/repos/ports/yum-utils/trunk
     3#define svn_rev     1598
     4
    15%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
    26
     
    48Name: yum-utils
    59Version: 1.1.31
    6 Release: 2%{?dist}
     10Release: 3%{?dist}
    711License: GPLv2+
    812Group: Development/Tools
    9 Source: http://yum.baseurl.org/download/yum-utils/%{name}-%{version}.tar.gz
    10 Patch0: yum-utils-os2.patch
     13
     14Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
    1115
    1216URL: http://yum.baseurl.org/download/yum-utils/
     
    1721
    1822#Requires: python-kitchen
    19 BuildRequires: python-devel >= 2.4
     23BuildRequires: python-devel
     24BuildRequires: rpm-build
    2025BuildRequires: gettext
    2126BuildRequires: intltool
     
    384389
    385390%prep
     391%if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0}
    386392%setup -q
    387 %patch0 -p1
     393%else
     394%setup -n "%{name}-%{version}" -Tc
     395svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
     396rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
     397(cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
     398%endif
    388399
    389400%install
     
    392403#make -C updateonboot DESTDIR=$RPM_BUILD_ROOT install
    393404
    394 #%find_lang %name
     405%find_lang %name
    395406
    396407# Plugins to install
     
    443454rm -rf $RPM_BUILD_ROOT
    444455
    445 %files
    446 # -f %{name}.lang
     456%files -f %{name}.lang
    447457%defattr(-, root, root)
    448458%doc README yum-util-cli-template
     
    473483%{_sbindir}/yum-complete-transaction
    474484%{_sbindir}/yumdb
    475 %{_libdir}/
     485%{python_sitelib}/yumutils/
    476486%{_mandir}/man1/yum-utils.1
    477487%{_mandir}/man1/debuginfo-install.1
     
    489499%{_mandir}/man8/yumdb.8
    490500%{_mandir}/man1/yumdownloader.1
    491 %{_datadir}/locale/*
    492501
    493502%files -n yum-updateonboot
     
    676685
    677686%changelog
     687* Mon Jun 13 2016 yd <yd@os2power.com> 1.1.31-3
     688- r1598, hardcode install path until ticket#71 gets fixed.
     689- use correct set of files for installation, fixes ticket#92.
     690- added macros to allow building from svn
     691
    678692* Mon Apr 07 2014 yd
    679693- build for python 2.7.
Note: See TracChangeset for help on using the changeset viewer.