]>
Commit | Line | Data |
---|---|---|
39e1b0c3 MM |
1 | %define xver %(echo %{version} | tr -d .) |
2 | Summary: Open Convert-.LIT tool | |
91b7a6fc | 3 | Summary(pl.UTF-8): Otwarte narzędzie do rozpakowywania plików .LIT |
39e1b0c3 | 4 | Name: clit |
3ed4e423 | 5 | Version: 1.8 |
058ee1dd | 6 | Release: 2 |
39e1b0c3 MM |
7 | License: GPL v2+ |
8 | Group: Applications/Archiving | |
9 | Source0: http://www.kyz.uklinux.net/downloads/open_c-lit-%{version}.tar.gz | |
3ed4e423 | 10 | # Source0-md5: d8c599cf0e3cd8bab08e455e51ef852d |
39e1b0c3 | 11 | URL: http://www.kyz.uklinux.net/convlit.php |
3ed4e423 JB |
12 | BuildRequires: libtommath-devel |
13 | BuildRequires: sed >= 4.0 | |
39e1b0c3 MM |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
15 | ||
16 | %description | |
17 | clit allows extracting "DRM1" format .LIT files into their original | |
18 | XML/HTML. IANAL but using this program may violate DMCA if you're in | |
19 | USA. | |
20 | ||
68934bf2 JR |
21 | %description -l pl.UTF-8 |
22 | clit pozwala na rozpakowywanie plików w formacie .LIT/DRM1. Używanie | |
23 | tego programu na terenie Stanów Zjednoczonych Ameryki Północnej może | |
24 | być pogwałceniem DMCA. | |
39e1b0c3 MM |
25 | |
26 | %prep | |
3ed4e423 JB |
27 | %setup -q -c |
28 | ||
29 | sed -i -e 's/gcc -o clit.*/$(CC) -o clit $^ -ltommath/' %{name}%{xver}/Makefile | |
39e1b0c3 MM |
30 | |
31 | %build | |
fbb69ce2 | 32 | %{__make} -C lib \ |
3ed4e423 JB |
33 | CC="%{__cc}" \ |
34 | CFLAGS="%{rpmcflags} -Wall -Ides -Isha -Inewlzx -I." | |
fbb69ce2 | 35 | %{__make} -C %{name}%{xver} \ |
3ed4e423 JB |
36 | CC="%{__cc}" \ |
37 | CFLAGS="%{rpmcflags} -funsigned-char -Wall -I../lib -I../lib/des -I." | |
39e1b0c3 MM |
38 | |
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
39e1b0c3 | 41 | install -d $RPM_BUILD_ROOT%{_bindir} |
fbb69ce2 JB |
42 | |
43 | install %{name}%{xver}/%{name} $RPM_BUILD_ROOT%{_bindir} | |
39e1b0c3 MM |
44 | |
45 | %clean | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
39e1b0c3 MM |
48 | %files |
49 | %defattr(644,root,root,755) | |
3ed4e423 | 50 | %doc README |
39e1b0c3 | 51 | %attr(755,root,root) %{_bindir}/* |