]> git.pld-linux.org Git - packages/clit.git/blob - clit.spec
- converted to UTF-8
[packages/clit.git] / clit.spec
1 %define xver %(echo %{version} | tr -d .)
2 Summary:        Open Convert-.LIT tool
3 Summary(pl.UTF-8):   Otwarte narzędzie do rozpakowywania plików .LIT
4 Name:           clit
5 Version:        1.8
6 Release:        1
7 License:        GPL v2+
8 Group:          Applications/Archiving
9 Source0:        http://www.kyz.uklinux.net/downloads/open_c-lit-%{version}.tar.gz
10 # Source0-md5:  d8c599cf0e3cd8bab08e455e51ef852d
11 URL:            http://www.kyz.uklinux.net/convlit.php
12 BuildRequires:  libtommath-devel
13 BuildRequires:  sed >= 4.0
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
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.
25
26 %prep
27 %setup -q -c
28
29 sed -i -e 's/gcc -o clit.*/$(CC) -o clit $^ -ltommath/' %{name}%{xver}/Makefile
30
31 %build
32 %{__make} -C lib \
33         CC="%{__cc}" \
34         CFLAGS="%{rpmcflags} -Wall -Ides -Isha -Inewlzx -I."
35 %{__make} -C %{name}%{xver} \
36         CC="%{__cc}" \
37         CFLAGS="%{rpmcflags} -funsigned-char -Wall -I../lib -I../lib/des -I."
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT%{_bindir}
42
43 install %{name}%{xver}/%{name} $RPM_BUILD_ROOT%{_bindir}
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 %files
49 %defattr(644,root,root,755)
50 %doc README
51 %attr(755,root,root) %{_bindir}/*
This page took 0.066175 seconds and 4 git commands to generate.