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