]> git.pld-linux.org Git - packages/ditz.git/blob - ditz.spec
- adapter, add changelog
[packages/ditz.git] / ditz.spec
1 Summary:        Issue tracker for distributed SCMs
2 Name:           ditz
3 Version:        0.1
4 Release:        1
5 License:        Ruby
6 Source0:        http://rubyforge.org/frs/download.php/34859/%{name}-%{version}.tgz
7 # Source0-md5:  1ea135ab10fff82ed240d1cd5fc94f12
8 Group:          Development/Tools
9 Patch0:         %{name}-nogems.patch
10 Patch1:         %{name}-paths.patch
11 URL:            http://ditz.rubyforge.org/
12 BuildRequires:  rpmbuild(macros) >= 1.277
13 BuildRequires:  ruby-modules
14 BuildRequires:  setup.rb
15 %{?ruby_mod_ver_requires_eq}
16 Requires:       ruby-trollop
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 Ditz is a simple, light-weight distributed issue tracker designed to
21 work with distributed version control systems like darcs and git. Ditz
22 maintains an issue database file on disk, written in a line-based and
23 human-editable format. This file is kept under version control,
24 alongside project code. Changes in issue state is handled by version
25 control like code change: included as part of a commit, merged with
26 changes from other developers, conflict-resolved in the standard
27 manner, etc.
28
29 Ditz provides a simple, console-based interface for creating and
30 updating the issue database file, and some rudimentary HTML generation
31 capabilities for producing world-readable status pages. It offers no
32 central public method of bug submission.
33
34 %prep
35 %setup -q
36 %patch0 -p1
37 %patch1 -p1
38 install %{_datadir}/setup.rb .
39
40 %build
41 mkdir lib/ditz
42 mv lib/*.rb lib/ditz/
43 mv lib/ditz/ditz.rb lib/
44 ruby setup.rb config --rbdir=%{ruby_rubylibdir} --sodir=%{ruby_archdir}
45 ruby setup.rb setup
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT%{ruby_rubylibdir}
50
51 ruby setup.rb install --prefix=$RPM_BUILD_ROOT
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(644,root,root,755)
58 %attr(755,root,root) %{_bindir}/*
59 %{ruby_rubylibdir}/*.rb
60 %{ruby_rubylibdir}/ditz
This page took 0.0839569999999999 seconds and 3 git commands to generate.