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