]>
Commit | Line | Data |
---|---|---|
588aebd6 ER |
1 | Summary: backs up everything github knows about a repository, to the repository |
2 | Name: github-backup | |
3 | Version: 1.20150106 | |
4 | Release: 0.1 | |
5 | License: GPL v3 | |
6 | Group: Development/Languages | |
7 | Source0: https://github.com/joeyh/github-backup/archive/%{version}/%{name}-%{version}.tar.gz | |
8 | # Source0-md5: b278a9b09243efc66638bf74554480d4 | |
9 | URL: https://github.com/joeyh/github-backup | |
10 | BuildRequires: ghc >= 6.12.3 | |
3e7f22d6 ER |
11 | #BuildRequires: ghc-exceptions |
12 | #BuildRequires: ghc-github >= 0.13.1 | |
13 | BuildRequires: ghc-hslogger | |
14 | #BuildRequires: ghc-ifelse | |
15 | #BuildRequires: ghc-missingh | |
16 | #BuildRequires: ghc-optparse-applicative | |
17 | #BuildRequires: ghc-pretty-show | |
18 | BuildRequires: ghc-transformers-base | |
19 | #BuildRequires: ghc-unix-compat | |
588aebd6 ER |
20 | BuildRequires: rpmbuild(macros) >= 1.608 |
21 | %requires_releq ghc | |
22 | Requires(post,postun): /usr/bin/ghc-pkg | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | # debuginfo is not useful for ghc | |
26 | %define _enable_debug_packages 0 | |
27 | ||
28 | # don't compress haddock files | |
29 | %define _noautocompressdoc *.haddock | |
30 | ||
31 | %description | |
32 | github-backup is a simple tool you run in a git repository you cloned | |
33 | from GitHub. It backs up everything GitHub publishes about the | |
34 | repository, including branches, tags, other forks, issues, comments, | |
35 | wikis, milestones, pull requests, watchers, and stars. | |
36 | ||
37 | Also includes gitriddance, which can be used to close all open issues | |
38 | and pull requests. | |
39 | ||
40 | %prep | |
41 | %setup -q | |
42 | ||
43 | %build | |
3e7f22d6 ER |
44 | %{__make} build \ |
45 | CABAL=./Setup | |
588aebd6 ER |
46 | |
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
3e7f22d6 ER |
49 | %{__make} install \ |
50 | DESTDIR=$RPM_BUILD_ROOT | |
588aebd6 ER |
51 | |
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
57 | %doc README.md | |
3e7f22d6 ER |
58 | %attr(755,root,root) %{_bindir}/github-backup |
59 | %attr(755,root,root) %{_bindir}/gitriddance | |
60 | %{_mandir}/man1/github-backup.1 | |
61 | %{_mandir}/man1/gitriddance.1 |