4 |
%define name smeserver-yum |
%define name smeserver-yum |
5 |
Name: %{name} |
Name: %{name} |
6 |
%define version 1.2.0 |
%define version 1.2.0 |
7 |
%define release 39 |
%define release 47 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
41 |
Patch28: smeserver-yum-1.2.0-gpgkeys.patch |
Patch28: smeserver-yum-1.2.0-gpgkeys.patch |
42 |
Patch29: smeserver-yum-1.2.0-FixUninitializedValue.patch |
Patch29: smeserver-yum-1.2.0-FixUninitializedValue.patch |
43 |
Patch30: smeserver-yum-1.2.0-FixEnableGroups.patch |
Patch30: smeserver-yum-1.2.0-FixEnableGroups.patch |
44 |
|
Patch31: smeserver-yum-1.2.0-smecontribs.patch |
45 |
|
Patch32: smeserver-yum-1.2.0-importkeys-update.patch |
46 |
|
Patch33: smeserver-yum-1.2.0-check4updates.patch |
47 |
|
Patch34: smeserver-yum-1.2.0-yumlocal.patch |
48 |
|
Patch35: smeserver-yum-1.2.0-removeSMEBaseURLs.patch |
49 |
|
Patch36: smeserver-yum-1.2.0-removeBaseURLs.patch |
50 |
|
Patch37: smeserver-yum-1.2.0-uptodate.patch |
51 |
|
Patch38: smeserver-yum-1.2.0-check4updates.patch2 |
52 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
53 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
54 |
Requires: e-smith-formmagick |
Requires: e-smith-formmagick |
58 |
Provides: yumconf |
Provides: yumconf |
59 |
%if "%{?rhel}" == "5" |
%if "%{?rhel}" == "5" |
60 |
Obsoletes: rpmdb-CentOS |
Obsoletes: rpmdb-CentOS |
61 |
|
Obsoletes: check4updates |
62 |
|
Provides: check4updates |
63 |
Obsoletes: yum-plugin-fastestmirror |
Obsoletes: yum-plugin-fastestmirror |
64 |
Requires: yum-fastestmirror |
Requires: yum-fastestmirror |
65 |
%else |
%else |
73 |
%name is an implementation of http://linux.duke.edu/projects/yum on SME Server |
%name is an implementation of http://linux.duke.edu/projects/yum on SME Server |
74 |
|
|
75 |
%changelog |
%changelog |
76 |
|
* Fri Jan 11 2008 Shad L. Lords <slords@mail.com> 1.2.0-47 |
77 |
|
- Add check4update script, make cronjob run same as scheduled dirs [SME: 3250] |
78 |
|
|
79 |
|
* Wed Jan 09 2008 Stephen Noble <support@dungog.net> 1.2.0-46 |
80 |
|
- Add server is up to date message on panel [SME: 2512] |
81 |
|
|
82 |
|
* Mon Jan 7 2008 Stephen Noble <support@dungog.net> 1.2.0-45 |
83 |
|
- remove BaseURL property for repos with mirrorlists [SME: 3275] |
84 |
|
|
85 |
|
* Mon Jan 7 2008 Stephen Noble <support@dungog.net> 1.2.0-44 |
86 |
|
- safesymlink yum into local [SME: 3238] |
87 |
|
|
88 |
|
* Mon Jan 7 2008 Stephen Noble <support@dungog.net> 1.2.0-43 |
89 |
|
- add check4updates cronjob, obsolete check4updates rpm [SME: 3250] |
90 |
|
|
91 |
|
* Mon Jan 7 2008 Stephen Noble <support@dungog.net> 1.2.0-42 |
92 |
|
- yum-import-keys action to yum-update event [SME: 3196] |
93 |
|
|
94 |
|
* Mon Dec 24 2007 Stephen Noble <support@dungog.net> 1.2.0-41 |
95 |
|
- add smecontribs repo [SME: 3551] |
96 |
|
|
97 |
|
* Tue Dec 11 2007 Gavin Weight <gweight@gmail.com> 1.2.0-40 |
98 |
|
- Remove bad mirror and add two new mirrors. [SME: 3636] |
99 |
|
|
100 |
* Fri Nov 30 2007 Gavin Weight <gweight@gmail.com> 1.2.0-39 |
* Fri Nov 30 2007 Gavin Weight <gweight@gmail.com> 1.2.0-39 |
101 |
- Change EnableGroups value to no/yes instead of 0/1. [SME: 3607] |
- Change EnableGroups value to no/yes instead of 0/1. [SME: 3607] |
102 |
|
|
829 |
%patch28 -p1 |
%patch28 -p1 |
830 |
%patch29 -p1 |
%patch29 -p1 |
831 |
%patch30 -p1 |
%patch30 -p1 |
832 |
|
%patch31 -p1 |
833 |
|
%patch32 -p1 |
834 |
|
%patch33 -p1 |
835 |
|
%patch34 -p1 |
836 |
|
%patch35 -p1 |
837 |
|
%patch36 -p1 |
838 |
|
%patch37 -p1 |
839 |
|
%patch38 -p1 |
840 |
|
|
841 |
%build |
%build |
842 |
perl createlinks |
perl createlinks |
851 |
mkdir -p root/etc/e-smith/db/yum_{available,installed,updates} |
mkdir -p root/etc/e-smith/db/yum_{available,installed,updates} |
852 |
|
|
853 |
mkdir -p root/etc/yum.repos.d/ |
mkdir -p root/etc/yum.repos.d/ |
854 |
for repo in smeaddons smedev smeos smetest smeupdates smeupdates-testing |
for repo in smeaddons smedev smeos smetest smeupdates smeupdates-testing smecontribs |
855 |
do |
do |
856 |
cat > root/etc/yum.repos.d/mirrors-$repo <<END_OF_HERE |
cat > root/etc/yum.repos.d/mirrors-$repo <<END_OF_HERE |
857 |
http://distro.ibiblio.org/pub/linux/distributions/smeserver/releases/7/$repo/\$basearch |
http://distro.ibiblio.org/pub/linux/distributions/smeserver/releases/7/$repo/\$basearch |
858 |
ftp://ftp.planetmirror.com/pub/smeserver/releases/7/$repo/\$basearch |
http://sme-mirror.voxteneo.com/releases/7/$repo/\$basearch |
859 |
|
http://smemirror.fullnet.co.uk/releases/7/$repo/\$basearch |
860 |
http://ftp.nluug.nl/os/Linux/distr/smeserver/releases/7/$repo/\$basearch |
http://ftp.nluug.nl/os/Linux/distr/smeserver/releases/7/$repo/\$basearch |
861 |
http://ftp.surfnet.nl/ftp/pub/os/Linux/distr/smeserver/releases/7/$repo/\$basearch |
http://ftp.surfnet.nl/ftp/pub/os/Linux/distr/smeserver/releases/7/$repo/\$basearch |
862 |
http://mirror.pacific.net.au/linux/smeserver/releases/7/$repo/\$basearch |
http://mirror.pacific.net.au/linux/smeserver/releases/7/$repo/\$basearch |
871 |
/sbin/e-smith/genfilelist \ |
/sbin/e-smith/genfilelist \ |
872 |
--file '/sbin/e-smith/yum_update_dbs' 'attr(0700,root,root)' \ |
--file '/sbin/e-smith/yum_update_dbs' 'attr(0700,root,root)' \ |
873 |
--file '/sbin/e-smith/yum' 'attr(0755,root,root)' \ |
--file '/sbin/e-smith/yum' 'attr(0755,root,root)' \ |
874 |
|
--file '/sbin/e-smith/check4updates' 'attr(0755,root,root)' \ |
875 |
--file '/etc/cron.daily/smeserver-yum' 'attr(0700,root,root)' \ |
--file '/etc/cron.daily/smeserver-yum' 'attr(0700,root,root)' \ |
876 |
--file /var/service/yum/down 'attr(0644,root,root)' \ |
--file /var/service/yum/down 'attr(0644,root,root)' \ |
877 |
--file /var/service/yum/run 'attr(0755,root,root)' \ |
--file /var/service/yum/run 'attr(0755,root,root)' \ |