Release: captive1 -> captive2cvs
[ntfsprogs.git] / ntfsprogs.spec.in
1 %define name    @PACKAGE@
2 %define ver     @VERSION_BASE@
3 %define rel     1@VERSION_EXT@
4 %define prefix  /usr
5 %define bindir  /usr/bin
6 %define sbindir /usr/sbin
7 %define mandir  /usr/share/man
8
9
10 Summary         : NTFS filesystem libraries and utilities
11 Name            : %{name}
12 Version         : %{ver}
13 Release         : %{rel}
14 Source          : http://prdownloads.sf.net/linux-ntfs/ntfsprogs-%{ver}.tar.bz2
15 Patch1          : @PACKAGE@-@VERSION@-captive.patch
16 Buildroot       : %{_tmppath}/%{name}-root
17 Packager        : Jan Kratochvil <project-captive@jankratochvil.net>
18 License         : GPL
19 Group           : System Environment/Base
20 BuildRequires   : autoconf
21 BuildRequires   : automake >= 1.6
22 BuildRequires   : libtool
23 %description
24 The Linux-NTFS project (http://linux-ntfs.sf.net/) aims to bring full support
25 for the NTFS filesystem to the Linux operating system. Linux-NTFS currently
26 consists of a static library and utilities. This package contains the following
27 utilities:
28         NtfsFix - Attempt to fix an NTFS partition that has been damaged by the
29 Linux NTFS driver. It should be run every time after you have used the Linux
30 NTFS driver to write to an NTFS partition to prevent massive data corruption
31 from happening when Windows mounts the partition.
32 IMPORTANT: Run this only *after* unmounting the partition in Linux but *before*
33 rebooting into Windows NT/2000! See man 8 ntfsfix for details.
34         mkntfs - Format a partition with the NTFS filesystem. See man 8 mkntfs
35 for command line options.
36         ntfslabel - Display/change the label of an NTFS partition. See man 8
37 ntfslabel for details.
38         ntfsundelete - Recover deleted files from an NTFS volume.  See man 8
39 ntfsundelete for details.
40         ntfsresize - Resize an NTFS volume. See man 8 ntfsresize for details.
41
42 %package devel
43 Summary         : files required to compile software that uses libntfs
44 Group           : Development/System
45 Requires        : ntfsprogs = %{ver}-%{rel}
46 %description devel
47 This package includes the header files and libraries needed to link software
48 with libntfs.
49
50
51 %prep
52 %setup
53 chmod -R u+w .
54 %patch1 -p1
55 %{__aclocal}
56 %{__libtoolize} --force
57 %{__autoheader}
58 %{__automake} --add-missing
59 %{__autoconf}
60
61 %build
62 if [ -n "$LINGUAS" ]; then unset LINGUAS; fi
63 %configure
64 make
65
66
67 %install
68 rm -rf "$RPM_BUILD_ROOT"
69 make DESTDIR="$RPM_BUILD_ROOT" install-strip
70
71
72 %clean
73 rm -rf "$RPM_BUILD_ROOT"
74
75
76 %files
77 %defattr(-,root,root)
78 %doc AUTHORS COPYING CREDITS ChangeLog INSTALL NEWS README TODO.include TODO.libntfs TODO.ntfsprogs doc/CodingStyle doc/attribute_definitions doc/attributes.txt doc/compression.txt doc/tunable_settings doc/template.c doc/template.h doc/system_files.txt doc/system_security_descriptors.txt
79 %{bindir}/*
80 %{sbindir}/*
81 %{mandir}/*/*
82 %{prefix}/lib/*.so*
83
84
85 %files devel
86 %defattr(-,root,root)
87 %{prefix}/include/*
88 %{prefix}/lib/*.a*
89 %{prefix}/lib/*.la*
90
91 %changelog
92 * Sat Jan 18 2003 Anton Altaparmakov <aia21@cantab.net>
93 - renamed to ntfsprogs.spec.in
94 - change source tar ball name to ntfsprogs
95
96 * Tue Dec 10 2002 Anton Altaparmakov <aia21@cantab.net>
97 - added ntfsresize
98
99 * Wed Jul 18 2002 Richard Russon <ntfs@flatcap.org>
100 - added ntfsundelete
101 - change TODO names
102
103 * Wed Jul 3 2002 Anton Altaparmakov <aia21@cantab.net>
104 - update my email address
105
106 * Mon Jun 3 2002 Anton Altaparmakov <aia21@cam.ac.uk>
107 - update %doc with new TODO files
108
109 * Tue Apr 12 2002 Anton Altaparmakov <aia21@cam.ac.uk>
110 - update %description text for ntfslabel
111
112 * Tue Mar 12 2002 Anton Altaparmakov <aia21@cam.ac.uk>
113 - update %description text
114
115 * Sat Jan 26 2002 Anton Altaparmakov <aia21@cam.ac.uk>
116 - update %description text
117 - make dependencies pick the right version automatically
118
119 * Thu Jan 10 2002 Anton Altaparmakov <aia21@cam.ac.uk>
120 - add dependency on linux-ntfs to linux-ntfs-devel
121 - update %description text
122
123 * Fri Nov 09 2001 Anton Altaparmakov <aia21@cam.ac.uk>
124 - update %description text
125 - (re)enable installation of shared libraries
126
127 * Wed Aug 22 2001 Anton Altaparmakov <aia21@cam.ac.uk>
128 - update %description text
129
130 * Thu Aug 2 2001 Anton Altaparmakov <aia21@cam.ac.uk>
131 - update %description text
132
133 * Wed Jul 25 2001 Anton Altaparmakov <aia21@cam.ac.uk>
134 - include sbin install path (mkntfs now is in sbin)
135
136 * Tue Jul 24 2001 Anton Altaparmakov <aia21@cam.ac.uk>
137 - update %description text
138
139 * Mon Jun 11 2001 Anton Altaparmakov <aia21@cam.ac.uk>
140 - remove duplicate %configure options
141 - remove shared library installation as shared libraries are disabled by
142 default
143
144 * Sun Jun 10 2001 Anton Altaparmakov <aia21@cam.ac.uk>
145 - add man pages stuff
146 - update info text
147 - add new doc/ stuff
148 - modify installation to do install-strip instead of install followed by manual
149 stripping
150 - update download URL to be the fast sourceforge http download server
151
152 * Fri Feb 2 2001 Anton Altaparmakov <aia21@cam.ac.uk>
153 - started changelog
154