attr-vl.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: Utilities for managing filesystem extended attributes
  3. Name: attr
  4. Version: 2.4.47
  5. Release: 2%{?_dist_release}
  6. License: GPLv2+
  7. URL: http://oss.sgi.com/projects/xfs/
  8. Group: System Environment/Base
  9. Source: http://download.savannah.gnu.org/releases-noredirect/attr/attr-%{version}.src.tar.gz
  10. # silence compile-time warnings
  11. Patch1: 0001-attr-2.4.47-warnings.patch
  12. # install /etc/xattr.conf
  13. Patch2: 0002-attr-2.4.47-xattr-conf.patch
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. BuildRequires: gettext
  16. BuildRequires: libtool
  17. Requires: libattr = %{version}-%{release}
  18. Conflicts: xfsdump < 2.0.0
  19. %description
  20. A set of tools for manipulating extended attributes on filesystem
  21. objects, in particular getfattr(1) and setfattr(1).
  22. An attr(1) command is also provided which is largely compatible
  23. with the SGI IRIX tool of the same name.
  24. %package -n libattr
  25. Summary: Dynamic library for extended attribute support
  26. Group: System Environment/Libraries
  27. License: LGPLv2+
  28. %description -n libattr
  29. This package contains the libattr.so dynamic library which contains
  30. the extended attribute system calls and library functions.
  31. %package -n libattr-devel
  32. Summary: Extended attribute static libraries and headers
  33. Group: Development/Libraries
  34. License: LGPLv2+
  35. Requires: libattr = %{version}-%{release}
  36. %description -n libattr-devel
  37. This package contains the libraries and header files needed to
  38. develop programs which make use of extended attributes.
  39. For Linux programs, the documented system call API is the
  40. recommended interface, but an SGI IRIX compatibility interface
  41. is also provided.
  42. Currently only ext2, ext3 and XFS support extended attributes.
  43. The SGI IRIX compatibility API built above the Linux system calls is
  44. used by programs such as xfsdump(8), xfsrestore(8) and xfs_fsr(8).
  45. You should install libattr-devel if you want to develop programs
  46. which make use of extended attributes. If you install libattr-devel,
  47. you'll also want to install attr.
  48. # compat32
  49. %package -n compat32-libattr
  50. Summary: Dynamic library for extended attribute support
  51. Group: System Environment/Libraries
  52. License: LGPLv2+
  53. %description -n compat32-libattr
  54. This package contains the libattr.so dynamic library which contains
  55. the extended attribute system calls and library functions.
  56. %package -n compat32-libattr-devel
  57. Summary: Extended attribute static libraries and headers
  58. Group: Development/Libraries
  59. License: LGPLv2+
  60. Requires: libattr-devel = %{version}-%{release}
  61. Requires: compat32-libattr = %{version}-%{release}
  62. %description -n compat32-libattr-devel
  63. This package contains the libraries and header files needed to
  64. develop programs which make use of extended attributes.
  65. For Linux programs, the documented system call API is the
  66. recommended interface, but an SGI IRIX compatibility interface
  67. is also provided.
  68. Currently only ext2, ext3 and XFS support extended attributes.
  69. The SGI IRIX compatibility API built above the Linux system calls is
  70. used by programs such as xfsdump(8), xfsrestore(8) and xfs_fsr(8).
  71. You should install libattr-devel if you want to develop programs
  72. which make use of extended attributes. If you install libattr-devel,
  73. you'll also want to install attr.
  74. %prep
  75. %setup -q
  76. %patch1 -p1
  77. %patch2 -p1
  78. %build
  79. # attr abuses libexecdir
  80. %configure --libdir=/%{_lib} --libexecdir=%{_libdir}
  81. make %{?_smp_mflags} LIBTOOL="libtool --tag=CC"
  82. %install
  83. rm -rf %{buildroot}
  84. make install DESTDIR=%{buildroot}
  85. make install-dev DESTDIR=%{buildroot}
  86. make install-lib DESTDIR=%{buildroot}
  87. # get rid of libattr.a and libattr.la
  88. rm -f %{buildroot}/%{_lib}/libattr.a
  89. rm -f %{buildroot}/%{_lib}/libattr.la
  90. rm -f %{buildroot}%{_libdir}/libattr.a
  91. rm -f %{buildroot}%{_libdir}/libattr.la
  92. # fix links to shared libs and permissions
  93. rm -f %{buildroot}%{_libdir}/libattr.so
  94. mkdir -p %{buildroot}%{_libdir}
  95. ln -sf ../../%{_lib}/libattr.so %{buildroot}%{_libdir}/libattr.so
  96. chmod 0755 %{buildroot}/%{_lib}/libattr.so.*.*.*
  97. # remove documents without version
  98. rm -rf %{buildroot}%{_datadir}/doc/attr
  99. %find_lang %{name}
  100. %check
  101. if ./setfattr/setfattr -n user.name -v value .; then
  102. make tests || exit $?
  103. # FIXME: root-tests are not ready for the SELinux
  104. #if test 0 = `id -u`; then
  105. # make root-tests || exit $?
  106. #fi
  107. else
  108. echo '*** xattrs are probably not supported by the file system,' \
  109. 'the test-suite will NOT run ***'
  110. fi
  111. %clean
  112. rm -rf %{buildroot}
  113. %post -n libattr
  114. /sbin/ldconfig
  115. %postun -n libattr
  116. /sbin/ldconfig
  117. %post -n compat32-libattr
  118. /sbin/ldconfig
  119. %postun -n compat32-libattr
  120. /sbin/ldconfig
  121. %files -f %{name}.lang
  122. %defattr(-,root,root)
  123. %doc doc
  124. %{_bindir}/attr
  125. %{_bindir}/getfattr
  126. %{_bindir}/setfattr
  127. %{_mandir}/man1/attr.1*
  128. %{_mandir}/man1/getfattr.1*
  129. %{_mandir}/man1/setfattr.1*
  130. #%{_mandir}/man5/attr.5*
  131. %exclude %{_mandir}/man5/attr.5*
  132. %files -n libattr-devel
  133. %defattr(-,root,root)
  134. /%{_lib}/libattr.so
  135. %{_includedir}/attr
  136. %{_libdir}/libattr.*
  137. %{_mandir}/man2/*attr.2*
  138. %{_mandir}/man3/attr_*.3.*
  139. %files -n libattr
  140. /%{_lib}/libattr.so.*
  141. %config(noreplace) %{_sysconfdir}/xattr.conf
  142. # compat32
  143. %if %{build_compat32}
  144. %files -n compat32-libattr-devel
  145. %defattr(-,root,root)
  146. /%{_lib}/libattr.so
  147. %{_libdir}/libattr.*
  148. %files -n compat32-libattr
  149. /%{_lib}/libattr.so.*
  150. %config(noreplace) %{_sysconfdir}/xattr.conf
  151. %endif
  152. %changelog
  153. * Fri Sep 11 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.47-2
  154. - removed a manpage (attr.5).
  155. * Fri Jul 4 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.4.47-1
  156. - new upstream release.
  157. - replaced patches to the newest rawhide's.
  158. * Sat Apr 9 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.44-1
  159. - new upstream release
  160. - remove static library from devel package
  161. - added Patch2-9
  162. * Tue Mar 29 2011 Kamil Dudka <kdudka@redhat.com> 2.2.44-8
  163. - fix typos in attr(1) man page (#669095)
  164. * Wed Dec 22 2010 Kamil Dudka <kdudka@redhat.com> 2.2.44-6
  165. - setfattr.1: document supported encodings of values (#587516)
  166. - getfattr: encode NULs properly with --encoding=text (#650539)
  167. - getfattr: return non-zero exit code on failure (#660619)
  168. - walk_tree: do not follow symlink to directory with -h (#660613)
  169. * Tue May 25 2010 Kamil Dudka <kdudka@redhat.com> 2.2.44-5
  170. - let attr depend on the same version of libattr (#595689)
  171. - silence compile-time warnings
  172. * Wed Feb 18 2009 Zdenek Prikryl <zprikryl@redhat.com> 2.4.43-2
  173. - Fixed memory leaks (#485473)
  174. * Wed Jul 15 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.4.43-2
  175. - added compat32 package for x86_64 arch support
  176. * Wed Jul 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.43-1
  177. - new upstream release
  178. * Mon Jun 30 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.4.41-2
  179. - initial build for Vine Linux
  180. * Wed Feb 13 2008 Zdenek Prikryl <zprikryl@redhat.com> 2.4.41-1
  181. - New version 2.4.41
  182. - Removed useless attr-2.0.8-docperms.patch
  183. * Wed Oct 31 2007 Zdenek Prikryl <zprikryl@redhat.com> 2.4.39-1
  184. - New version 2.4.39
  185. - Resolves #284121
  186. * Tue Oct 30 2007 Zdenek Prikryl <zprikryl@redhat.com> 2.4.38-2
  187. - Removed explicit Requires(post + postun)
  188. - Resolves #225290
  189. * Tue Jul 31 2007 Zdenek Prikryl <zprikryl@redhat.com> 2.4.38-1
  190. - New version 2.4.38
  191. - Resolves #245415
  192. * Fri Feb 23 2007 Karsten Hopp <karsten@redhat.com> 2.4.32-2
  193. - add disttag
  194. - remove trailing dot from summary
  195. - fix buildroot
  196. - -devel package requires same libattr version
  197. - change prereq to Requires(post)
  198. - escape macro in changelog
  199. - replace absolute link with relative link (libattr.so)
  200. - use %%doc macro
  201. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.4.32-1.1
  202. - rebuild
  203. * Wed Jul 5 2006 Thomas Woerner <twoerne@redhat.com> 2.4.32-1
  204. - new version 2.4.32
  205. - fixes segmentation fault in attr, which affects #189106
  206. * Wed Jun 7 2006 Jeremy Katz <katzj@redhat.com> - 2.4.28-2
  207. - rebuild for -devel deps
  208. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.4.28-1.2
  209. - bump again for double-long bug on ppc(64)
  210. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.4.28-1.1
  211. - rebuilt for new gcc4.1 snapshot and glibc changes
  212. * Fri Feb 3 2006 Thomas Woerner <twoerner@redhat.com> 2.4.28-1
  213. - new version 2.4.28
  214. * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
  215. - rebuilt
  216. * Tue Dec 6 2005 Thomas Woerner <twoerner@redhat.com> 2.4.24-2
  217. - spec file cleanup
  218. - mark po files as lang specific
  219. * Sun Nov 06 2005 Florian La Roche <laroche@redhat.com>
  220. - 2.4.24
  221. * Wed Sep 28 2005 Than Ngo <than@redhat.com> 2.4.23-1
  222. - update to 2.4.23
  223. * Wed Sep 28 2005 Than Ngo <than@redhat.com> 2.4.16-6
  224. - get rid of *.la files
  225. - remove duplicate doc files
  226. * Wed Feb 9 2005 Stephen C. Tweedie <sct@redhat.com> 2.4.16-4
  227. - Rebuild
  228. * Fri Sep 10 2004 Stephen C. Tweedie <sct@redhat.com> 2.4.16-3
  229. - Build requires libtool >= 1.5
  230. * Thu Aug 19 2004 Phil Knirsch <pknirsch@redhat.com> 2.4.16-2
  231. - Make libattr.so.* executable.
  232. * Thu Aug 19 2004 Phil Knirsch <pknirsch@redhat.com> 2.4.16-1
  233. - Update to latest upstream version.
  234. * Sun Aug 8 2004 Alan Cox <alan@redhat.com> 2.4.1-6
  235. - Fix bug #125304 (Steve Grubb: build requires gettext)
  236. * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
  237. - rebuilt
  238. * Wed Mar 31 2004 Stephen C. Tweedie <sct@redhat.com> 2.4.1-4
  239. - Add missing %%defattr
  240. * Tue Mar 30 2004 Stephen C. Tweedie <sct@redhat.com> 2.4.1-3
  241. - Add /usr/include/attr to files manifest
  242. - Fix location of doc files, add main doc dir to files manifest
  243. * Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
  244. - rebuilt
  245. * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
  246. - rebuilt
  247. * Tue Aug 5 2003 Elliot Lee <sopwith@redhat.com> 2.4.1-2
  248. - Fix libtool
  249. * Tue Jun 3 2003 Stephen C. Tweedie <sct@redhat.com> 2.4.1-1
  250. - update to attr-2.4.1
  251. * Tue Jan 28 2003 Michael K. Johnson <johnsonm@redhat.com> 2.2.0-1
  252. - update/rebuild
  253. * Sat Jan 4 2003 Jeff Johnson <jbj@redhat.com> 2.0.8-6
  254. - set execute bits on library so that requires are generated.
  255. * Thu Nov 21 2002 Elliot Lee <sopwith@redhat.com> 2.0.8-5
  256. - Redo multilib patch to work everywhere
  257. * Wed Sep 11 2002 Than Ngo <than@redhat.com> 2.0.8-4
  258. - Added fix to install libs in correct directory on 64bit machine
  259. * Thu Aug 08 2002 Michael K. Johnson <johnsonm@redhat.com> 2.0.8-3
  260. - Made the package only own the one directory that is unique to it:
  261. /usr/include/attr
  262. * Wed Jun 26 2002 Michael K. Johnson <johnsonm@redhat.com> 2.0.8-2
  263. - get perl out of base with attr-2.0.8-docperms.patch
  264. * Mon Jun 24 2002 Michael K. Johnson <johnsonm@redhat.com> 2.0.8-1
  265. - Initial Red Hat package
  266. Made as few changes as possible relative to upstream packaging to
  267. make it easier to maintain long-term. This means that some of
  268. the techniques used here are definitely not standard Red Hat
  269. techniques. If you are looking for an example package to fit
  270. into Red Hat Linux transparently, this would not be the one to
  271. pick.
  272. - attr-devel -> libattr-devel