libpaper-vl.spec 5.4 KB

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