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