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