]>
Commit | Line | Data |
---|---|---|
3962c4ad JB |
1 | Summary: Convert Gregorian dates to Discordian dates |
2 | Summary(pl.UTF-8): Tłumaczenie dat gregoriańskich na diskordiańskie | |
3 | Name: ddate | |
4 | Version: 0.2.1 | |
5 | Release: 1 | |
6 | License: Public Domain | |
7 | Group: Applications | |
8 | Source0: https://github.com/bo0ts/ddate/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 4ca90de7a92ee3038de6d76e2b618b15 | |
10 | # temporarily use util-linux mans tarball | |
11 | Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/util-linux-non-english-man-pages.tar.bz2 | |
12 | # Source1-md5: 3c940c7e7fe699eaa2ddb1bffb3de2fe | |
13 | URL: https://github.com/bo0ts/ddate/ | |
14 | BuildRequires: cmake >= 2.8 | |
15 | BuildRequires: rpmbuild(macros) >= 1.605 | |
16 | Conflicts: util-linux < 2.23 | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | ddate is a utility to convert Gregorian dates to Discordian dates. | |
21 | ||
22 | %description -l pl.UTF-8 | |
23 | ddate to narzędzie do tłumaczenia dat gregoriańskich na | |
24 | diskordiańskie. | |
25 | ||
26 | %prep | |
27 | %setup -q -a1 | |
28 | ||
29 | %build | |
30 | %cmake . | |
31 | %{__make} | |
32 | ||
33 | %install | |
34 | rm -rf $RPM_BUILD_ROOT | |
35 | install -d $RPM_BUILD_ROOT%{_mandir} | |
36 | ||
37 | %{__make} install \ | |
38 | DESTDIR=$RPM_BUILD_ROOT | |
39 | ||
40 | mv $RPM_BUILD_ROOT%{_datadir}/man1 $RPM_BUILD_ROOT%{_mandir} | |
41 | for f in man/*/man1/ddate.1 ; do | |
42 | install -Dp $f $RPM_BUILD_ROOT%{_mandir}/${f#man/} | |
43 | done | |
44 | ||
45 | %clean | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %files | |
49 | %defattr(644,root,root,755) | |
50 | %doc README.org | |
51 | %attr(755,root,root) %{_bindir}/ddate | |
52 | %{_mandir}/man1/ddate.1* | |
53 | %lang(es) %{_mandir}/es/man1/ddate.1* | |
54 | %lang(ja) %{_mandir}/ja/man1/ddate.1* | |
55 | %lang(ko) %{_mandir}/ko/man1/ddate.1* |