]>
Commit | Line | Data |
---|---|---|
272cc982 | 1 | %define php_min_version 5.3.7 |
272cc982 ER |
2 | Summary: Eventum SCM integration |
3 | Summary(pl.UTF-8): Integracja SCM dla Eventum | |
4 | Name: eventum-scm | |
454487aa | 5 | Version: 3.2.0 |
c9bfd528 | 6 | Release: 1 |
272cc982 ER |
7 | License: GPL v2+ |
8 | Group: Networking/Utilities | |
9 | Source0: https://github.com/eventum/scm/archive/v%{version}/%{name}-%{version}.tar.gz | |
454487aa | 10 | # Source0-md5: 355bc530b44ed61ac176f9bb9fd083fa |
059577b2 | 11 | Patch0: paths.patch |
272cc982 ER |
12 | URL: https://github.com/eventum/scm |
13 | BuildRequires: /usr/bin/php | |
14 | BuildRequires: php(core) >= %{php_min_version} | |
15 | BuildRequires: rpm-php-pearprov >= 4.0.2-98 | |
16 | BuildRequires: rpmbuild(macros) >= 1.654 | |
17 | BuildRequires: sed >= 4.0 | |
18 | Requires: php(core) >= %{php_min_version} | |
19 | Requires: php(json) | |
20 | Requires: php(pcre) | |
21 | Requires: php(spl) | |
22 | Suggests: cvs | |
23 | Suggests: git-core | |
24 | Suggests: php(openssl) | |
25 | Suggests: subversion | |
26 | BuildArch: noarch | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
059577b2 | 29 | %define _libdir %{_prefix}/lib |
b58a2424 | 30 | |
272cc982 ER |
31 | %description |
32 | This feature allows your software development teams to integrate your | |
33 | Source Control Management system with your Issue Tracking System. | |
34 | ||
35 | The integration is implemented in such a way that it will be forward | |
36 | compatible with pretty much any SCM system, such as CVS. | |
37 | ||
38 | For installation see | |
39 | </eventum/help.php?topic=scm_integration_installation>. | |
40 | ||
41 | %description -l pl.UTF-8 | |
42 | Ten pakiet pozwala zespołom programistów na integrację systemu | |
43 | zarządzania źródłami (SCM - Source Control Management) z systemem | |
44 | śledzenia spraw. | |
45 | ||
46 | Integracja jest zaimplementowana tak, aby być kompatybilna w przód z | |
47 | prawie każdym systemem SCM, jak np. CVS. | |
48 | ||
49 | Szczegóły na temat instalacji można przeczytać pod | |
50 | </eventum/help.php?topic=scm_integration_installation>. | |
51 | ||
52 | %prep | |
29625ec5 ER |
53 | %setup -qc |
54 | mv scm-*/* . | |
059577b2 | 55 | %patch0 -p1 |
272cc982 | 56 | |
0ea3f117 ER |
57 | %{__sed} -i -e '1 s,#!.*php,#!/usr/bin/php,' eventum-*-hook.php |
58 | ||
272cc982 ER |
59 | %install |
60 | rm -rf $RPM_BUILD_ROOT | |
059577b2 ER |
61 | install -d $RPM_BUILD_ROOT{%{_sbindir},%{_libdir}} |
62 | cp -p helpers.php $RPM_BUILD_ROOT%{_libdir}/eventum-scm-helpers.php | |
272cc982 ER |
63 | for a in eventum-*-hook.php; do |
64 | f=${a%.php} | |
65 | install -p $a $RPM_BUILD_ROOT%{_sbindir}/$f | |
66 | done | |
67 | ||
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %files | |
72 | %defattr(644,root,root,755) | |
9773cfb8 | 73 | %doc README.md CHANGELOG.md |
272cc982 ER |
74 | %attr(755,root,root) %{_sbindir}/eventum-cvs-hook |
75 | %attr(755,root,root) %{_sbindir}/eventum-git-hook | |
76 | %attr(755,root,root) %{_sbindir}/eventum-svn-hook | |
059577b2 | 77 | %{_libdir}/eventum-scm-helpers.php |