source: dass-tools/dass-tools.spec

Last change on this file was 1246, checked in by joergs, 3 years ago

Reduce some build warnings/errors.

  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
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 1246 2020-01-07 11:24:18Z joergs $
7
8Name:           dass-tools
9URL:            http://trac.dass-it.de/pub/
10License:        GPL-3.0-or-later
11Group:          Productivity/Other
12Autoreqprov:    on
13Summary:        Small set of tools
14Version:        1.0
15Release:        0
16Source:         %{name}_%{version}.orig.tar.gz
17BuildRoot:      %{_tmppath}/%{name}-%{version}-build
18BuildArch:      noarch
19%if 0%{?suse_version}
20BuildRequires:  gzip tar
21%endif
22# mirror-urls
23Requires:       lftp
24# mirror-obs
25Requires:       rsync
26# mirror-*
27Requires:       sed
28# xpi-extract.sh
29Requires:       unzip xmlstarlet
30# reposync-.*
31#Requires:       yum-utils
32 
33
34%description
35dass-tools is a collections of small utilities.
36
37%prep
38%setup -c
39
40%build
41
42
43%install
44mkdir -p $RPM_BUILD_ROOT/etc/
45install -m 644 etc/*.conf $RPM_BUILD_ROOT/etc/
46mkdir -p $RPM_BUILD_ROOT/etc/dass-it
47install -m 644 etc/dass-it/*.conf $RPM_BUILD_ROOT/etc/dass-it/
48mkdir -p $RPM_BUILD_ROOT/etc/profile.d/
49install -m 644 etc/profile.d/*.sh $RPM_BUILD_ROOT/etc/profile.d/
50
51mkdir -p $RPM_BUILD_ROOT/usr/bin
52install -m 755 usr/bin/*.sh $RPM_BUILD_ROOT/usr/bin
53
54mkdir -p $RPM_BUILD_ROOT/usr/sbin
55install -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/*
Note: See TracBrowser for help on using the repository browser.