[200] | 1 | #
|
---|
[1210] | 2 | # Copyright (c) 2012-2016 dass IT GmbH, Koeln, Germany.
|
---|
[200] | 3 | # This file and all modifications and additions to the pristine
|
---|
| 4 | # package are under the same license as the package itself.
|
---|
| 5 | #
|
---|
[214] | 6 | # $Id: dass-tools.spec 1241 2018-05-29 11:36:08Z joergs $
|
---|
[200] | 7 |
|
---|
[1071] | 8 | Name: dass-tools
|
---|
[1056] | 9 | URL: http://trac.dass-it.de/pub/
|
---|
[214] | 10 | License: GPL
|
---|
[1071] | 11 | Group: Productivity/Other
|
---|
[214] | 12 | Autoreqprov: on
|
---|
[1071] | 13 | Summary: small set of tools
|
---|
[1056] | 14 | Version: 1.0
|
---|
[214] | 15 | Release: 0
|
---|
[746] | 16 | Source: %{name}_%{version}.orig.tar.gz
|
---|
[232] | 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
---|
[214] | 18 | BuildArch: noarch
|
---|
[246] | 19 | %if 0%{?suse_version}
|
---|
[1241] | 20 | BuildRequires: gzip tar
|
---|
[232] | 21 | %endif
|
---|
[1193] | 22 | # mirror-urls
|
---|
[1192] | 23 | Requires: lftp
|
---|
[1193] | 24 | # mirror-obs
|
---|
[1192] | 25 | Requires: rsync
|
---|
[1193] | 26 | # mirror-*
|
---|
[1192] | 27 | Requires: sed
|
---|
[1193] | 28 | # xpi-extract.sh
|
---|
| 29 | Requires: unzip xmlstarlet
|
---|
[1214] | 30 | # reposync-.*
|
---|
| 31 | #Requires: yum-utils
|
---|
[263] | 32 |
|
---|
[200] | 33 |
|
---|
| 34 | %description
|
---|
[1071] | 35 | dass-tools is a collections of small utilities
|
---|
[200] | 36 |
|
---|
| 37 | %prep
|
---|
[745] | 38 | %setup -c
|
---|
[200] | 39 |
|
---|
| 40 | %build
|
---|
| 41 |
|
---|
[896] | 42 |
|
---|
[200] | 43 | %install
|
---|
[1210] | 44 | mkdir -p $RPM_BUILD_ROOT/etc/
|
---|
[1212] | 45 | install -m 644 etc/*.conf $RPM_BUILD_ROOT/etc/
|
---|
[1215] | 46 | mkdir -p $RPM_BUILD_ROOT/etc/dass-it
|
---|
| 47 | install -m 644 etc/dass-it/*.conf $RPM_BUILD_ROOT/etc/dass-it/
|
---|
[1071] | 48 | mkdir -p $RPM_BUILD_ROOT/etc/profile.d/
|
---|
| 49 | install -m 644 etc/profile.d/*.sh $RPM_BUILD_ROOT/etc/profile.d/
|
---|
[932] | 50 |
|
---|
[1077] | 51 | mkdir -p $RPM_BUILD_ROOT/usr/bin
|
---|
| 52 | install -m 755 usr/bin/*.sh $RPM_BUILD_ROOT/usr/bin
|
---|
| 53 |
|
---|
[1089] | 54 | mkdir -p $RPM_BUILD_ROOT/usr/sbin
|
---|
| 55 | install -m 755 usr/sbin/*.sh $RPM_BUILD_ROOT/usr/sbin
|
---|
[1077] | 56 |
|
---|
[1089] | 57 |
|
---|
| 58 |
|
---|
[200] | 59 | %clean
|
---|
[896] | 60 | [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
---|
[200] | 61 |
|
---|
| 62 |
|
---|
| 63 | %files
|
---|
| 64 | %defattr(-,root,root)
|
---|
[1214] | 65 | %config(noreplace) /etc/*.conf
|
---|
[1215] | 66 | %dir /etc/dass-it/
|
---|
| 67 | %config(noreplace) /etc/dass-it/*.conf
|
---|
[1213] | 68 | %config(noreplace) /etc/profile.d/*
|
---|
[1077] | 69 | /usr/bin/*
|
---|
[1089] | 70 | /usr/sbin/*
|
---|