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

Revision 8846, 5.6 KB checked in by Takemikaduchi, 10 years ago (diff)

jack-audio-connection-kit, libfontenv, m17n-{db,lib}: new upstream release
others: rebuild

Line 
1%global nmu +nmu2
2
3Name:           libpaper
4Version:        1.1.24
5Release:        3%{?_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* Sun Jul 20 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.24-3
104- rebuild with VineSeed environment
105
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
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
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
Note: See TracBrowser for help on using the repository browser.