]> git.pld-linux.org Git - packages/defrag.git/blob - defrag.spec
- tabs in preamble
[packages/defrag.git] / defrag.spec
1 #
2 # Conditional build:
3 %bcond_without  static          # don't build static
4 #
5 Summary:        Linux filesystem defragmenter
6 Summary(pl.UTF-8):      Narzędzia do defragmentacji linuksowych systemów plików
7 Name:           defrag
8 Version:        0.73
9 Release:        2
10 License:        GPL
11 Group:          Applications/System
12 Source0:        ftp://sunsite.unc.edu/pub/Linux/system/filesystems/%{name}-%{version}.tar.gz
13 # Source0-md5:  d007c46b3cbd7de495deb45a50836d18
14 Patch0:         %{name}-0.73-glibc.patch
15 Patch1:         %{name}-makefile.patch
16 Patch2:         %{name}-kernel-2.4.patch
17 Patch3:         %{name}-shared.patch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 Linux filesystem defragmenters. The programs in this package will
22 reorganise data on minix, ext, ext2 and xia file system partitions in
23 order to improve the file system's performance.
24
25 %description -l pl.UTF-8
26 Programy do defragmentacji systemu plików Linuksa. Zawarte w tym
27 pakiecie programy mają za zadanie reorganizację danych na partycjach
28 minix, ext, ext2 i xia tak, by zwiększyć efektywność systemu.
29
30 %prep
31 %setup -q
32 %patch0 -p1
33 %patch1 -p1
34 %patch2 -p1
35 %patch3 -p1
36
37 %build
38 %{?with_static:%{__make} OPTI="%{rpmcflags}" LDFLAGS="%{rpmldflags}" CC="%{__cc}"}
39 %{!?with_static:%{__make} OPTI="%{rpmcflags}" LDFLAGS="%{rpmldflags}" CC="%{__cc}" e2defrag defrag e2dump frag}
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT{/sbin,%{_mandir}/man8}
44
45 %{__make} %{?with_static:install}%{!?with_static:install_shared} \
46         DESTDIR=$RPM_BUILD_ROOT
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %files
52 %defattr(644,root,root,755)
53 %doc BUGS ChangeLog NEWS README
54 %attr(750,root,root) /sbin/e2defrag*
55 %attr(750,root,root) /sbin/defrag
56 %attr(750,root,root) /sbin/e2dump
57 %attr(750,root,root) /sbin/frag
58 %{_mandir}/man8/*
This page took 0.047182 seconds and 3 git commands to generate.