libpaper-vl.spec 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. Name: libpaper
  2. Version: 1.1.23
  3. Release: 1%{?_dist_release}
  4. Summary: Library and tools for handling papersize
  5. Summary(ja): 用紙サイズを扱うライブラリとツール
  6. Group: System Environment/Libraries
  7. License: GPLv2
  8. URL: http://packages.qa.debian.org/libp/libpaper.html
  9. Source0: http://ftp.debian.org/debian/pool/main/libp/libpaper/%{name}_%{version}+nmu1.tar.gz
  10. # Filed upstream as:
  11. # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=496126
  12. Patch0: libpaper-1.1.20-automake_1.10.patch
  13. # Upstream bug:
  14. # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=475683
  15. Patch1: libpaper-1.1.23-debianbug475683.patch
  16. # Filed upstream as:
  17. # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=481213
  18. Patch2: libpaper-useglibcfallback.patch
  19. BuildRequires: libtool, gettext, gawk
  20. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  21. Packager: kazutaka
  22. %description
  23. The paper library and accompanying files are intended to provide a
  24. simple way for applications to take actions based on a system- or
  25. user-specified paper size. This release is quite minimal, its purpose
  26. being to provide really basic functions (obtaining the system paper name
  27. and getting the height and width of a given kind of paper) that
  28. applications can immediately integrate.
  29. %package devel
  30. Summary: Headers/Libraries for developing programs that use libpaper
  31. Summary(ja): libpaper を使ったプログラムの開発に必要なヘッダとライブラリ
  32. Group: Development/Libraries
  33. Requires: %{name} = %{version}-%{release}
  34. %description devel
  35. This package contains headers and libraries that programmers will need
  36. to develop applications which use libpaper.
  37. %prep
  38. %setup -q -n %{name}-%{version}+nmu1
  39. %patch0 -p1 -b .automake110
  40. %patch1 -p1 -b .dlfix
  41. %patch2 -p1 -b .useglibcfallback
  42. libtoolize
  43. %build
  44. touch AUTHORS NEWS
  45. aclocal
  46. autoconf
  47. automake -a
  48. %configure --disable-static
  49. # Disable rpath
  50. sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  51. sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  52. make %{?_smp_mflags}
  53. %install
  54. rm -rf $RPM_BUILD_ROOT
  55. make DESTDIR=$RPM_BUILD_ROOT install
  56. rm $RPM_BUILD_ROOT%{_libdir}/*.la
  57. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
  58. echo '# Simply write the paper name. See papersize(5) for possible values' > $RPM_BUILD_ROOT%{_sysconfdir}/papersize
  59. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/libpaper.d
  60. for i in cs da de es fr gl hu it ja nl pt_BR sv tr uk vi; do
  61. mkdir -p $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES/;
  62. msgfmt debian/po/$i.po -o $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES/%{name}.mo;
  63. done
  64. %find_lang %{name}
  65. %clean
  66. rm -rf $RPM_BUILD_ROOT
  67. %post -p /sbin/ldconfig
  68. %postun -p /sbin/ldconfig
  69. %files -f %{name}.lang
  70. %defattr(-, root, root, -)
  71. %doc COPYING ChangeLog README
  72. %config(noreplace) %{_sysconfdir}/papersize
  73. %dir %{_sysconfdir}/libpaper.d
  74. %{_bindir}/paperconf
  75. %{_libdir}/libpaper.so.*
  76. %{_sbindir}/paperconfig
  77. %{_mandir}/man1/*
  78. %{_mandir}/man5/*
  79. %{_mandir}/man8/*
  80. %files devel
  81. %defattr(-, root, root, -)
  82. %{_includedir}/paper.h
  83. %{_libdir}/libpaper.so
  84. %{_mandir}/man3/*
  85. %changelog
  86. * Thu May 21 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.1.23-1
  87. - initial build for Vine Linux based of fedora development
  88. - add japanese summary
  89. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.23-5
  90. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  91. * Mon Feb 16 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1.23-4
  92. - run libtoolize to fix build with newer libtool
  93. - disable rpath
  94. * Fri Aug 22 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1.23-3
  95. - update to nmu1
  96. - apply patch to fix imprecise definition of DL format
  97. - apply patch so that when no config is present, libpaper will fallback through
  98. LC_PAPER before giving up and using Letter
  99. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.1.23-2
  100. - Autorebuild for GCC 4.3
  101. * Tue Feb 19 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.23-1
  102. - 1.1.23
  103. * Fri Aug 24 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.22-1.1
  104. - missing BR: gawk
  105. * Thu Aug 23 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.22-1
  106. - bump, no real changes of note, rebuild for ppc32
  107. - license fix, v2 only
  108. * Mon Jul 09 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.21-1.1
  109. - BR: libtool
  110. * Mon Jul 09 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.21-1
  111. - bump to 1.1.21
  112. - fix automake bug (bz 247458)
  113. * Thu Oct 05 2006 Christian Iseli <Christian.Iseli@licr.org> 1.1.20-5
  114. - rebuilt for unwind info generation, broken in gcc-4.1.1-21
  115. * Sat Sep 23 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.20-4
  116. - remove aclocal call
  117. * Sat Sep 23 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.20-3
  118. - fix FC-4 with aclocal call
  119. - move man3 pages to -devel
  120. - don't set default, just put comment in conf file
  121. - own /etc/libpaper.d
  122. - use debian/NEWS
  123. - include the meager translations
  124. - use --disable-static
  125. * Sat Sep 23 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.20-2
  126. - nuke static lib
  127. - own /etc/papersize
  128. - fix mixed spaces/tabs rpmlint warning
  129. * Sat Sep 23 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.20-1
  130. - initial package for Fedora Extras