source: spec/trunk/SPECS/cpio.spec@ 16

Last change on this file since 16 was 11, checked in by Yuri Dario, 15 years ago

spec: initial import for base .spec files.

  • Property svn:eol-style set to native
File size: 3.3 KB
Line 
1
2Summary: A GNU archiving program
3Name: cpio
4Version: 2.11
5Release: 1
6License: GPLv3+
7Group: Applications/Archiving
8URL: http://www.gnu.org/software/cpio/
9Source: ftp://ftp.gnu.org/gnu/cpio/cpio-%{version}.tar.gz
10Source1: cpio.1
11
12Patch1: cpio-2.11-base.diff
13
14#Requires(post): /sbin/install-info
15#Requires(preun): /sbin/install-info
16#BuildRequires: texinfo, autoconf, gettext, rmt
17Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
18
19%description
20GNU cpio copies files into or out of a cpio or tar archive. Archives
21are files which contain a collection of other files plus information
22about them, such as their file name, owner, timestamps, and access
23permissions. The archive can be another file on the disk, a magnetic
24tape, or a pipe. GNU cpio supports the following archive formats: binary,
25old ASCII, new ASCII, crc, HPUX binary, HPUX old ASCII, old tar and POSIX.1
26tar. By default, cpio creates binary format archives, so that they are
27compatible with older cpio programs. When it is extracting files from
28archives, cpio automatically recognizes which kind of archive it is reading
29and can read archives created on machines with a different byte-order.
30
31Install cpio if you need a program to manage file archives.
32
33%prep
34%setup -q
35%patch1 -p1 -b .base
36#autoheader
37
38%build
39
40CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -pedantic -fno-strict-aliasing -Wall" \
41%configure --with-rmt="%{_sysconfdir}/rmt" \
42 "--cache-file=%{_topdir}/cache/%{name}.cache"
43
44make %{?_smp_mflags}
45
46%install
47rm -rf ${RPM_BUILD_ROOT}
48
49make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install
50
51rm -f $RPM_BUILD_ROOT%{_libexecdir}/rmt
52rm -f $RPM_BUILD_ROOT%{_infodir}/dir
53rm -f $RPM_BUILD_ROOT%{_mandir}/man1/*.1*
54install -c -p -m 0644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_mandir}/man1
55
56#%find_lang %{name}
57
58%clean
59rm -rf ${RPM_BUILD_ROOT}
60
61#%check
62#rm -f ${RPM_BUILD_ROOT}/test/testsuite
63#make check
64
65
66%post
67if [ -f %{_infodir}/cpio.info.gz ]; then
68 /sbin/install-info %{_infodir}/cpio.info.gz %{_infodir}/dir || :
69fi
70
71%preun
72if [ $1 = 0 ]; then
73 if [ -f %{_infodir}/cpio.info.gz ]; then
74 /sbin/install-info --delete %{_infodir}/cpio.info.gz %{_infodir}/dir || :
75 fi
76fi
77
78%files
79# -f %{name}.lang
80%defattr(-,root,root,0755)
81%doc AUTHORS ChangeLog NEWS README THANKS TODO COPYING
82%{_bindir}/*
83%{_mandir}/man*/*
84%{_infodir}/*.info*
85%{_usr}/lib/charset.alias
86%{_usr}/share/locale/da/LC_MESSAGES/cpio.mo
87%{_usr}/share/locale/de/LC_MESSAGES/cpio.mo
88%{_usr}/share/locale/es/LC_MESSAGES/cpio.mo
89%{_usr}/share/locale/fi/LC_MESSAGES/cpio.mo
90%{_usr}/share/locale/fr/LC_MESSAGES/cpio.mo
91%{_usr}/share/locale/ga/LC_MESSAGES/cpio.mo
92%{_usr}/share/locale/gl/LC_MESSAGES/cpio.mo
93%{_usr}/share/locale/hu/LC_MESSAGES/cpio.mo
94%{_usr}/share/locale/id/LC_MESSAGES/cpio.mo
95%{_usr}/share/locale/ko/LC_MESSAGES/cpio.mo
96%{_usr}/share/locale/nl/LC_MESSAGES/cpio.mo
97%{_usr}/share/locale/pl/LC_MESSAGES/cpio.mo
98%{_usr}/share/locale/pt_BR/LC_MESSAGES/cpio.mo
99%{_usr}/share/locale/ro/LC_MESSAGES/cpio.mo
100%{_usr}/share/locale/ru/LC_MESSAGES/cpio.mo
101%{_usr}/share/locale/sv/LC_MESSAGES/cpio.mo
102%{_usr}/share/locale/tr/LC_MESSAGES/cpio.mo
103%{_usr}/share/locale/uk/LC_MESSAGES/cpio.mo
104%{_usr}/share/locale/vi/LC_MESSAGES/cpio.mo
105%{_usr}/share/locale/zh_CN/LC_MESSAGES/cpio.mo
106%{_usr}/share/locale/zh_TW/LC_MESSAGES/cpio.mo
107
108%changelog
Note: See TracBrowser for help on using the repository browser.