]> git.pld-linux.org Git - packages/clit.git/blob - clit.spec
- added format patch (fixes build with -Werror=format-security)
[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:        3
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 Patch0:         %{name}-format.patch
12 URL:            http://www.kyz.uklinux.net/convlit.php
13 BuildRequires:  libtommath-devel
14 BuildRequires:  sed >= 4.0
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 clit allows extracting "DRM1" format .LIT files into their original
19 XML/HTML. IANAL but using this program may violate DMCA if you're in
20 USA.
21
22 %description -l pl.UTF-8
23 clit pozwala na rozpakowywanie plików w formacie .LIT/DRM1. Używanie
24 tego programu na terenie Stanów Zjednoczonych Ameryki Północnej może
25 być pogwałceniem DMCA.
26
27 %prep
28 %setup -q -c
29 %patch0 -p1
30
31 sed -i -e 's/gcc -o clit.*/$(CC) -o clit $^ -ltommath/' %{name}%{xver}/Makefile
32
33 %build
34 %{__make} -C lib \
35         CC="%{__cc}" \
36         CFLAGS="%{rpmcflags} -Wall -Ides -Isha -Inewlzx -I."
37 %{__make} -C %{name}%{xver} \
38         CC="%{__cc}" \
39         CFLAGS="%{rpmcflags} -funsigned-char -Wall -I../lib -I../lib/des -I."
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT%{_bindir}
44
45 install %{name}%{xver}/%{name} $RPM_BUILD_ROOT%{_bindir}
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %files
51 %defattr(644,root,root,755)
52 %doc README
53 %attr(755,root,root) %{_bindir}/clit
This page took 0.048536 seconds and 4 git commands to generate.