- updated to 1.9
[packages/cabextract.git] / cabextract.spec
1 Summary:        A program to extract Microsoft Cabinet files
2 Summary(pl.UTF-8):      Program do rozpakowywania plików MS Cabinet
3 Name:           cabextract
4 Version:        1.9
5 Release:        1
6 License:        GPL v2+
7 Group:          Applications/Archiving
8 Source0:        http://www.cabextract.org.uk/%{name}-%{version}.tar.gz
9 # Source0-md5:  c38f4d1920dd4f597c707f16273ad480
10 Patch0:         %{name}-libmspack-headers-path.patch
11 URL:            http://www.cabextract.org.uk/
12 BuildRequires:  autoconf >= 2.57
13 BuildRequires:  automake
14 BuildRequires:  libmspack-devel >= 0.8alpha-5
15 Requires:       libmspack >= 0.8alpha
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 Cabinet (.CAB) files are a form of archive, which Microsoft use to
20 distribute their software, and things like Windows Font Packs. The
21 cabextract program simply unpacks such files.
22
23 %description -l pl.UTF-8
24 Pliki Cabinet (.CAB) są rodzajem archiwum, który Microsoft używa do
25 dystrybucji swojego oprogramowania i rzeczy typu Windows Font Pack.
26 cabextract może takie pliki rozpakować.
27
28 %prep
29 %setup -q
30 %patch0 -p1
31 # make sure we use system libmspack
32 %{__rm} -r mspack
33
34 %build
35 %{__aclocal}
36 %{__autoconf}
37 %{__autoheader}
38 %{__automake}
39 %configure \
40         CPPFLAGS="%{rpmcppflags} -I/usr/include/libmspack" \
41         --with-external-libmspack
42 %{__make}
43
44 %{__make} check
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48
49 %{__make} install \
50         DESTDIR=$RPM_BUILD_ROOT
51
52 install -D doc/ja/cabextract.1 $RPM_BUILD_ROOT%{_mandir}/ja/man1/cabextract.1
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc AUTHORS ChangeLog NEWS README TODO
60 %attr(755,root,root) %{_bindir}/cabextract
61 %{_mandir}/man1/cabextract.1*
62 %lang(ja) %{_mandir}/ja/man1/cabextract.1*
This page took 0.056647 seconds and 3 git commands to generate.