source: projects/specs/trunk/lib/libp/libpaper/libpaper-vl.spec @ 7953

Revision 7953, 5.5 KB checked in by munepi, 10 years ago (diff)

update to 1.1.24+nmu2

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