--- rpms/smeserver-yum/sme10/smeserver-yum.spec 2016/02/07 12:10:35 1.2 +++ rpms/smeserver-yum/sme10/smeserver-yum.spec 2016/03/23 12:10:51 1.3 @@ -1,15 +1,16 @@ -# $Id: smeserver-yum.spec,v 1.1 2016/02/05 23:20:26 stephdl Exp $ +# $Id: smeserver-yum.spec,v 1.2 2016/02/07 12:10:35 vip-ire Exp $ %define name smeserver-yum Summary: YUM, an rpm updater Name: %{name} %define version 2.6.0 -%define release 2 +%define release 3 Version: %{version} Release: %{release}%{?dist} License: GPL Group: SMEServer/addon Source: %{name}-%{version}.tar.xz +Patch0: smeserver-yum-2.6.0.SME10.patch BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot BuildArchitectures: noarch Requires: e-smith-formmagick >= 1.4.0-12 @@ -32,7 +33,54 @@ AutoReqProv: no %description %name is an implementation of http://linux.duke.edu/projects/yum on SME Server +%prep +%setup +%patch0 -p1 + + +%build +perl createlinks +ln -s /var/service/yum root/service/yum +mkdir -p root/etc/yum.smerepos.d + +%install +/bin/rm -rf $RPM_BUILD_ROOT +(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) +/bin/rm -f %{name}-%{version}-filelist +/sbin/e-smith/genfilelist \ + --file '/sbin/e-smith/yum_update_dbs' 'attr(0700,root,root)' \ + --file '/sbin/e-smith/yum' 'attr(0755,root,root)' \ + --file '/sbin/e-smith/check4updates' 'attr(0755,root,root)' \ + --file '/sbin/e-smith/check4contribsupdates' 'attr(0755,root,root)' \ + --file '/etc/cron.daily/smeserver-yum' 'attr(0700,root,root)' \ + --file /var/service/yum/down 'attr(0644,root,root)' \ + --file /var/service/yum/run 'attr(0755,root,root)' \ + --dir /var/service/yum/log 'attr(0755,root,root)' \ + --dir /var/service/yum/log/supervise 'attr(0700,root,root)' \ + --dir /var/service/yum/supervise 'attr(0700,root,root)' \ + --file /var/service/yum/log/run 'attr(0755,root,root)' \ + --dir /var/log/yum 'attr(2750,smelog,smelog)' \ + $RPM_BUILD_ROOT > %{name}-%{version}-%{release}-filelist + +%clean +/bin/rm -rf $RPM_BUILD_ROOT + +%files -f %{name}-%{version}-%{release}-filelist + +%defattr(-,root,root) + + %changelog +* Wed Mar 23 2016 Jean-Philipe Pialasse 2.6.0-3.sme +- yum points now to SME10 mirrors [SME: 9377] +- moved changelog at the end of file +- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, + by assuming the date is correct and changing the weekday. + Fri May 31 2005 --> Fri May 27 2005 or Tue May 31 2005 or Fri Jun 03 2005 or .... + Fri Nov 16 2006 --> Fri Nov 10 2006 or Thu Nov 16 2006 or Fri Nov 17 2006 or .... + Fri Nov 23 2006 --> Fri Nov 17 2006 or Thu Nov 23 2006 or Fri Nov 24 2006 or .... + + * Sun Feb 7 2016 Daniel Berteaud 2.6.0-2.sme - Add python to BuildReq so brp-python-bytecode compiles sme yum plugin [SME: 9229] @@ -270,11 +318,13 @@ AutoReqProv: no * Wed Nov 29 2006 Gordon Rowell 1.2.0-20 - Revert to 10s panel refresh [SME: 2097] -* Fri Nov 23 2006 Gordon Rowell 1.2.0-19 +* Thu Nov 23 2006 Gordon Rowell 1.2.0-19 + Fri Nov 23 2006 --> Fri Nov 17 2006 or Thu Nov 23 2006 or Fri Nov 24 2006 or .... - Make CentOS base and updates enabled/Visible by default [SME: 1849] - Migrate CentOS base and updates to Visible, but leave status [SME: 1849] -* Fri Nov 23 2006 Gordon Rowell 1.2.0-18 +* Thu Nov 23 2006 Gordon Rowell 1.2.0-18 + Fri Nov 23 2006 --> Fri Nov 17 2006 or Thu Nov 23 2006 or Fri Nov 24 2006 or .... - Adjust wording on post-upgrade page [SME: 2076] * Tue Nov 21 2006 Gordon Rowell 1.2.0-17 @@ -286,17 +336,21 @@ AutoReqProv: no page is displayed from other sessions - TODO: Re-add display of LogFile prior to reconfigure -* Fri Nov 16 2006 Gordon Rowell 1.2.0-15 +* Thu Nov 16 2006 Gordon Rowell 1.2.0-15 + Fri Nov 16 2006 --> Fri Nov 10 2006 or Thu Nov 16 2006 or Fri Nov 17 2006 or .... - Add dependency on yum-plugin-fastestmirror [SME: 1163] - Alpha sort dependencies -* Fri Nov 16 2006 Gordon Rowell 1.2.0-14 +* Thu Nov 16 2006 Gordon Rowell 1.2.0-14 + Fri Nov 16 2006 --> Fri Nov 10 2006 or Thu Nov 16 2006 or Fri Nov 17 2006 or .... - Add MirrorList options to each of the SME repos [SME: 1163] -* Fri Nov 16 2006 Gordon Rowell 1.2.0-13 +* Thu Nov 16 2006 Gordon Rowell 1.2.0-13 + Fri Nov 16 2006 --> Fri Nov 10 2006 or Thu Nov 16 2006 or Fri Nov 17 2006 or .... - Put back missed patch for post-upgrade [SME: 2071] -* Fri Nov 16 2006 Gordon Rowell 1.2.0-12 +* Thu Nov 16 2006 Gordon Rowell 1.2.0-12 + Fri Nov 16 2006 --> Fri Nov 10 2006 or Thu Nov 16 2006 or Fri Nov 17 2006 or .... - Re-add post-upgrade handling [SME: 2071] - Display yum output - Lower refresh to 3 seconds from 10 @@ -337,14 +391,14 @@ AutoReqProv: no * Wed Mar 15 2006 Charlie Brady 1.2.0-01 - Roll stable stream version. [SME: 1016] -* Wed Mar 6 2006 Gordon Rowell 1.1.2-26 +* Mon Mar 6 2006 Gordon Rowell 1.1.2-26 - And migrate old SME repo URLs to new paths [SME: 951] -* Wed Mar 6 2006 Gordon Rowell 1.1.2-25 +* Mon Mar 6 2006 Gordon Rowell 1.1.2-25 - Change SME Server repo URLs to match repo names so we avoid confusion with CentOS repos and can remove the symlinks [SME: 951] -* Wed Mar 6 2006 Gordon Rowell 1.1.2-24 +* Mon Mar 6 2006 Gordon Rowell 1.1.2-24 - Don't force the BaseURL properties - just set defaults [SME: 951] * Wed Feb 22 2006 Gordon Rowell 1.1.2-23 @@ -648,11 +702,13 @@ AutoReqProv: no are modified for the SMEServer releases - INSTALL: Need to manually remove old version of yum_repositories DB -* Fri May 31 2005 Gordon Rowell +* Tue May 31 2005 Gordon Rowell + Fri May 31 2005 --> Fri May 27 2005 or Tue May 31 2005 or Fri Jun 03 2005 or .... - [1.1.0-01gr05] - Add enable/disable repository support to configuration page -* Fri May 31 2005 Gordon Rowell +* Tue May 31 2005 Gordon Rowell + Fri May 31 2005 --> Fri May 27 2005 or Tue May 31 2005 or Fri Jun 03 2005 or .... - [1.1.0-01gr04] - Hide empty group/package select boxes @@ -898,38 +954,3 @@ AutoReqProv: no * Thu Jan 22 2004 Darrell May - [0.0.1a-01] - Original version - -%prep -%setup - -%build -perl createlinks -ln -s /var/service/yum root/service/yum -mkdir -p root/etc/yum.smerepos.d - -%install -/bin/rm -rf $RPM_BUILD_ROOT -(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) -/bin/rm -f %{name}-%{version}-filelist -/sbin/e-smith/genfilelist \ - --file '/sbin/e-smith/yum_update_dbs' 'attr(0700,root,root)' \ - --file '/sbin/e-smith/yum' 'attr(0755,root,root)' \ - --file '/sbin/e-smith/check4updates' 'attr(0755,root,root)' \ - --file '/sbin/e-smith/check4contribsupdates' 'attr(0755,root,root)' \ - --file '/etc/cron.daily/smeserver-yum' 'attr(0700,root,root)' \ - --file /var/service/yum/down 'attr(0644,root,root)' \ - --file /var/service/yum/run 'attr(0755,root,root)' \ - --dir /var/service/yum/log 'attr(0755,root,root)' \ - --dir /var/service/yum/log/supervise 'attr(0700,root,root)' \ - --dir /var/service/yum/supervise 'attr(0700,root,root)' \ - --file /var/service/yum/log/run 'attr(0755,root,root)' \ - --dir /var/log/yum 'attr(2750,smelog,smelog)' \ - $RPM_BUILD_ROOT > %{name}-%{version}-%{release}-filelist - -%clean -/bin/rm -rf $RPM_BUILD_ROOT - -%files -f %{name}-%{version}-%{release}-filelist - -%defattr(-,root,root) -