libpagemap-vl.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. Name: libpagemap
  2. Version: 0.0.1
  3. Release: 1%{?_dist_release}
  4. Summary: Pagemap interface library
  5. Summary(ja): Pagemap インターフェイスライブラリ
  6. Group: System Environment/Libraries
  7. License: GPLv3+
  8. URL: https://fedorahosted.org/libpagemap/
  9. Source0: https://fedorahosted.org/released/libpagemap/%{name}-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
  11. BuildRequires: python-devel
  12. %description
  13. Package contains library and headers for using kernel pagemap interface
  14. %description -l ja
  15. Linux カーネルの pagemap インターフェイスを利用するための
  16. python インターフェイスが収録されたパッケージです。
  17. %package devel
  18. Summary: Development files for %{name}
  19. Summary(ja): %{name} 用開発ライブラリとヘッダファイル
  20. Group: Development/Libraries
  21. Requires: %{name} = %{version}-%{release}
  22. %description devel
  23. Development files for %{name}.
  24. %description devel -l ja
  25. %{name} 用の開発ライブラリとヘッダファイル
  26. %prep
  27. %setup -q
  28. %build
  29. make CFLAGS="%{optflags} -std=c99" %{?_smp_mflags}
  30. %install
  31. rm -rf %{buildroot}
  32. make install DESTDIR=%{buildroot} LIB64=%{_lib}
  33. install -D -p -m 755 pagemapdata.py %{buildroot}/%{python_sitelib}/pagemapdata.py
  34. %clean
  35. rm -rf %{buildroot}
  36. %post -p /sbin/ldconfig
  37. %postun -p /sbin/ldconfig
  38. %files
  39. %defattr(-,root,root,-)
  40. %{_bindir}/pgmap
  41. %{_libdir}/libpagemap.so.*
  42. %{python_sitelib}/pagemapdata.py*
  43. %attr(0644,root,root) %{_mandir}/man1/pgmap.1*
  44. %doc contrib/
  45. %doc README
  46. %doc COPYING
  47. %files devel
  48. %defattr(-, root, root,-)
  49. %{_includedir}/libpagemap.h
  50. %{_libdir}/libpagemap.so
  51. %changelog
  52. * Tue Feb 28 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.0.1-1
  53. - initial build for Vine Linux
  54. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1-10
  55. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  56. * Tue Aug 09 2011 Petr Holasek <pholasek at redhat.com> - 0.0.1-9
  57. - kernel version detecting was fixed for kernels 3.x
  58. * Tue Apr 12 2011 Petr Holasek <pholasek at redhat.com> - 0.0.1-8
  59. - python-devel was added to BuildRequires because of wrong expansion
  60. of %{python_sitelib} macro
  61. * Wed Mar 30 2011 Petr Holasek <pholasek at redhat.com> - 0.0.1-7
  62. - some compilator warnings were fixed
  63. * Thu Mar 24 2011 Petr Holasek <pholasek at redhat.com> - 0.0.1-6
  64. - pagemapvisual and pgmap utilities are able to print outputs in CSV
  65. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1-5
  66. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  67. * Fri Jan 28 2011 Petr Holasek <pholasek at redhat.com> 0.0.1-4
  68. - added pagemapvisual script for plotting of memory metrics to contrib/
  69. - basic parts of library were rewritten to python as pagemapdata.py module
  70. - fixed memory leak in pgmap
  71. * Fri Nov 26 2010 Petr Holasek <pholasek at redhat.com> 0.0.1-3
  72. - fixed Makefile kernel's version detecting, it did problems in koji
  73. * Mon Nov 22 2010 Petr Holasek <pholasek at redhat.com> 0.0.1-2
  74. - development library libpagemap.so included in devel files
  75. - %%doc attribute dropped from man page file entry
  76. - wrong characters in man page corrected
  77. - fixed access permissions for libpagemap.h file
  78. - install argument -p added
  79. * Fri Nov 19 2010 Petr Holasek <pholasek at redhat.com> 0.0.1-1
  80. - Initial package