source: spec/trunk/SPECS/xz.spec@ 1036

Last change on this file since 1036 was 986, checked in by Silvan Scherrer, 9 years ago

spec: xz: Release version 5.2.3-2.

  • Property svn:eol-style set to native
File size: 3.9 KB
Line 
1# Not needed for f21+ and probably RHEL8+
2%{!?_licensedir:%global license %%doc}
3
4Name: xz
5Summary: LZMA compression utilities
6Version: 5.2.3
7Release: 2%{?dist}
8Group: Applications/File
9
10# Scripts xz{grep,diff,less,more} and symlinks (copied from gzip) are
11# GPLv2+, binaries are Public Domain (linked against LGPL getopt_long but its
12# OK), documentation is Public Domain.
13License: GPLv2+ and Public Domain
14URL: http://tukaani.org/%{name}/
15
16Vendor: bww bitwise works GmbH
17%scm_source svn http://svn.netlabs.org/repos/ports/xz/trunk 1995
18
19Requires: %{name}-libs = %{version}-%{release}
20Requires: libcx >= 0.4
21
22# For /usr/libexec/grepconf.sh (RHBZ#1189120).
23# Unfortunately F21 has a newer version of grep which doesn't
24# have grepconf, but we're only concerned with F22 here.
25Requires: grep >= 2.20-5
26
27BuildRoot: %{_tmppath}/%{name}-%{version}-build
28
29%description
30XZ Utils are an attempt to make LZMA compression easy to use on free (as in
31freedom) operating systems. This is achieved by providing tools and libraries
32which are similar to use than the equivalents of the most popular existing
33compression algorithms.
34
35LZMA is a general purpose compression algorithm designed by Igor Pavlov as
36part of 7-Zip. It provides high compression ratio while keeping the
37decompression speed fast.
38
39%package libs
40Summary: Libraries for decoding LZMA compression
41Group: System Environment/Libraries
42License: Public Domain
43Obsoletes: %{name}-compat-libs < %{version}-%{release}
44
45%description libs
46Libraries for decoding files compressed with LZMA or XZ utils.
47
48%package devel
49Summary: Devel libraries & headers for liblzma
50Group: Development/Libraries
51License: Public Domain
52Requires: %{name}-libs = %{version}-%{release}
53Requires: pkgconfig
54
55%description devel
56Devel libraries and headers for liblzma.
57
58%package lzma-compat
59Summary: Older LZMA format compatibility binaries
60Group: Development/Libraries
61# Just a set of symlinks to 'xz' + two Public Domain binaries.
62License: Public Domain
63Requires: %{name} = %{version}-%{release}
64Obsoletes: lzma < %{version}
65Provides: lzma = %{version}
66
67%description lzma-compat
68The lzma-compat package contains compatibility links for older
69commands that deal with the older LZMA format.
70
71%legacy_runtime_packages
72
73%debug_package
74
75%prep
76%scm_setup
77
78autoreconf -fvi
79
80%build
81
82export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
83export LIBS="-lcx -lpthread"
84export VENDOR="%{vendor}"
85%configure --enable-shared --disable-static
86
87make %{?_smp_mflags}
88
89%install
90make install DESTDIR=%{buildroot}
91rm -f %{buildroot}%{_libdir}/*.la
92
93%find_lang %name
94
95%clean
96rm -fr $RPM_BUILD_ROOT
97
98%check
99#LD_LIBRARY_PATH=$PWD/src/liblzma/.libs make check
100
101#%post libs -p /sbin/ldconfig
102
103#%postun libs -p /sbin/ldconfig
104
105%files -f %{name}.lang
106%license %{_docdir}/xz/COPYING*
107%doc %{_docdir}/xz
108%exclude %{_docdir}/xz/examples*
109%{_bindir}/*xz*
110%exclude %{_bindir}/*.dbg
111%{_mandir}/man1/*xz*
112
113%files libs
114%license %{_docdir}/xz/COPYING
115%{_libdir}/*.dll
116%exclude %{_libdir}/lzma.dll
117
118%files devel
119%dir %{_includedir}/lzma
120%{_includedir}/lzma/*.h
121%{_includedir}/lzma.h
122%{_libdir}/*_dll.a
123%{_libdir}/pkgconfig/liblzma.pc
124%doc %{_docdir}/xz/examples*
125
126%files lzma-compat
127%{_bindir}/*lz*
128%exclude %{_bindir}/*.dbg
129%{_mandir}/man1/*lz*
130
131%changelog
132* Tue Feb 14 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 5.2.3-2
133- rebuild with changed legacy_runtime_packages macro
134
135* Wed Feb 08 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 5.2.3-1
136- update to version 5.2.3
137- use the new scm_source and scm_setup macros
138- don't use a forwarder, use the legacy script
139
140* Fri Nov 25 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 5.2.2-1
141- update to version 5.2.2
142
143* Mon Jun 13 2016 yd <yd@os2power.com> 4.999.9beta-5
144- rebuild package, fixes ticket#183.
145- added debug package.
Note: See TracBrowser for help on using the repository browser.