source: dasscm/trunk/dasscm.spec@ 778

Last change on this file since 778 was 770, checked in by joergs, on Jul 1, 2009 at 1:54:42 PM

moved to trunk subdirectory

  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1#
2# Copyright (c) 2004-2009 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 770 2009-07-01 11:54:42Z joergs $
7
8Name: dasscm
9URL: https://trac.dass-it.de/pub/
10License: GPL
11Group: Development/Tools/Version Control
12Autoreqprov: on
13Summary: dass configuration management tool
14Version: 1.0
15Release: 0
16Requires: subversion perl perl-TermReadKey
17Source: %{name}_%{version}.orig.tar.gz
18Packager: joerg.steffens@dass-it.de
19BuildRoot: %{_tmppath}/%{name}-%{version}-build
20BuildArch: noarch
21%if 0%{?suse_version}
22BuildRequires: 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
35dasscm is a tool for handling configuration files with subversion
36
37Authors:
38--------
39 Joerg Steffens
40
41%prep
42%setup -c
43
44
45
46%build
47
48%install
49mkdir -p $RPM_BUILD_ROOT/usr/bin/
50install -m 755 dasscm $RPM_BUILD_ROOT/usr/bin/
51mkdir -p $RPM_BUILD_ROOT/etc/
52install -m 640 dasscm.conf $RPM_BUILD_ROOT/etc/
53mkdir -p $RPM_BUILD_ROOT/var/lib/dasscm/
54#if -d $RPM_BUILD_ROOT/etc/subversion/
55# install -m 644 subversion-servers.dass-it $RPM_BUILD_ROOT/etc/subversion/servers.dass-it
56#fi
57
58
59
60
61%clean
62rm -rf $RPM_BUILD_ROOT
63
64# TODO: group dasscm: 4199
65# without existing group, %attr(640,root,4199) falls back to root
66# groupadd -g 4199 dasscm
67
68%files
69%defattr(-,root,root)
70%dir /var/lib/dasscm/
71/usr/bin/dasscm
72%config(noreplace) /etc/dasscm.conf
73%doc Changes doc/* subversion-servers.dass-it
Note: See TracBrowser for help on using the repository browser.