1 | #
|
---|
2 | # Copyright (c) 2004-2010 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: dasscm.spec 882 2010-06-15 16:31:11Z joergs $
|
---|
7 |
|
---|
8 | Name: dasscm
|
---|
9 | URL: https://trac.dass-it.de/pub/
|
---|
10 | License: GPL
|
---|
11 | Group: Development/Tools/Version Control
|
---|
12 | Autoreqprov: on
|
---|
13 | Summary: dass configuration management tool
|
---|
14 | Version: 1.0
|
---|
15 | Release: 0
|
---|
16 | Requires: subversion perl perl-TermReadKey
|
---|
17 | Source: %{name}_%{version}.orig.tar.gz
|
---|
18 | Packager: joerg.steffens@dass-it.de
|
---|
19 | BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
---|
20 | BuildArch: noarch
|
---|
21 | %if 0%{?suse_version}
|
---|
22 | BuildRequires: gzip pam-modules tar
|
---|
23 | %endif
|
---|
24 |
|
---|
25 | # Subversion should be installed during build
|
---|
26 | # to have the directory /etc/subversion/ available.
|
---|
27 | # Unfortunally, it isn't included in all distributions,
|
---|
28 | # therefore we added some checks
|
---|
29 | #%if 0%{?suse_version} > 1100
|
---|
30 | #BuildRequires: subversion
|
---|
31 | #%endif
|
---|
32 |
|
---|
33 |
|
---|
34 | %description
|
---|
35 | dasscm is a tool for handling configuration files with subversion
|
---|
36 |
|
---|
37 | Authors:
|
---|
38 | --------
|
---|
39 | Joerg Steffens
|
---|
40 |
|
---|
41 | %prep
|
---|
42 | %setup -c
|
---|
43 |
|
---|
44 |
|
---|
45 |
|
---|
46 | %build
|
---|
47 |
|
---|
48 | %install
|
---|
49 | mkdir -p $RPM_BUILD_ROOT/usr/bin/
|
---|
50 | install -m 755 usr/bin/dasscm $RPM_BUILD_ROOT/usr/bin/
|
---|
51 | install -m 755 usr/bin/dasscm_remote_update.sh $RPM_BUILD_ROOT/usr/bin/
|
---|
52 | mkdir -p $RPM_BUILD_ROOT/etc/
|
---|
53 | install -m 640 etc/dasscm.conf $RPM_BUILD_ROOT/etc/
|
---|
54 | mkdir -p $RPM_BUILD_ROOT/var/lib/dasscm/
|
---|
55 | #if -d $RPM_BUILD_ROOT/etc/subversion/
|
---|
56 | # install -m 644 subversion-servers.dass-it $RPM_BUILD_ROOT/etc/subversion/servers.dass-it
|
---|
57 | #fi
|
---|
58 |
|
---|
59 |
|
---|
60 |
|
---|
61 |
|
---|
62 | %clean
|
---|
63 | rm -rf $RPM_BUILD_ROOT
|
---|
64 |
|
---|
65 | # TODO: group dasscm: 4199
|
---|
66 | # without existing group, %attr(640,root,4199) falls back to root
|
---|
67 | # groupadd -g 4199 dasscm
|
---|
68 |
|
---|
69 | %files
|
---|
70 | %defattr(-,root,root)
|
---|
71 | %dir /var/lib/dasscm/
|
---|
72 | /usr/bin/dasscm
|
---|
73 | /usr/bin/dasscm_remote_update.sh
|
---|
74 | %attr(640,root,root) %config(noreplace) /etc/dasscm.conf
|
---|
75 | %doc Changes doc/* subversion-servers.dass-it
|
---|