source: projects/specs/branches/6/lib/libp/libpaper/libpaper-vl.spec @ 2456

Revision 2456, 5.4 KB checked in by munepi, 13 years ago (diff)

updated libpaper-vl.spec: support JIS B series paper sizes; updated texlive-vl.spec: more supported Vine Linux 5

Line 
1Name:           libpaper
2Version:        1.1.24
3Release:        1%{?_dist_release}
4Summary:        Library and tools for handling papersize
5Summary(ja):    用紙サイズを扱うライブラリとツール
6Group:          System Environment/Libraries
7License:        GPLv2
8URL:            http://packages.qa.debian.org/libp/libpaper.html
9Source0:        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
12Patch0:         libpaper-1.1.20-automake_1.10.patch
13# Upstream bug:
14# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=475683
15Patch1:         libpaper-1.1.23-debianbug475683.patch
16# Filed upstream as:
17# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=481213
18Patch2:         libpaper-useglibcfallback.patch
19# supported paper sizes of JIS B series
20Patch10:        libpaper-1.1.24-paperspecs-jis-b-series.patch
21
22BuildRequires:  libtool, gettext, gawk
23
24BuildRoot:      %{_tmppath}/%{name}-%{version}-root
25
26Packager:       kazutaka
27
28
29%description
30The paper library and accompanying files are intended to provide a
31simple way for applications to take actions based on a system- or
32user-specified paper size. This release is quite minimal, its purpose
33being to provide really basic functions (obtaining the system paper name
34and getting the height and width of a given kind of paper) that
35applications can immediately integrate.
36
37%package devel
38Summary:        Headers/Libraries for developing programs that use libpaper
39Summary(ja):    libpaper を使ったプログラムの開発に必要なヘッダとライブラリ
40Group:          Development/Libraries
41Requires:       %{name} = %{version}-%{release}
42
43%description devel
44This package contains headers and libraries that programmers will need
45to develop applications which use libpaper.
46
47%prep
48%setup -q -n %{name}-%{version}
49%patch0 -p1 -b .automake110
50%patch1 -p1 -b .dlfix
51%patch2 -p1 -b .useglibcfallback
52%patch10 -p1 -b .paperspecs
53libtoolize
54
55%build
56touch AUTHORS NEWS
57aclocal
58autoconf
59automake -a
60%configure --disable-static
61# Disable rpath
62sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
63sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
64make %{?_smp_mflags}
65
66%install
67rm -rf $RPM_BUILD_ROOT
68make DESTDIR=$RPM_BUILD_ROOT install
69rm $RPM_BUILD_ROOT%{_libdir}/*.la
70mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
71echo '# Simply write the paper name. See papersize(5) for possible values' > $RPM_BUILD_ROOT%{_sysconfdir}/papersize
72mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/libpaper.d
73for 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;
76done
77%find_lang %{name}
78
79%clean
80rm -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
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
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
Note: See TracBrowser for help on using the repository browser.