[1000] | 1 | #
|
---|
| 2 | # spec file for package [spectemplate]
|
---|
| 3 | #
|
---|
[1001] | 4 | # Copyright (c) 2012 dass IT GmbH, Cologne, Germany.
|
---|
[1000] | 5 | #
|
---|
| 6 | # All modifications and additions to the file contributed by third parties
|
---|
| 7 | # remain the property of their copyright owners, unless otherwise agreed
|
---|
| 8 | # upon. The license for this file, and modifications and additions to the
|
---|
| 9 | # file, is the same license as for the pristine package itself (unless the
|
---|
| 10 | # license for the pristine package is not an Open Source License, in which
|
---|
| 11 | # case the license is the MIT License). An "Open Source License" is a
|
---|
| 12 | # license that conforms to the Open Source Definition (Version 1.9)
|
---|
| 13 | # published by the Open Source Initiative.
|
---|
| 14 |
|
---|
[1001] | 15 | # Please submit bugfixes or comments via packager@dass-it.de
|
---|
[1000] | 16 | #
|
---|
| 17 | # norootforbuild
|
---|
| 18 |
|
---|
| 19 | Name: wsusoffline
|
---|
| 20 | Group: System/Management
|
---|
[1009] | 21 | Version: 7.3.2
|
---|
| 22 | %define ver "732"
|
---|
[1000] | 23 | Release: 1
|
---|
| 24 | Summary: WSUS Offline Update: download Microsoft updates
|
---|
| 25 | License: GPLv2+
|
---|
| 26 | URL: http://www.wsusoffline.net/
|
---|
| 27 | Source: %{name}_%{version}.orig.tar.gz
|
---|
[1014] | 28 | #Source99: #{name}-rpmlintrc
|
---|
[1004] | 29 | BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
---|
[1008] | 30 | BuildRequires: unzip pwdutils
|
---|
[1001] | 31 | Requires: cabextract dos2unix md5deep xmlstarlet wget
|
---|
[1000] | 32 | BuildArch: noarch
|
---|
| 33 |
|
---|
| 34 | %description
|
---|
[1001] | 35 | "WSUS Offline Update" allows you to download most Microsoft updates and store them localy.
|
---|
[1002] | 36 | This includes Windows, Office and some extensions like dotnet or Powershell.
|
---|
[1001] | 37 | After downloading, they can be installed on any Microsoft Windows system without an Internet connection.
|
---|
| 38 | Also unattended/silient installation are possible, so the update be be included easily in a Windows software management system like http://www.opsi.org
|
---|
[1000] | 39 |
|
---|
| 40 | %prep
|
---|
| 41 | %setup -c
|
---|
| 42 |
|
---|
| 43 |
|
---|
| 44 | %build
|
---|
| 45 |
|
---|
| 46 |
|
---|
| 47 |
|
---|
| 48 | %install
|
---|
[1010] | 49 | %define DEST_DIR /var/lib/wsusoffline/
|
---|
[1000] | 50 | mkdir -p $RPM_BUILD_ROOT/var/lib/
|
---|
[1008] | 51 | unzip wsusoffline/%{name}%{ver}.zip -d $RPM_BUILD_ROOT/var/lib/
|
---|
[1010] | 52 | rm -r $RPM_BUILD_ROOT/%{DEST_DIR}/*.exe
|
---|
| 53 | rm -r $RPM_BUILD_ROOT/%{DEST_DIR}/*.au3
|
---|
| 54 | rm -r $RPM_BUILD_ROOT/%{DEST_DIR}/bin
|
---|
| 55 | rm -r $RPM_BUILD_ROOT/%{DEST_DIR}/cmd
|
---|
[1011] | 56 | chmod g+w $RPM_BUILD_ROOT/%{DEST_DIR}
|
---|
[1013] | 57 | chmod g+w $RPM_BUILD_ROOT/%{DEST_DIR}/exclude/
|
---|
[1008] | 58 | chmod -R g+w $RPM_BUILD_ROOT/%{DEST_DIR}/client/
|
---|
[1000] | 59 | chmod a+x $RPM_BUILD_ROOT/%{DEST_DIR}/sh/*
|
---|
[1012] | 60 | chmod g+w $RPM_BUILD_ROOT/%{DEST_DIR}/sh/
|
---|
[1013] | 61 | install -d -m 775 $RPM_BUILD_ROOT/%{DEST_DIR}/temp
|
---|
| 62 |
|
---|
[1001] | 63 | mkdir -p $RPM_BUILD_ROOT/usr/bin/
|
---|
[1011] | 64 | install wsusoffline/*.sh $RPM_BUILD_ROOT/usr/bin/
|
---|
[1000] | 65 |
|
---|
| 66 | %clean
|
---|
| 67 | rm -rf %{buildroot}
|
---|
| 68 |
|
---|
[1008] | 69 | %pre
|
---|
| 70 | getent group wsusoffline >/dev/null || groupadd -r wsusoffline
|
---|
| 71 | exit 0
|
---|
| 72 |
|
---|
[1000] | 73 | %files
|
---|
| 74 | %defattr(-,root,root)
|
---|
[1008] | 75 | /usr/bin/wsus-*.sh
|
---|
[1010] | 76 | # #{DEST_DIR}/bin
|
---|
| 77 | # #{DEST_DIR}/cmd
|
---|
| 78 | %{DEST_DIR}/doc
|
---|
| 79 | %{DEST_DIR}/static
|
---|
| 80 | %{DEST_DIR}/xslt
|
---|
| 81 |
|
---|
[1008] | 82 | %defattr(-,root,wsusoffline)
|
---|
[1011] | 83 | %dir %{DEST_DIR}
|
---|
[1008] | 84 | %{DEST_DIR}/client/
|
---|
[1013] | 85 | %{DEST_DIR}/exclude/
|
---|
[1010] | 86 | %{DEST_DIR}/iso/
|
---|
| 87 | %{DEST_DIR}/log/
|
---|
[1012] | 88 | %{DEST_DIR}/sh/
|
---|
[1010] | 89 | %{DEST_DIR}/temp/
|
---|
[1000] | 90 |
|
---|
| 91 | %changelog
|
---|