libpaper-vl.spec 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. %global nmu +nmu2
  2. Name: libpaper
  3. Version: 1.1.24
  4. Release: 3%{?_dist_release}
  5. Summary: Library and tools for handling papersize
  6. Summary(ja): 用紙サイズを扱うライブラリとツール
  7. Group: System Environment/Libraries
  8. License: GPLv2
  9. URL: http://packages.qa.debian.org/libp/libpaper.html
  10. Source0: http://ftp.debian.org/debian/pool/main/libp/libpaper/%{name}_%{version}%{nmu}.tar.gz
  11. # Filed upstream as:
  12. # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=496126
  13. Patch0: libpaper-1.1.20-automake_1.10.patch
  14. # Filed upstream as:
  15. # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=481213
  16. Patch2: libpaper-1.1.24+nmu2-useglibcfallback.patch
  17. # supported paper sizes of JIS B series
  18. Patch10: libpaper-1.1.24+nmu2-jis-b-series.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}%{nmu}
  39. %patch0 -p1 -b .automake110
  40. %patch2 -p1 -b .useglibcfallback
  41. %patch10 -p1 -b .paperspecs
  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. * Sun Jul 20 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.24-3
  87. - rebuild with VineSeed environment
  88. * Fri Nov 1 2013 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.24-2
  89. - update to 1.1.24+nmu2
  90. - applied libpaper-1.1.24+nmu2-jis-b-series.patch:
  91. - synced to libs/paper in TeX Live 2014/dev (r31986)
  92. * Sat Jan 08 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.24-1
  93. - new upstream release
  94. * Sat Jan 08 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.1.23-2
  95. - applied libpaper-1.1.24-paperspecs-jis-b-series.patch
  96. * Thu May 21 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.1.23-1
  97. - initial build for Vine Linux based of fedora development
  98. - add japanese summary
  99. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.23-5
  100. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  101. * Mon Feb 16 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1.23-4
  102. - run libtoolize to fix build with newer libtool
  103. - disable rpath
  104. * Fri Aug 22 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1.23-3
  105. - update to nmu1
  106. - apply patch to fix imprecise definition of DL format
  107. - apply patch so that when no config is present, libpaper will fallback through
  108. LC_PAPER before giving up and using Letter
  109. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.1.23-2
  110. - Autorebuild for GCC 4.3
  111. * Tue Feb 19 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.23-1
  112. - 1.1.23
  113. * Fri Aug 24 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.22-1.1
  114. - missing BR: gawk
  115. * Thu Aug 23 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.22-1
  116. - bump, no real changes of note, rebuild for ppc32
  117. - license fix, v2 only
  118. * Mon Jul 09 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.21-1.1
  119. - BR: libtool
  120. * Mon Jul 09 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.21-1
  121. - bump to 1.1.21
  122. - fix automake bug (bz 247458)
  123. * Thu Oct 05 2006 Christian Iseli <Christian.Iseli@licr.org> 1.1.20-5
  124. - rebuilt for unwind info generation, broken in gcc-4.1.1-21
  125. * Sat Sep 23 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.20-4
  126. - remove aclocal call
  127. * Sat Sep 23 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.20-3
  128. - fix FC-4 with aclocal call
  129. - move man3 pages to -devel
  130. - don't set default, just put comment in conf file
  131. - own /etc/libpaper.d
  132. - use debian/NEWS
  133. - include the meager translations
  134. - use --disable-static
  135. * Sat Sep 23 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.20-2
  136. - nuke static lib
  137. - own /etc/papersize
  138. - fix mixed spaces/tabs rpmlint warning
  139. * Sat Sep 23 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.20-1
  140. - initial package for Fedora Extras